Vmware

From DWIKI
Revision as of 10:16, 18 June 2020 by Tony (talk | contribs)

Links

FAQ

Cloning on command line

Used vmkfstool and create new VM using "Use existing virtual disk"

Info

esxtop


SNMP

snmpd has not been enabled

Means the GUI is stupid

esxcli system snmp set --communities Public
esxcli system snmp get

https://serenity-networks.com/how-to-enable-snmp-on-esxi-5-5-5-6-for-remote-monitoring/


snmpd: No library available for additional MIBs: No such file or directory

snmpd: No library available for plugin VS support

Remount nfs


Get system UUID

esxcli system uuid get


Network configuration

https://www.altaro.com/vmware/vsphere-networking-basics-part-1/

Show network addresses

esxcli network ip interface ipv4 get

Set network address

esxcli network ip interface ipv4 set -i vmk0 -t static --ipv4=192.168.12.11 -N 255.255.255.0

Show hardware info

esxcli hardware pci list


Show routing table

 esxcli network ip route ipv4 list


Show VM information

vim-cmd vmsvc/getallvms
vim-cmd vmsvc/get.guest <vmid>

Start VM from commandline

Esx4/5/6.0

vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.on <vmid>

List network interfaces

esxcfg-nics -l