1 person found this helpful
Just clearing out a few doubt. have you tried giving the path of the vmx file correctly. For example, if my VM winxp's vmx file is in /vmfs/volumes/storage1, then i would give the command,
vmware-cmd -s register --server <serverip> --username <root> /vmfs/volumes/storage1/winxp.vmx and ENTER
the output is likely to be VM register =1
When I execute that exact command (using my own vmx of course) I get the following message:
Must specify resource pool
I haven't created any specific resource pools on the ESXi host, and I don't know what the default resource pool is called.
I had read that thread previously. Please explain why it would be useful to me as I do not see a solution to my problem there. Thanks.
The exact command which gives the above error is:
vmware-cmd --server [my server ip] --username [my user name] -s register [main]/Igor/Igor.vmx
I found out what the default resource pool is called: Resources. So now if I execute:
vmware-cmd --server [my server ip] --username [my user name] -s register [main]/Igor/Igor.vmx ha-datacenter Resources
It registers! However, I cannot unregister it like so:
vmware-cmd --server [my server ip] --username [my user name] -s unregister [main]/Igor/Igor.vmx
I get the following output:
No virtual machine found
How can it not be found? I just registered it!!