Wednesday, March 2, 2016

Unable to connect to the MKS: The operation is not allowed in the current state


 
 
 
 
 
 
Rate This

MKS error
MKS error
There are multiple MKS errors. MKS generally means, the input we give via Vcenter is unable to reach the VM. To resolve this issue. Login to the ESX where the VM is hosted and reload the .VMX file of the particular VM.
/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # vim-cmd vmsvc/getallvms

Vmid          Name                                     File                                     Guest OS          Version   Annotation
308    dev2-ark04           [BEVM_S5_DS4] dev2-ark04/VacantWIN2K8R2.vmx                   windows7Server64Guest   vmx-09
333    qa2-fstore01         [BEVM_S5_DS3] qa2-fstore01/qa2-fstore01.vmx                   windows7Server64Guest   vmx-09
335    qa2-limp07           [BEVM_S5_DS4] qa2-limp07/qa2-limp07.vmx                       winLonghorn64Guest      vmx-09
338    qa2-exporter02       [BEVM_S5_DS3] qa2-exporter02/qa2-exporter02.vmx               windows7Server64Guest   vmx-07
340    dev2-hpsdweb03       [6A_F5_BEVM_RSTR06] dev2-hpsdweb03/dev2-hpsdweb03.vmx         windows7Server64Guest   vmx-09
342    qa2-vulproc01        [BEVM_S5_DS5] qa2-vulproc01/qa2-vulproc01.vmx                 windows7Server64Guest   vmx-09
349    dev2-exporter02      [BEVM_S5_DS2] dev2-exporter02/dev2-exporter02.vmx             windows7Server64Guest   vmx-07
358    dev2-hpsdweb04       [6B_F5_BEVM_RSTR06] dev2-hpsdweb04/dev2-hpsdweb04.vmx         windows7Server64Guest   vmx-09
372    qa2-anl07            [BEVM_S5_DS4] qa2-anl07/qa2-anl07.vmx                         windows7Server64Guest   vmx-09
378    qa2-wkstn06          [BEVM_S5_DS5] qa2-wkstn06/qa2-wkstn06.vmx                     winXPProGuest           vmx-09
393    DEV-SIMTESTEL32-64   [BEVM_S5_DS5] DEV-SIMTESTEL32-64/dev-simtestel32-64.vmx       rhel6Guest              vmx-08
395    Dev-RSIP64-02        [BEVM_S5_DS2] Dev-RSIP64-02/Dev-RSIP64-02.vmx                 rhel6_64Guest           vmx-08
398    DEV-SIMTESTEL32      [BEVM_S5_DS4] dev-simtestel32/dev-simtestel32.vmx             rhel6Guest              vmx-08
404    Dev2-cdsproc01       [BEVM_S5_DS2] Dev2-cdsproc01/Dev2-cdsproc01.vmx               windows7Server64Guest   vmx-09
411    dev2-template01      [BEVM_S5_DS2] dev2-template01/dev2-template01.vmx             windows7Server64Guest   vmx-07
413    qa2-eventloader01    [6C_F5_BEVM_RSTR06] qa2-eventloader01/qa2-eventloader01.vmx   rhel6_64Guest           vmx-08
414    qa2-limpperf         [BEVM_S5_DS1] qa2-limpperf/qa2-limpperf.vmx                   windows7Server64Guest   vmx-09
415    qa2-gin03            [6C_F5_BEVM_RSTR06] qa2-gin03/qa2-gin03.vmx                   windows7Server64Guest   vmx-08
416    QA2-CDSPROC02        [BEVM_F5_DS1] QA2-CDSPROC02/QA2-CDSPROC02.vmx                 windows7Server64Guest   vmx-09
426    QA2-CDSSII01         [BEVM_F5_DS2] QA2-CDSSII01/QA2-CDSSII01.vmx                   windows7Server64Guest   vmx-09
430    qa2-socmail          [BEVM_S5_DS3] qa2-socmail/qa2-socmail.vmx                     rhel6Guest              vmx-09
431    hpsd-dev-03          [BEVM_S5_DS4] hpsd-dev-03/hpsd-dev-03.vmx                     windows7Server64Guest   vmx-07
433    dev-apachesolr1      [BEVM_F5_DS2] dev-apachesolr1/dev-apachesolr1.vmx             centos64Guest           vmx-08
437    dev2-anl02           [BEVM_S5_DS1] dev2-anl02/dev2-anl02_NEW.vmx                   windows7Server64Guest   vmx-09

/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # vim-cmd vmsvc/reload 333

/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # vim-cmd vmsvc/reload 426

Vmware ESXi commands

 
 
 
 
 
 
Rate This

