-1

I am attempting to rename VMDK's to eliminate spaces in the name.

Because I want to migrate our VMs from an old ESXi Server to a new Version Server.

(with scp command , I can only migrate VMs without spaces in the file names)

looking at this question : Migrate/Copy VM from ESXi to other ESXi

I don't have a VMware vCenter

Any idea or any suggestions to do this migration?

  • You can copy files with spaces with scp. you only need to either escape the space in the file\ name.vmdk or use quotes around the "file name.vmdk". – Gerald Schneider May 6 at 7:16
  • I have do scp copy , but he can't copy only 505B – Prince Tagoe May 6 at 7:17
  • Then you should focus on fixing that problem. Renaming files will gain you nothing. – Gerald Schneider May 6 at 7:25
  • Thank You I open the issue in Esxi Forum or here in serverfault ? – Prince Tagoe May 6 at 7:36
  • That's up to you. But I just posted a different method in your earlier question, I suggest you try this first. – Gerald Schneider May 6 at 7:42
1

Maybe this KB Articel by VM can help you with your question. In the articel it is described like this:

  • First you should stay save and have a Backup of the VM and it should be powered down.
  • Also your VM shouldnt have any snapshots left or shared disks with other machines.

The Renaming process is follwing with: If you have a vSphere Client

Log in to the VMware vSphere Client.

Locate the virtual machine in your host inventory and remove it.

Open a console to the ESXi host

Navigate to the directory containing the virtual machine.

Rename (VMDK) files using the vmkfstools -E command

Copy the virtual machine configuration file (.vmx) and edit the copied file in a text editor (i would preffer Notepad++) modify all old instances of the virtual machine's file names to the new file names.

Save the file and exit the editor.

Rename all remaining files with exception to the .vmx config file. Swap to the parent dircetory and rename it.

Now you can add the new VM config to the inventory of your ESXi host. You should be able to power on the Machine and be prompted for a question where you should answer I moved it. If you are not promted for the question you can find it in the summary tab and by right clicking the machine in your inventory where should be an option Answer question

For more information and more detailed reffer to this link https://kb.vmware.com/s/article/1029513?

This Section: Renaming virtual machine files in-place using the console

should help you.

  • this article is also for esxi 6.5 ?. – Prince Tagoe May 6 at 7:18
  • @PrinceTagoe This should actually work for this version fine – Kevin May 6 at 7:19
  • Rename cannot resolve the problem : – Prince Tagoe May 7 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.