Boot options configuration for VMware guests
The ability to change the "Options" for a vmware guest would be very important. For example, the configuration of hot-plug and boot options are commonly used in enterprises.
#7 Updated by Mathieu Parent over 3 years ago
A powershell snipset to limit boot modes :
$VM = YourVMName $spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.extraConfig += New-Object VMware.Vim.OptionValue $spec.extraConfig.key = "bios.bootDeviceClasses" $spec.extraConfig.value = "allow:net,hd,cd"
Note that option sets only list of allowed device classes, not their
order - so 'allow:net,cd' and 'allow:cd,net' are equivalent.