VMWare – epm.jonhwilliams.com http://epm.jonhwilliams.com i build custom EPM systems that work Tue, 01 Jan 2013 18:24:59 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 maintenance mode from the command line http://epm.jonhwilliams.com/maintenance-mode-from-the-command-line/ http://epm.jonhwilliams.com/maintenance-mode-from-the-command-line/#respond Tue, 01 Jan 2013 18:24:59 +0000 http://epm.jonhwilliams.com/?p=91 ssh control of maintenance mode on ESXi 5 host

Change state of maintenance mode on ESXi host via command line from Linux using ssh into the ESXi host.

steps

Prerequisite: SSH enabled to eSXi host
Begin by checking value of inMaintenancemode of VMWare ESXi host
vim-cmd hostsvc/hostsummary | grep -i maintenance
If true, exit maintenance mode with:
vim-cmd /hostsvc/maintenance_mode_exit
Enter maintenance mode with:
vim-cmd /hostsvc/maintenance_mode_enter

description

Typical access to VMWare ESXi 5 is through the vSphere Client, but for routine management from a Linux environment, other options are available. One might Download the Linux Installer (tar.gz) as the download is available for license. One might enable SSH into the ESXi host, then search Google for
ssh "ESXi 5" start vm

external links

Additional thanks for the post: from Paul McSharry.
Get more information from VMWare KB.


]]>
http://epm.jonhwilliams.com/maintenance-mode-from-the-command-line/feed/ 0
start virtual machine on ESXi via ssh http://epm.jonhwilliams.com/start-virtual-machine-on-esxi-via-ssh/ http://epm.jonhwilliams.com/start-virtual-machine-on-esxi-via-ssh/#respond Fri, 30 Nov 2012 22:46:57 +0000 http://epm.jonhwilliams.com/?p=15 ssh control of vm on ESXi 5 host

Start or control a virtual machine on ESXi host via command line from Linux using ssh into the ESXi host.

steps

Begin by listing virtual machines
vim-cmd vmsvc/getallvms
Determine current state of the virtual machine
vim-cmd vmsvc/power.getstate vmid#
Start the virtual machine
vim-cmd vmsvc/power.on vmid#
List available methods
vim-cmd vmsvc

description

Typical access to VMWare ESXi 5 is through the vSphere Client, but for routine management from a Linux environment, other options are available. One might Download the Linux Installer (tar.gz) as the download is available for license. One might enable SSH into the ESXi host, then search Google for
ssh "ESXi 5" start vm

external links

Additional thanks for the post: help.
Get more information from VMWare KB.


]]>
http://epm.jonhwilliams.com/start-virtual-machine-on-esxi-via-ssh/feed/ 0