Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 199442

Adding new SCSI controller: "Fault string: Invalid operation for device '0'."

$
0
0

Hello,

 

I have an issue when I try to add a SCSI controller to a virtual machine.

 

I have this error:

 

Fault string: Invalid operation for device '0'.

Fault detail: InvalidDeviceOperation

 

Here is my code:

 

my $info = Description->new(label => "SCSI Controller 2", summary => "LSI Logic Parallel");

 

my $controller = VirtualLsiLogicController->new(

                deviceInfo => $info,

                scsiCtlrUnitNumber => '7',

                sharedBus => VirtualSCSISharing->new('noSharing'),

                busNumber => -1,

                key => -1,

                backing => $backing_info,

                controllerKey => 100,

                );

 

 

my $devspec = VirtualDeviceConfigSpec->new(operation => VirtualDeviceConfigSpecOperation->new('add'),

                device => $controller ,

                fileOperation => VirtualDeviceConfigSpecFileOperation->new('create'),

                );

 

 

my $vmspec = VirtualMachineConfigSpec->new(deviceChange => [$devspec] );

eval {

        $vm_view->ReconfigVM( spec => $vmspec );

        Util::trace(0,"Controller has been created.\n");

};

 

I don't know how to handle it, or even how to troubleshoot.

 

Any ideas would be greatly appreciated.

 

Regards,

 

Jeremy


Viewing all articles
Browse latest Browse all 199442

Trending Articles



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