Hyper-V and Symbolic Links

 Hyper-V Meta data is stored in the following folder:

%SYSTEMDRIVE%\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\

If you open the directory you will see Symlinks to your virtual machine files. If ever the Hyper-V console loses track of your Virtual Machine data you might be able to tell Hyper_V where to look by reinserting the metadata. The following syntax must be run from the command prompt in the system32 folder.

mklink “%SYSTEMDRIVE%\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\GUIDMachineFile.xml” “c:\ClusterStorage\Volume1\VirtualMachineName\Virtual MachinesGUIDMachineFile.xml”

Example

mklink “%SYSTEMDRIVE%\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\4DD127D2-8F04-4B39-85A9-EA679487A9BF.xml” “c:\ClusterStorage\Volume1\JeffVM\Virtual Machines\4DD127D2-8F04-4B39-85A9-EA679487A9BF.xml”
 

Background

Symbolic link

From Wikipedia, the free encyclopedia

Jump to: navigation, search


In computing, a symbolic link (also symlink or soft link) is a special type of file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution.[1] Symbolic links first appeared in the 4.2BSD release of Berkeley Unix (1983). Today they are supported by the POSIX operating-system standard, most Unix-like operating systems, Windows Vista, and to some degree in Windows 2000 and Windows XP.


Symbolic links operate transparently for most operations: programs which read or write to files named by a symbolic link will behave as if operating directly on the target file. However, programs that need to handle symbolic links specially (e.g., backup utilities) may identify and manipulate them directly.


A symbolic link merely contains a text string that is interpreted and followed by the operating system as a path to another file or directory. It is a file on its own and can exist independently of its target. If a symbolic link is deleted, its target remains unaffected. If the target is moved, renamed or deleted, any symbolic link that used to point to it continues to exist but now points to a non-existing file. Symbolic links pointing to non-existing files are sometimes called orphaned or dangling.


Jeff Loucks
Available Technology
Available Technology


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>