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

Add a second virtual machine from an existing one

Hi Experts.  I have a Windows 2008 R2 server running Hyper-V.  On that server is a virtual machine (Windows XP) that I do a lot of testing on.  I would like to create a second virtual machine without having to build it from scratch.  How can I "copy" the existing virtual machine and make a second one out of it?  Thanks for your help.
0
samiam41
Asked:
samiam41
  • 3
  • 3
1 Solution
 
Svet PaperovIT ManagerCommented:
You can do that by coping and renaming the VHD file. Then you can create a new VM by attaching the new VHD. When you boot the new VM for a first time you can run Sysinternal NewSID http://technet.microsoft.com/en-us/library/bb897418.aspx to reset the computer SID.

There are other methods too: export/import or using parent disk but that one is the easiest.
0
 
samiam41Author Commented:
Thanks for the quick yet detailed response.  I copied the VHD file, renamed it slightly and created a new VM while attaching it to the renamed VHD file.  I went to download NewSID but found this message:

Note: NewSID has been retired and is no longer available for download. Please see Mark Russinovich’s blog post

After reading more about SID's, it doesn't appear that I need to modify the SID (which completely blows my mind).  

I realize that the news that it’s okay to have duplicate machine SIDs comes as a surprise to many, especially since changing SIDs on imaged systems has been a fundamental principle of image deployment since Windows NT’s inception. This blog post debunks the myth with facts by first describing the machine SID, explaining how Windows uses SIDs, and then showing that - with one exception - Windows never exposes a machine SID outside its computer,

I'm starting up the new (imaged) VM now and will post back.
0
 
samiam41Author Commented:
Can I use a AVHD (snap-shot of a VHD) as a VHD for another VM?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
Svet PaperovIT ManagerCommented:
No, you can't. AVHD is linked to VHD. If you have snapshots you need to do export/import in order to create a copy.
0
 
Svet PaperovIT ManagerCommented:
There is also another method suitable for testing purposes: using differencing disk. You need to read the help in order to understand how it works.
0
 
samiam41Author Commented:
Thanks for the help!

regards,
Aaron
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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