ESXi: Difference between revisions
From DWIKI
mNo edit summary |
m (→FAQ) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
= Links = | = Links = | ||
*[https://www.altaro.com/vmware/top-20-esxcli-commands/ https://www.altaro.com/vmware/top-20-esxcli-commands/ Top 20 Essential ESXCLI Commands] | *[https://www.altaro.com/vmware/top-20-esxcli-commands/ https://www.altaro.com/vmware/top-20-esxcli-commands/ Top 20 Essential ESXCLI Commands] | ||
| |||
= FAQ = | |||
==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 | |||
| |||
== 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 |
Revision as of 12:41, 2 June 2022
Links
FAQ
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
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