ESXi 5.0
To power on a virtual machine from the command line:
- List the inventory ID of the virtual machine with the command:
vim-cmd vmsvc/getallvms |grep Note: The first column of the output shows the vmid.
- Check the power state of the virtual machine with the command:
vim-cmd vmsvc/power.getstate - Power-on the virtual machine with the command:
vim-cmd vmsvc/power.on
ESXi 4.1
To power on a virtual machine from the command line:
-
List the inventory ID of the virtual machine with the command:
vim-cmd vmsvc/getallvms |grep
Note: The first column of the output shows the vmid. -
Check the power state of the virtual machine with the command:
vim-cmd vmsvc/power.getstate -
Power-on the virtual machine with the command:
vim-cmd vmsvc/power.on
ESXi 4.0
To power on a virtual machine from the command line:
-
List the inventory ID of the virtual machine with the command:
vmware-vim-cmd vmsvc/getallvms |grep Note: The first column of the output shows the vmid. -
Check the power state of the virtual machine with the command:
vmware-vim-cmd vmsvc/power.getstate -
Power on the virtual machine with the command:
vmware-vim-cmd vmsvc/power.on
ESX 4.0 and ESX 4.1
To power on a virtual machine from the command line:
-
To list the path of all the virtual machines on the host:
vmware-cmd -l -
Get the state of the virtual machine with the command:
vmware-cmdgetstate -
Power on the virtual machine with the command:
vmware-cmdstart
ESXi 3.5
To power on a virtual machine from the command line:
-
List the inventory ID of the virtual machine with the command:
vim-cmd vmsvc/getallvms |grep -
Check the power state of the virtual machine with the command:
vim-cmd vmsvc/power.getstate -
Power on the virtual machine with the command:
vim-cmd vmsvc/power.on
ESX 3.5
To power on a virtual machine from the command line:
- To list the path of all the virtual machines on the host:
vmware-cmd -l
-
Get the state of the virtual machine with the command:
vmware-cmdgetstate -
Power on the virtual machine with the command:
vmware-cmdstart
Nessun commento:
Posta un commento