To view VMware version
~ # vmware -vl
VMware ESXi 5.1.0 build-1900470
VMware ESXi 5.1.0 Update 2

To view Volumes
~ # cd /vmfs/volumes/
/vmfs/volumes # ls -lh
                                                                                                                                                 
drwxr-xr-t    1 root     root        7.0K Jan  9 16:12 539a0e50-28333c1d-676b-14                                                                                                                                                        
drwxr-xr-t    1 root     root        8.1K Jan  8 20:14 539a10b2-88ba47fd-a0d1-14feb54b5751                                                                                                                                                          
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 6A_F5_BEVM_RSTR06 -> 539a                                                                                                                                                                                                          
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 6C_F5_BEVM_RSTR06 -> 539a                                                                                                                                                                                                                                                                                                            lrwxr-xr-x    1 root     root          35 Jan 11 11:51 99 - Templates and ISOs -S5 - RSTR99 -> 50eb3cc7                                                                                                                                   
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 BEVM_F5_DS1 -> 50ceadfb-5                                                                                                                                                           
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 BEVM_F5_DS2 -> 50ceaf07-7                                                                                                                                                    1b4d2ea-b973-00221941cda8

To find details of a VM

/vmfs/volumes # find . -iname qa2-cdssii01
./50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01

/vmfs/volumes # cd 50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01

/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # ls -lh
-rw-------    1 root     root          13 Jan 11  2015 QA2-CDSSII01-aux.xml
-rw-r--r--    1 root     root          73 Apr 24  2015 QA2-CDSSII01-ba3c9617.hlo                                                                                                                                                             g
-rw-------    1 root     root        4.0G May 18  2015 QA2-CDSSII01-ba3c9617.vsw                                                                                                                                                             p
-rw-------    1 root     root        3.1M May 18  2015 QA2-CDSSII01-ctk.vmdk
-rw-------    1 root     root       50.0G Jan 11 11:52 QA2-CDSSII01-flat.vmdk
-rw-------    1 root     root        8.5K Jan 11 11:05 QA2-CDSSII01.nvram
-rw-------    1 root     root         613 May 18  2015 QA2-CDSSII01.vmdk
-rw-r--r--    1 root     root          43 Mar  4  2015 QA2-CDSSII01.vmsd
-rwxr-xr-x    1 root     root        4.0K May 27  2015 QA2-CDSSII01.vmx
-rw-------    1 root     root           0 May 18  2015 QA2-CDSSII01.vmx.lck
-rw-r--r--    1 root     root         267 May 27  2015 QA2-CDSSII01.vmxf
-rwxr-xr-x    1 root     root        4.0K May 27  2015 QA2-CDSSII01.vmx~
-rw-------    1 root     root      640.5K May 18  2015 QA2-CDSSII01_1-ctk.vmdk
-rw-------    1 root     root       10.0G Jan  6 06:36 QA2-CDSSII01_1-flat.vmdk
-rw-------    1 root     root         616 May 18  2015 QA2-CDSSII01_1.vmdk
-rw-------    1 root     root        4.8M May 18  2015 QA2-CDSSII01_2-ctk.vmdk
-rw-------    1 root     root        1.2T Jan 11 11:52 QA2-CDSSII01_2-flat.vmdk
-rw-------    1 root     root         620 May 18  2015 QA2-CDSSII01_2.vmdk
-rw-------    1 root     root       23.7M May 14  2015 vmmcores-1.gz
-rw-------    1 root     root        8.1M May 14  2015 vmmcores-2.gz
-rw-------    1 root     root       16.8M May 15  2015 vmmcores-3.gz
-rw-------    1 root     root       18.1M May 18  2015 vmmcores-4.gz
-rw-r--r--    1 root     root      586.4M May 12  2015 vmware-145.log
-rw-r--r--    1 root     root      206.6K May 14  2015 vmware-146.log
-rw-r--r--    1 root     root       49.7K May 14  2015 vmware-147.log
-rw-r--r--    1 root     root      209.1K May 14  2015 vmware-148.log
-rw-r--r--    1 root     root      204.1K May 15  2015 vmware-149.log
-rw-r--r--    1 root     root       11.8M May 18  2015 vmware-150.log
-rw-r--r--    1 root     root        7.1G Jan 11 11:52 vmware.log
-rw-------    1 root     root      108.0M May 18  2015 vmx-QA2-CDSSII01-31245327   
                                                                                                                                                         
/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # less vmware.log

No comments:

Post a Comment

Interview Questions for Linux/UNIX and Solaris

Linux Interview Questions  Important One -  https://geekstuffweb.wordpress.com/2016/07/12/linux-interview-questions-and-answers-for-l2-and-l...