VMware Cloud Community
roadgeek
Contributor
Contributor

Moving a registered VM into a different resource pool via CLI?

To register a new VM into a specific resource pool via the CLI, one can run:

# vim-cmd solo/registervm <path to vmx> <name> <pool>

However, I'm wondering how one can move a registered, running VM into a different resource pool?  I know I can use the Vsphere client to drag and drop the VM into the new resource pool, but there has to be a way to do this under the hood as well.

Thanks for your help!

0 Kudos
1 Reply
lamw
Community Manager
Community Manager

No you can not afaik. You can perform operations on a resource pool using vim-cmd hostsvc/rsrc but you can not move a VM into a different pool once it's been registered. You would need to un-register and then re-register in the pool of choice.

0 Kudos