VMWare ESXi command-line

List all vms

vim-cmd vmsvc/getallvms

Check the power state of the virtual machine with the command:

vim-cmd vmsvc/power.getstate <vmid>

Power-on the virtual machine with the command:

vim-cmd vmsvc/power.on <vmid>

Retrieving Networking Information

esxcli network ip interface list
esxcli network ip interface ipv4 get -i vmk<X>

Register a VMX file to a VM

vim-cmd solo/registervm /vmfs/volumes/datastore_name/VM_directory/VM_name.vmx

Reply Question after register a VM from a VMX file

vim-cmd vmsvc/message <vmid>
vim-cmd vmsvc/message <vmid> <question_id> <answer_id>

vSwitch

How to Configure VMware vSwitch from ESX / ESXi Command Line

Leave a Reply

Your email address will not be published. Required fields are marked *