VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Virtual machine cannot be powered on because its working directory is not valid

Details

After migrating a virtual machine you may see the following error when trying to boot the virtual machine:

"A virtual machine cannot be powered on because its working directory is not valid"

Solution

This may be caused if the name of the virtual machine directory has a space at the beginning or the end of the directory name. You may also experience problems powering on a virtual machine if there are spaces in the vmdk name.
 
Rename the directory so that there are no spaces in it.
 
To rename the directory:
  1. Connect to the ESX Server host using the Virtual Infrastructure Client.
  2. Log in as a user with administrative privileges on the ESX host.
  3. Right-click on the virtual machine and click on Remove from Inventory.
  4. Connect to the Service Console of the ESX host with an SSH client.
  5. Log in as a user with administrative privileges on the ESX host.
  6. Browse to the virtual machine directory under the VMFS volume.
  7. Rename the directory using the mv command.

    mv "/vmfs/volumes/storage1/Sample Directory " "/vmfs/volumes/storage1/SampleDirectory"


    Note: The space has been removed from the directory name

  8. Using the VI Client, navigate to the newly renamed directory in the Datastore browser to find the virtual machine.
  9. Right-click on the .vmx file and click Add to Inventory.
  10. Complete the wizard. T he virtual machine is registered.
 

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (0 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? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   
Actions