Technical Notes: VMware

From Mediawiki-1
Jump to navigation Jump to search

ESXi CLI

 vim-cmd vmsvc/getallvms   ... lists all VMs together with VM-ID

Gg

Disks

Find Disks:

 ls -l /dev/disks

Manage partition tables (starting v6.x)

 partedUtil getptbl /dev/disks/naa.6001c230d9e45e00249d9f5b581c64fe


Interpret Usage:

Number Name Usage Comment
1 systemPartition Bootloader Partition
2 linuxNative /scratch Will only be created if 5+ GB of free space is available. Holds vm-support files used for RCA and troubleshooting of system failures. If the scratch partition is not present, vm-support output is stored in a ramdisk and will be lost after a reboot. Mohammed wrote a post on How to configure a persistent Scratch partition in VMware ESXi .
3 VMFS datastore Will only be created, if the installation medium is not a flash memory. It extends over the total available un-allocated disk space and is formatted based on ESXi version and selection.
5 linuxNative /bootbank FAT, holds compressed hypervisor image (s.v00), is decompressed and loaded into RAM during boot
6 linuxNative /altbootbank Empty after a fresh installation. During an ESXi upgrade, the current image is copied from the bootbank partition, providing a fall-back mechanism to the original ESXi revision (last known good configuration) by typing “Shift + R” while booting. More details in Mohammed's article How to Rollback a failed ESXi 6 upgrade.
7 vmkDiagnostic First Diagnostic Partition Holds host dump file after ESXi Crash or PSOD
8 linuxNative /store contains various ISO files for VMware Tools which can get mounted to the guest CD/DVD from here.
9 vmkDiagnostic Second Diagnostic Partition Second Diagnostic partition. Using ESXCLI command can check the current status of active diagnostic partition, as we have two diagnostic partitions: esxcli system coredump partition list

Thanks to Mohammed Raffic's postings on VMwarearena, which were the basis for the above summary table. References were provide in-line and are summarized again below:

 http://www.vmwarearena.com/what-i-wish-everyone-knew-about-esxi-partition/
 http://www.vmwarearena.com/esxtop-replay-mode/
 http://www.vmwarearena.com/how-to-configure-scratch-partition-in-vmware-esxi-using-web-client/
 http://www.vmwarearena.com/how-to-downgrade-or-rollback-your-failed-esxi-6-upgrade-to-previous-version/  
 https://kb.vmware.com/s/article/1036609