VMware Cloud Community
aravinds3107
Virtuoso
Virtuoso
Jump to solution

Rename virtaul machine in Datastore

Hello,

I would like to rename a Virtual Machine folder and the files in Datastore from the old name to new name.

The VM is named as New Virtual Machine in the Datastore I would like to rename it to the actual server name.

It’s a Standalone ESX box (ESX 3.5 build 110268)

Thanks

Aravind

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos
1 Solution

Accepted Solutions
Rajeev_S
Expert
Expert
Jump to solution

Hi,

Power down the VM, use vmkfstools to edit name of the disk

vmkfstools -E <src.vmdk> <new.vmdk>

other files & VM name can be changed in GUI vi cleint.

Hope this helps!

View solution in original post

0 Kudos
6 Replies
Rajeev_S
Expert
Expert
Jump to solution

Hi,

Power down the VM, use vmkfstools to edit name of the disk

vmkfstools -E <src.vmdk> <new.vmdk>

other files & VM name can be changed in GUI vi cleint.

Hope this helps!

0 Kudos
WessexFan
Hot Shot
Hot Shot
Jump to solution

Raj's method may work, but this was always my method of renaming vms..

Shut down the VM

Putty into the host that the VM resides on

unregister the VM

vmware-cmd -s unregister (should be /home/vmware/NewServerName/NewServerName.vmx)

It will show up under Discovered VMs in Virtual Center. Drag and drop to whereever you want it.

VCP5-DCV, CCNA Data Center
athlon_crazy
Virtuoso
Virtuoso
Jump to solution

The esiest one is by using converter instead and Converter will do everything for you.

http://www.no-x.org
0 Kudos
pan1268
Enthusiast
Enthusiast
Jump to solution

Hi ,

It is very easy actually. Just few steps :

1) Power down the VM

2) Rename the display name of the VM to reflect the original server name

3) Move it to the different Datastore.

Then , all the VM files in the datastore will take the same ame as VM display name.

Hope this helps.

Cheers

0 Kudos
aravinds3107
Virtuoso
Virtuoso
Jump to solution

Hi,

I have renamamed the VMDK using VMKFSTOOLS and other files using GUI and also edited the vmx files using nano and changed the old server name to the new server name.

After registering the VM, when i try to power ON the VM its getting struck, tried getting the status using vmware-cmd getstate command its showing as stuck . Have killed the process and unregisted the VM and re-registered and tried still its failing to Power ON.

Can you please help!!

Thanks

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos
aravinds3107
Virtuoso
Virtuoso
Jump to solution

Hi,

VM was asking for the UUID value after creating a new UUID server powered ON without any issues.

Thanks!!

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos