• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 102
  • Last Modified:

Rename VM to match DNS name

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 10.10.10.10, 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
0
jskfan
Asked:
jskfan
  • 2
  • 2
  • 2
  • +1
4 Solutions
 
Richardson PortoSenior Infrastructure SpecialistCommented:
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.
0
 
Scott CSenior Systems EnginerCommented:
Here is a VMware article on renaming your Guest and the files.

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1029513

There are quite a few steps, so be careful and make a backup before you start.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
why not just rename the Inventory name VM1

does it matter to you that the actual files are not VM1 ?
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Scott CSenior Systems EnginerCommented:
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.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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!
0
 
jskfanAuthor Commented:
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.
0
 
Richardson PortoSenior Infrastructure SpecialistCommented:
During the clone, the destination virtual machine files will have the same name of the cloned virtual machine.
0
 
jskfanAuthor Commented:
Thank you Guys
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now