Search the VMware Knowledge Base (KB)
View by Article ID

Powering on a virtual machine fails with the error: Failed to extend swap file from 0 KB to xxxx KB (2030250)

  • 44 Ratings

Symptoms

  • Cannot power on a virtual machine
  • Powering on a virtual machine fails
  • You see the error:

    An unexpected error was received from the ESX host while powering on VM VM_name.
    Could not power on VM : Reason
    Failed to power on VM.
    Failed to extend swap file from 0 KB to size KB.

    For example:
    • An unexpected error was received from the ESX host while powering on VM vm-124.
      Failed to power on VM.
      Could not power on VM : No space left on device.
      Failed to extend swap file from 0 KB to 1048576 KB.
    • An unexpected error was received from the ESX host while powering on VM vm-49.
      Failed to power on VM.
      Could not power on VM : Invalid metadata.
      Failed to extend swap file from 0 KB to 2097152 KB.

Cause

This issue occurs if the ESX host is unable to create the swap file required to power on the virtual machine. This is most likely due to a storage problem on the datastore where the swap file is located.

Resolution

Note: These work arounds allow you to power on the virtual machine. However, you still need to investigate the underlying storage issue.

  • To workaround this issue when you see the No space left on device error, try one of these options:

Notes:
  • This article is updated regularly with other reasons that may cause this issue. Check this article for updates.
  • If you see a different reason for the failure, open a support request with VMware Support. For more information, see Filing a Support Request in My VMware (2006985).

See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 44 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 44 Ratings
Actions
KB: