Force shutdown or kill a stuck VMWare virtual machine

Sometimes when a LUN is full a VM cannot shutdown properly Make a SSH connection to the host where the VM running at Login as root list all running VM’s # vmware-cmd -l Get the current state # vmware-cmd /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx getstate Output: [root@esx ~]# vmware-cmd /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx getstate getstate() = stuck Now you know for sure the status is stuck you can kill the VM ps auxwww |grep -i <VMNAME>.vmx</span> Output: root 3093 0.0 0.3 2016 860 ? S< Jul30 0:17 /usr/lib/vmware/bin/vmkload_app /usr/lib/vmware/bin/vmware-vmx -ssched.group=host/user -# name=VMware ESX Server;version=3.5.0;licensename=VMware ESX Server;licenseversion=2.0 build-158874; -@ pipe=/tmp/vmhsdaemon-0/vmx569228e44baf49d1; /vmfs/volumes/49392e30-162037d0-17c6-001f29e9abec/<VMDIR>/<VMNAME>.vmx The code right after root is the PID you must kill. First try only kill #kill 3093 Wait 30 seconds and try a getstate again: # vmware-cmd /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx getstate If the state is “off” your ready. If the state is still stuck try the following: #kill -9 3093 Wait 30 seconds and see the state is “off” now. If the state is still “stuck” migrate all VM’s to another host en reboot the host. ...

April 8, 2013 · 2 min · thomasf

virtual ethernet card network adapter 1 is not supported

I had the “error virtual ethernet card network adapter 1 is not supported” on a 64 bit Linux (ubuntu) virtual machine. To fix this problem I shutdown the virtual machine, removed the NIC and add a new E1000 network card. Then I boot the server even everything was fine :)

April 24, 2012 · 1 min · thomasf

VMware “Cannot open the disk ‘XXXXXX.vmdk’ or one of the snapshot disks it depends on.”

Source: http://www.ardamis.com/2009/11/20/vmware-cannot-open-the-disk-xxxxxx-vmdk-or-one-of-the-snapshot-disks-it-depends-on/ From time to time, I want to copy just the minimum files for a VMware virtual machine: the two .vmdk files and the .vmx file. After moving those files to a new location or deleting a snapshot file, attempting to boot the virtual machine returns the following error message: Cannot open the disk ‘XXXXXX.vmdk’ or one of the snapshot disks it depends on. Reason: The system cannot find the file specified. ...

September 13, 2010 · 1 min · thomasf

Configure Jumbo Frames in esx 4 Vsphere

-> Lets understand what’s Jumbo Frames first and how it benefits us … Jumbo frames are Ethernet frames with more than 1,500 bytes of payload (MTU). Conventionally, jumbo frames can carry up to 9,000 bytes of payload. Jumbo Frames allow ESX Server to send larger frames out onto the physical network. The network must support Jumbo Frames end‐to‐end for Jumbo Frames to be effective. iSCSI with jumbo frames gives better or rather much better performance .If you are getting sluggish performance then try enabling jumbo frames ...

February 25, 2010 · 4 min · thomasf

VMWare URL's

http://www.ntpro.nl/blog/ (Website VMWare Teatcher) http://www.vizioncore.com/ (ESX Server backup software ) http://www.vmug.nl/ (Dutch VMWare Users Group)

March 14, 2008 · 1 min · thomasf