FIX: Cannot boot VM from ISO to install OS

Just sharing a quick fix for an issue you may encounter when working in secure environments.

The issue

I encountered a Hyper-V VM in the lab today that would not boot from an Ubuntu ISO image. No matter what I did, the VM went straight to attempting PXE boot (even with network boot at bottom of boot order list).

The fix

Then, I noticed in the VM Settings, the Enable Secure Boot option was checked. This feature (available only on gen 2, UEFI VMs) prevents unauthorized code from running at boot time…which includes random ISOs mounted to the VM.

image

Uncheck the ‘Enable Secure Boot’ option, and the VM will boot from the ISO as expected.

Read more about Secure Boot at https://blogs.technet.microsoft.com/dubaisec/2016/03/14/diving-into-secure-boot/

Now Available: Updated Best Practices for Monitoring VMware

You can download an updated copy of a whitepaper I wrote with my friends Alec King and Cameron Fuller, discussing effective monitoring of vSphere hosts and virtualized workloads with the latest version of the Veeam MP for VMware.

Download this white paper and discover the 6 key concepts to get the most out of VMware vSphere and Microsoft System Center Operations Manager, including:

  • Monitoring with the “private cloud fabric” in mind
  • Sorting the actionable alerts from alert “noise”
  • Understanding override behavior and best practices
  • And more!

http://www.veeam.com/wp-best-practices-monitoring-vmware-vsphere-scom-fuller-king-zerger.html

How to resolve non-OS disks offline in multi-disk VM deployment from template

Best practices for server configuration generally suggest installing applications / app data to a separate disk and volume than the OS. However, when you deploy a Windows 2008 or 2012 VM from a VM template in System Center 2012 R2 Virtual Machine Manager (VMM), you may find the second disk (vhd or vhdx) containing the application partition in an offline or uninitialized state when the VM is deployed from the template. The error you will see is “the disk is offline because of policy set by an administrator”.

Root Cause and Fix

This issue is caused by the default SAN Policy setting in Windows 2008 and Windows 2012. SAN policy was introduced in Windows Server 2008 to protect shared disks being accessed by multiple servers. If (and only if) the disk is not shared amongst other servers, you can change the SAN Policy setting to OnlineAll setting to get around this.

Perform these steps before running sysprep to create the VM template for VMM will ensure all the disks in a multi-disk VM template are in an online state on first boot.

To verify the current SAN Policy setting

From a command prompt, type DISKPART.EXE  and then press Enter.

DISKPART> san and then press Enter.

If the default is in place, this command will return a status of “Offline Shared”

To change SAN Policy to OnlineAll, type the following at the DISPART prompt: 

san policy=OnlineAll  and then press Enter.

Now you can sysprep your VM to make your template with the assurance that non-OS disks in your template will be online on first boot.