Rename VM to match DNS name

Posted on 2016-11-17
Last Modified: 2016-11-17
Rename VM to match DNS name

in Vsphere client I see Windows VM that is displayed as VM01
If I ping VM01 or nslookup VM01, the system does not see it and cannot find it

In fact it has DNS name as VM1 and Ip address, I can ping it by hostname VM1 and Ip address.

in the Datastore all the files for the VM shows as VM01xxxxxx

I would like to have the VM displayed in Vsphere client as VM1 and the files in the Datastore should show as VM1xxxxx instead of VM01XXXXx

Thank you
Question by:jskfan
  • 2
  • 2
  • 2
  • +1
LVL 10

Assisted Solution

by:Richardson Porto
Richardson Porto earned 350 total points
ID: 41891952
To achieve that you will need to follow two steps:

1) rename the virtual machine to VM1 using the vSphere Client (or vSphere Web Client)
2) using storage vMotion, migrate the virtual machine to a different datastore, with that the virtual machine files will be renamed automatically.
LVL 30

Assisted Solution

by:Scott C
Scott C earned 75 total points
ID: 41891954
Here is a VMware article on renaming your Guest and the files.

There are quite a few steps, so be careful and make a backup before you start.
LVL 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 75 total points
ID: 41892007
why not just rename the Inventory name VM1

does it matter to you that the actual files are not VM1 ?
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

LVL 30

Expert Comment

by:Scott C
ID: 41892028
I wondered the same thing...we have a guy here at work, where if the names doesn't match the files he has to redo everything.
LVL 119
ID: 41892205
Probably the same sort of person that wants to know, what VM is on what host, and on what datastore!

rather than ensuring that SERVICE is not affected!

We have far more important things to concern ourselves with.....than "cosmetics", but there will always be those that want to cross the t's and do the i's!

and then miss that all their VMs are running on snapshots, have VMware Tools out of date, and do not patch their Windows or Linux Servers, with latest security updates!

Author Comment

ID: 41892350
I see in the Vsphere client, The Vmware Architect in our company, renamed the VM as VM01.old
After the, I believe he cloned it .
I was not sure that during the cloning operation, you can rename the files. I am sure you can rename the VM.
LVL 10

Accepted Solution

Richardson Porto earned 350 total points
ID: 41892356
During the clone, the destination virtual machine files will have the same name of the cloned virtual machine.

Author Closing Comment

ID: 41892379
Thank you Guys

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Provisioning vcpu for VM (cisco virl) 4 66
VMWARE 13 77
Hypervisor 1 U 10 36
ESXi 5.5 SSH service keeps stopping 6 58
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question