Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

Changing Boot Order of Virtual Machine using Vmware Perl SDK: Getting NoPermissionFault.

$
0
0

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.


Viewing all articles
Browse latest Browse all 180259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>