VMware {code} Community
gchi
Contributor
Contributor

how to disconnect a SCSI device by a virtual machine before running VMotion

Hi ,

I need to learn how to disconnect a SCSI device connected to a virtual machine before running VMotion using Orchestrator

Many thanks in advance

Best regards

Gianluca

0 Kudos
1 Reply
admin
Immortal
Immortal

Hi,

I don't have a server here, but I'll try to help you:

if your Virtual Machine is in a variable named vm:

vm.config.hardware.device contains all the devices. You have to iterate all the devices to get the one you want. Access their backing, and use the vm.reconfig to set the new backing. Have a look at some workflows in the library, you will find samples...