ESXi 6.x 의 cli 에서 vm list (storage 및 process 기준) 확인하기

 

vm list 확인 (storage 기준)

[root@localhost:~] vim-cmd vmsvc/getallvms
Vmid         Name                             File                           Guest OS        Version   Annotation
10     OS X High Sierra   [SA05] OS X High Sierra/OS X High Sierra.vmx   darwin17_64Guest    vmx-14              
13     Fedora29           [SA05] Fedora29/Fedora29.vmx                   centos8_64Guest     vmx-14              
15     Win7_32bit         [SS01] Win7_32bit/Win7_32bit.vmx               windows7Guest       vmx-08              
16     C75N01             [SS01] C75N01/C75N01.vmx                       centos7_64Guest     vmx-14              
17     C75N02             [SS01] C75N02/C75N02.vmx                       centos7_64Guest     vmx-14              
20     XigmaNAS           [SA01] XigmaNAS/XigmaNAS.vmx                   freebsd11_64Guest   vmx-14              
21     mws                [SA02] mws/mws.vmx                             rhel6_64Guest       vmx-08              
22     CentOS62           [SA01] CentOS62/CentOS62.vmx                   centos6_64Guest     vmx-14              
23     CentOS_74          [SA05] CentOS_74/CentOS_74.vmx                 centos7_64Guest     vmx-14              
24     RHEL6.3GA          [SA05] RHEL6.3GA/RHEL6.3GA.vmx                 rhel6_64Guest       vmx-14              
25     kick-test          [SS01] kick-test/kick-test.vmx                 centos7_64Guest     vmx-14              
26     RHEL56             [SA05] RHEL56/RHEL56.vmx                       rhel5_64Guest       vmx-14              
27     RHEL_76            [SA01] RHEL_76/RHEL_76.vmx                     rhel7_64Guest       vmx-14              
28     RHEL_74            [SA01] RHEL_74/RHEL_74.vmx                     rhel7_64Guest       vmx-14              
29     RHEL 8.0           [SA01] RHEL 8.0/RHEL 8.0.vmx                   rhel8_64Guest       vmx-14              
30     Android-8.1        [SA01] Android-8.1/Android-8.1.vmx             otherLinux64Guest   vmx-14              
31     Win10_Leo          [SS01] Win10_Leo/Win10_Leo.vmx                 windows9_64Guest    vmx-14              
32     kick-rhel76        [SA02] kick-rhel76/kick-rhel76.vmx             rhel7_64Guest       vmx-14              
34     KRX_CUS_RHEL76     [SA02] KRX_CUS_RHEL76/KRX_CUS_RHEL76.vmx       rhel7_64Guest       vmx-14              
4      RHEL63_1           [SA05] RHEL63_1/RHEL63_1.vmx                   rhel6_64Guest       vmx-08              
6      RHEL67_Install2    [SA05] RHEL67_Install2/RHEL67_Install2.vmx     rhel6_64Guest       vmx-08              
7      Win7_DK            [SA05] Win7_DK/Win7_DK.vmx                     windows7_64Guest    vmx-08              
8      WinXP              [SA05] WinXP/WinXP.vmx                         winXPProGuest       vmx-08              
9      OS X               [SA05] OS X/OS X.vmx                           darwin12_64Guest    vmx-14              

 

디스크 이상(SA01)으로 해당 디스크의 vm들이 제대로 확인이 안되는 모습

[root@localhost:~] vim-cmd vmsvc/getallvms
Skipping invalid VM '20'
Skipping invalid VM '22'
Skipping invalid VM '27'
Skipping invalid VM '28'
Skipping invalid VM '29'
Skipping invalid VM '30'
Vmid         Name                             File                           Guest OS       Version   Annotation
10     OS X High Sierra   [SA05] OS X High Sierra/OS X High Sierra.vmx   darwin17_64Guest   vmx-14              
13     Fedora29           [SA05] Fedora29/Fedora29.vmx                   centos8_64Guest    vmx-14              
15     Win7_32bit         [SS01] Win7_32bit/Win7_32bit.vmx               windows7Guest      vmx-08              
16     C75N01             [SS01] C75N01/C75N01.vmx                       centos7_64Guest    vmx-14              
17     C75N02             [SS01] C75N02/C75N02.vmx                       centos7_64Guest    vmx-14              
21     mws                [SA02] mws/mws.vmx                             rhel6_64Guest      vmx-08              
23     CentOS_74          [SA05] CentOS_74/CentOS_74.vmx                 centos7_64Guest    vmx-14              
24     RHEL6.3GA          [SA05] RHEL6.3GA/RHEL6.3GA.vmx                 rhel6_64Guest      vmx-14              
25     kick-test          [SS01] kick-test/kick-test.vmx                 centos7_64Guest    vmx-14              
26     RHEL56             [SA05] RHEL56/RHEL56.vmx                       rhel5_64Guest      vmx-14              
31     Win10_Leo          [SS01] Win10_Leo/Win10_Leo.vmx                 windows9_64Guest   vmx-14              
32     kick-rhel76        [SA02] kick-rhel76/kick-rhel76.vmx             rhel7_64Guest      vmx-14              
34     KRX_CUS_RHEL76     [SA02] KRX_CUS_RHEL76/KRX_CUS_RHEL76.vmx       rhel7_64Guest      vmx-14              
4      RHEL63_1           [SA05] RHEL63_1/RHEL63_1.vmx                   rhel6_64Guest      vmx-08              
6      RHEL67_Install2    [SA05] RHEL67_Install2/RHEL67_Install2.vmx     rhel6_64Guest      vmx-08              
7      Win7_DK            [SA05] Win7_DK/Win7_DK.vmx                     windows7_64Guest   vmx-08              
8      WinXP              [SA05] WinXP/WinXP.vmx                         winXPProGuest      vmx-08              
9      OS X               [SA05] OS X/OS X.vmx                           darwin12_64Guest   vmx-14              

 

현재 기동중인 VM 확인 (process 기준)

기동 중인 VM이 없을 때

[root@localhost:~] esxcli vm process list

 

기동 중인 VM이 있을 때. 2개 확인 됨.

[root@localhost:~] esxcli vm process list
Win7_32bit
   World ID: 2100605
   Process ID: 0
   VMX Cartel ID: 2100604
   UUID: 56 4d 22 48 e0 41 1d fb-87 28 17 43 58 b1 70 e1
   Display Name: Win7_32bit
   Config File: /vmfs/volumes/5ba0e754-c24a956e-1e37-6805ca2db245/Win7_32bit/Win7_32bit.vmx

kick-test
   World ID: 2100621
   Process ID: 0
   VMX Cartel ID: 2100620
   UUID: 56 4d e6 f9 d6 13 b6 84-16 49 c5 de 37 f7 21 a7
   Display Name: kick-test
   Config File: /vmfs/volumes/5ba0e754-c24a956e-1e37-6805ca2db245/kick-test/kick-test.vmx

 

참고 :

- How to Identify disks and Datastore in VMware ESXi 5 / 6

https://www.bloggerbaru.com/identify-disks-datastore-vmware-esxi-5-6/

ESXi - vm list 확인

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다