I have a script that creates a clone of a template VM and registers the new clone to the ESX console, but what is the command line I need in the script to register it to a specific Resource Pool?
NOTE: I am not using the VI3 management console, just one ESX Server version 3.5
Thank you in advance for all your help!
You will need to use vimsh
Register the vm
VMware Communities User Moderator
Orlando Area VMware User Group Leader
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
*Virtualization is a journey, not a project.*
Thank you for the prompt reply!
I was originally using this to register the VM
vmware-cmd -s register /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx
I am a little confused by what you put. Could you tell me one more time but taking account for the information you see above? Thanks!
Vimsh -n -e "/solo/registervm /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx $NVM $Resourcepool"
vmware-vim-cmd /solo/registervm /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx $NVM $Resourcepool
FYI I have not tried this but what is above should give you a very good starting point
Thanks again, but that seemed to try to do something, but I keep getting "a "FAILED METHOD CALL" for both ways and says "The request refers to an object that no longer exists or has never existed" and command not found errors.
I found the white paper on this and it also looks a lot like what you suggested, but I get the same thing.
I also tried it with the actual directory and VM name etc and go the same thing.