Spaces will always kill you… Perhpas you have heard the advice ** never never never ** put spaces in a file name? Perhaps you ignored that advice and did it anyway? And then what happened?


This point is no more vitally important than in dealing with vmware esx and esxi servers. Especially when dealing with datastores. See this link for the gory details

I have my vcenter instance and I am managing 3 esxi-servers. If I want to download the entire .vmdk (virtual machine) for backup I would simply change my options in vCenter and goto DATASTORES.

When I browse a datastore looking for a virtual machine here is what I see:

I select datastore one and I see two virtual machines. Cicero and Danada. Let me click on Cicero and I can browse the datastore.

Ok now I want to click on Danada and browse its Datastore

Notice all the content is missing! Trust me it is still there as this is an important server and if it went missing, I just might go missing as well. So what is going on? Remember the link I posted at the top? Count the number of characters in the virtual machine name of danada. Notice how in the datastore window it seems to cut off.

(Compare that with the pic 1 and you will see a longer name.) (Hint Also I fixed the problem as well replacing “ “ with “_”.)

It turns out if you have a space in the 32nd place of the name of your vm, the datastore cannot see it! So lets do some quick counting

Sure enough 32nd char is a space. Now what to do? Simple Vmware recommends to rename the vm and eliminate the space in that spot (I now go further and forbid all spaces ever) and then you need to migrate the vm to another system and the content will appear again. I tried this and it works the problem of the missing data solved.