Is there any way to rename a virtual machine (VM) or its files using vSphere Storage vMotion?
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
If you're going to change the name of a VM, then it's a good idea to change the underlying component file names. Changing the folder name of a data store by using a tool such as the vSphere Client doesn't change the underlying component file names in ESX/ESXi 3.5 and 4.x. It's easy to change file names through the ESXi console, but this is a time-consuming and potentially error-prone process.
Instead, you can change the VM name before a vSphere Storage vMotion process and then execute the migration. This will change the component file names to the new VM name during the migration. For example, access the vSphere Client, open the host inventory and locate the desired VM. Right-click and rename the desired VM and then migrate the VM to another location. When the migration finishes, the VM component file names will match the VM that you renamed.
This wasn't really a bug, but it was changed in updates for vCenter Server 5.x. You may need to enable the renaming capability in the advanced settings for vCenter Server by adding the
provisioning.relocate.enableRename advanced parameter and setting it to true.
Dig Deeper on vMotion and Storage vMotion
Related Q&A from Stephen J. Bigelow
Long-distance vMotion eliminates practical geographical limitations by raising the round-trip latency limit.continue reading
Expert Steve Bigelow explains how instant clone technology helps VMware's vSphere Integrated Containers supply a baseline Linux OS and, as a result, ...continue reading
In order to ensure successful App-V deployment and get the most out of application virtualization, users should study up on App-V’s server and ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.