A. If you have a VM that's not showing in the Hyper-V management console, you can manipulate the content of the Virtual Machines folder and add a shortcut to the configuration XML file of the VM you want to add. The folder is located at C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines, but is hidden by default. Here's what the folder looks like from a command line:
Volume in drive C has no label.
Volume Serial Number is 94B9-23FE
Directory of C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines
01/07/2009 07:00 AM
01/07/2009 07:00 AM
01/07/2009 06:56 AM
01/07/2009 06:51 AM
03/21/2008 08:57 AM
07/17/2008 10:43 AM
01/04/2009 05:00 PM
5 File(s) 0 bytes
2 Dir(s) 103,899,435,008 bytes free
To create a link, use the Mklink command line utility. For example, the following command creates a link to the VM with the globally unique identifier 80ACEAD6-4314-4E2E-9C75-F0BCEE1F0848.
UPDATED: You'll also need to ensure the service account for the VM has the necessary permissions. To do so, run the following command.
icacls 80ACEAD6-4314-4E2E-9C75-F0BCEE1F0848.xml /grant "NT VIRTUAL MACHINE\80ACEAD6-4314-4E2E-9C75-F0BCEE1F0848":(F) /L
Note that you use /L because you're updating a symbolic link. If you had snapshots for the VM, you need to add a link in the Snapshots folder using the GUID for the snapshots, found in guid.xml. Repeat the process above for mklink and icacls but using the snapshot GUID instead of the VM GUID, and create them in Hyper-V\Snapshots instead of Hyper-V\Virtual Machines.
You can now stop and start the Virtual Machine Management Service for the VM with commands "net stop vmms" and "net start vmms" respectively.Related Reading
- Q. What is Microsoft Enterprise Desktop Virtualization (MED-V)?
- Q. Why isn't virtualization supported for the Exchange Server 2007 Unified Messaging (UM) server role?
- Four for Free: No-Cost Virtualization Tools and Utilities
- More virtualization articles
- Perform a Physical to Virtual (P2V) Migration with SCVMM 2008
- Perform a Virtual to Virtual (V2V) Migration with SCVMM 2008
- Virtual Desktop Infrastructure Introduction
- Virtualization and Hyper-V Architecture Fundamentals
Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.