Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Setting the boot order does not work

$
0
0

Hi all,

 

I'm trying to set the boot order of a VM with the help of a perl script. (VSphere 5.0.0) What I would like to achive is, that the VM tries to boot from network first and then from the first harddisk. (So that I can PXE boot it....)

 

I'm using the same method like mentioned in this community post: http://communities.vmware.com/message/1889377, so I'm actually setting new boot options with a ReconfigureVM task. At the end, the VM configuration looks like this:

 

'bootOptions' => bless( {

         'bootDelay' => '3000',

         'bootOrder' => [

                     bless( {}, 'VirtualMachineBootOptionsBootableCdromDevice' ),

                     bless( {

                                'deviceKey' => '4000'

                            }, 'VirtualMachineBootOptionsBootableEthernetDevice' ),

                     bless( {

                                'deviceKey' => '2000'

                            }, 'VirtualMachineBootOptionsBootableDiskDevice' )

                     ],

         'bootRetryDelay' => '20000',

         'bootRetryEnabled' => '1',

         'enterBIOSSetup' => '0'

      }, 'VirtualMachineBootOptions' ),

 

 

So the boot order seems to be CDROM, network, hard disk, which is what I want it to be.

 

 

However, on the BIOS screen, the boot order is different and it also does not boot from network. So instead of “CDROM, Network, Disk” as the supposed config, it is using the displayed boot order in the BIOS, so “CDROM, Disk, Network”.

 

screenshot_bios_screen_vmware.png

 

Does anybody know how to solve this? Is this propably a known bug?

 

 

Richard


Viewing all articles
Browse latest Browse all 179681

Trending Articles