Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Created August 4, 2016 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameswhite/f97c63938616cf8ae03a92ac88b693a9 to your computer and use it in GitHub Desktop.
Save jameswhite/f97c63938616cf8ae03a92ac88b693a9 to your computer and use it in GitHub Desktop.
~ # vim-cmd vmsvc/getallvms
Vmid Name File Guest OS Version Annotation
1 newton.jameswhite.org [vmfs01] newton.jameswhite.org/newton.jameswhite.org.vmx debian6Guest vmx-08
2 venus.jameswhite.org [vmfs02] sol.jameswhite.org/sol.jameswhite.org.vmx windows7_64Guest vmx-08
3 mercury.jameswhite.org [vmfs01] mercury.jameswhite.org/mercury.jameswhite.org.vmx windows7Guest vmx-08
5 sol.jameswhite.org [vmfs01] sol.jameswhite.org/sol.jameswhite.org.vmx windows7Server64Guest vmx-08
6 terra.jameswhite.org [vmfs01] terra.jameswhite.org_1/terra.jameswhite.org.vmx darwin11_64Guest vmx-08
7 lofn.jameswhite.org [vmfs01] lofn/lofn.vmx windows7Guest vmx-08
8 feynman.jameswhite.org [vmfs02] feynman.jameswhite.org/feynman.jameswhite.org.vmx debian6Guest vmx-08
~ # vim-cmd vmsvc/power.getstate 2
Retrieved runtime info
Powered off
~ # vim-cmd vmsvc/power.on 2
Powering on VM:
~ # vim-cmd vmsvc/power.getstate 2
Retrieved runtime info
Powered on
vim-cmd vmsvc/get.guest 2
# esxcli software vib install -d "/vmfs/volumes/51844533-b0046150-85e1-c82a1455a99f/updates/ESXi550-201512001.zip"
# unregister a vm
vim-cmd vmsvc/unregister vmid
# register a vm
vim-cmd solo/registervm path_to_vmx_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment