VMware {code} Community
Hoken
Contributor
Contributor

Perl SDK Live Migrate

Hi,

I have been able to perform migration of powered off VMs but I wonder how to perform live migration with running VMs?

Are there any sample code? Or what Methods should I use?

0 Kudos
1 Reply
Hoken
Contributor
Contributor

Okay, I found out the solution myself.

I found the --state flag to the vmmigrate.pl script.

This is how I run the script

./vmmigrate.pl --server <ip-address> --username <name> --password <pass> --sourcehost <source-host> --targetdatastore <datastore> --targethost <target-host> --vmname <vm-name> --targetpool <pool-name> --state poweredOn

So specifying that the --state is poweredOn solved the problem for me.

0 Kudos