ESXi: Difference between revisions

From DWIKI
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
 


=HOWTO=
==Command line==
===List hardware===


esxcfg-info


===List VMs===
vim-cmd vmsvc/getallvms


= FAQ =
===Show vm status===
vim-cmd vmsvc/power.getstate <ID>


== List hardware ==
===Start VM===
vim-cmd vmsvc/power.on <ID>


esxcfg-info


== Disk device names ==
===Disk device names===


  esxcli storage core path list
  esxcli storage core path list
Line 25: Line 32:


If files are called -flat.xmdk, leave out the '-flat' bit
If files are called -flat.xmdk, leave out the '-flat' bit
     
 
==Show network==
===List nics===
esxcfg-nics -l
===Show IP addresses===
esxcli network ip interface ipv4 get
===ifconfig===
esxcli network ip interface list
 
===netstat===
esxcli network ip connection list
 
==Firewall==
*[https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.security.doc/GUID-7A8BEFC8-BF86-49B5-AE2D-E400AAD81BA3.html ESXi ESXCLI Firewall Commands]
 
===Show firewall rules===
esxcli network firewall ruleset list
 
 
===Get smart alerts===
*[https://community.spiceworks.com/topic/2318256-esxi-free-simple-way-of-receiving-by-e-mail-an-alert-in-case-of-raid-failure Send mail when smart problem detected]
 
= FAQ =
 
 
 
 
 
&nbsp;


== Error: Fault cause: vim.fault.InvalidState ==
== Error: Fault cause: vim.fault.InvalidState ==
ovftool failing? blame vmware
ovftool failing? blame vmware
== convert ova to vmx ==
ovftool foo.ova foo.vmx
Will probably throw something like
" - Line 25: Unsupported hardware family 'virtualbox-2.2'.
Warning:
- Wrong file size specified in OVF descriptor for 'foo-disk001.vmdk' (specified: -1, actual 24349902848).
"
In that case try
ovtool --lax foo.ova foo.vmx

Latest revision as of 09:12, 28 August 2023

Links

 

HOWTO

Command line

List hardware

esxcfg-info

List VMs

vim-cmd vmsvc/getallvms

Show vm status

vim-cmd vmsvc/power.getstate <ID>

Start VM

vim-cmd vmsvc/power.on <ID>


Disk device names

esxcli storage core path list
      

Copying snapshots/images

vmkfstools -i <source> <target>

If files are called -flat.xmdk, leave out the '-flat' bit

Show network

List nics

esxcfg-nics -l

Show IP addresses

esxcli network ip interface ipv4 get

ifconfig

esxcli network ip interface list

netstat

esxcli network ip connection list

Firewall

Show firewall rules

esxcli network firewall ruleset list


Get smart alerts

FAQ

 

Error: Fault cause: vim.fault.InvalidState

ovftool failing? blame vmware


convert ova to vmx

ovftool foo.ova foo.vmx

Will probably throw something like " - Line 25: Unsupported hardware family 'virtualbox-2.2'. Warning:

- Wrong file size specified in OVF descriptor for 'foo-disk001.vmdk' (specified: -1, actual 24349902848).

" In that case try

ovtool --lax foo.ova foo.vmx