Friday, August 14, 2009

Hung VM or VM fails to power on with swap file errors

  1. Login to each ESX host (via Putty or similar app)
  2. Run
    ps -efwww | grep vm_guest_name
    on each host to determine which host has the hung VM process.
  3. If you get something like this: (This is the process that has your file open in ESX)

    root 1092 1 0 10:33 ? 00:00:00 /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-82663; -@ pipe=/tmp/vmhsdaemon-0/vmx6a6188c22e804baf; /vmfs/volumes/48729e6e-7cf3b2df-6ca0-001ec9b1b30a/vm_guest_name/vm_guest_name.vmx

  4. Kill the process using: kill -9 pid, where pid is 1092 in example above.
  5. You should be able to power on the VM now.

No comments:

Post a Comment