Hi all,
I am using VMware Vsphere CLI options for automating my environment. While automating I ran into below queries.
_VM Cloning _
Currently by looking into the
documentation I used the CLI “vmkfstool –clonevirtualdisk” for cloning the VM
Image. I observed that the CLI only cloned the “<VM Name>.vmdk” file but
other dependent configuration files like “<VM Name>.nvram , <VM
Name>.vmx” etc were not cloned by the CLI.
How can we clone the existing
VMWare images using CLI so that we have all the required files like “ ’.vmdk’,
‘.vmx’, ‘.nvram’ ” etc available with us?
_*VM Snapshot/Restore*_
How can we list the names of all
the snapshots available for a particular VM Image using
CLI?
How can we restore a particular
snapshot from list of available snapshots using CLI?
Also please let me know if we have a CLI that can be executed remotely using which we can Query a particular VM for its MAC and IP Address.
Thanks and Regards
-Saurabh