Hi All,
I am using below perl logic to change the Bios Boot order.
my $vm_view = Vim::find_entity_view(view_type => 'VirtualMachine',
filter => {name => $vmname});
if($vm_view) {
my $vm_config_spec = VirtualMachineConfigSpec->new(
name => $vmname,
extraConfig => [OptionValue->new( key => 'bios.bootDeviceClasses',
value => $bootWith ),] );
$vm_view->ReconfigVM( spec => $vm_config_spec );
}
Where $vmname is the virtual machine name and $bootWith is cd, hd.
I am getting below error when I am running this script.
SOAP Fault:
-----------
Fault string: Permission to perform this operation was denied.
Fault detail: NoPermissionFault
Can someone please help what is missing from there. What permissions I need to have to perform this. Any help is highly appriciated.
Thanks in advance.