Solo/registervm: Difference between revisions

no edit summary
(New page: ==== vimsh solo/registervm ==== Usage: registervm vm path [name] [resourcepool] registervm [cfg path] [name(optional)] [resourcepool(optional)] Register the vm Category: Vimsh)
 
No edit summary
 
Line 5: Line 5:


Register the vm
Register the vm
==== Example ====
To register a VM and assign it to a given resource pool, you can do the following (Assuming you have a VM named *UCSB-GAUCHOS* and Resource Pool named *UCSB-DEV-RP*:
  vmware-vim-cmd solo/registervm /vmfs/volumes/olga-local-SAS.Storage/UCSB-GAUCHOS/UCSB-GAUCHOS.vmx UCSB-GAUCHOS `cat /etc/vmware/hostd/pools.xml | grep "UCSB-DEV-RP" -A1 | grep "<objID>" | sed 's/<objID>//;s/<\/objID>//g' | sed -e 's/^[[:blank:]]*//;s/[[:blank:]]*$//'`


[[Category: Vimsh]]
[[Category: Vimsh]]