Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1824
  • Last Modified:

All new VMs created out of the template have a VHD with the origial server name

I created a template from an existing VM (Windows 2008 R2) and stored it in the library. However every time I create a new VM by using this template on which guest OS profile configuration is applied, I get a VM with the same VHD disk name as the original VM. The problem is, that the original VHD name contained the original server name. So every new VM created out of this template has a VHD with the origial server name.  This can be kind of confusing.

How can I rename the VHD either before I create a new VM out of the template or after I created the new VM?  I can't as SCVMM has no mecanism to rename a vhd in the process of creating a vm from template.

VMM is creating a folder by the name of VM when the vm is created and copies the VHD there.  But the VHD gets the name of the template and still, it is confusing no matter what.  Of course  I can use the full path to vhd to identify which VM it is associated with.  But it's really not the way to go.  I hope Microsoft will fix this up in the next release / uppdate.  

As SCVMM doesn't care about VHD names, is there an easy way to rename it ?  

Thanks
0
quadrumane
Asked:
quadrumane
  • 3
1 Solution
 
quadrumaneAuthor Commented:
Someone on the technet forum has figured it out.  It's not exactly what I would have expected.  But:

 "when you create a template of a VM and it is stored in the library, you can go into the library, go to the stored vhd and rename the name of the vhd and the file name of the vhd by using the properties function. this allows to rename a disk before you create a new machine out of the stored template."

Just don't forget to rename it back as it was.
0
 
quadrumaneAuthor Commented:
But you'll be unable to create more VM from the template at the time because all VMs will get the same VHD name.  
0
 
quadrumaneAuthor Commented:
Thanks
0
 
Glen KnightCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now