List all registered VM ID’s:
vim-cmd vmsvc/getallvms
Power off vm:
vim-cmd vmsvc/power.off VMID
Check vm power status:
vim-cmd vmsvc/power.getstate VMID
List all registered VM ID’s:
vim-cmd vmsvc/getallvms
Power off vm:
vim-cmd vmsvc/power.off VMID
Check vm power status:
vim-cmd vmsvc/power.getstate VMID
vim-cmd vmsvc/getallvms
1. Power off Virtual Machine to be cloned
2. Create a new directory within the datastore:
mkdir /vmfs/volumes/datastore/clone_name
3. Clone a vmdk to the new directory using vmkfstools:
vmkfstools -i /vmfs/volumes/datastore/sourcevm/name.vmdk /vmfs/volumes/datastore/clone_name/clone.vmdk
4. Create New Virtual Machine:
5. Power on Virtual Machine
6. Update hostname and IP address
Recent Comments