Hyper-V VM Symbolic Links 를 처리하는 방법

Hyper-V ????? VM ?? ???? ???? ??? ???, ? ??? ???? ?? ????? ?? ??? ??? ??? ? ????.

??: https://msmvps.com/blogs/virtualreality/archive/2009/03/26/how-to-manipulate-hyper-v-vm-symbolic-links-or-how-to-unregister-and-register-virtual-machines-without-deleting-them.aspx

Hyper-V ? ??? ?? ?? ????? Symbolic links ? ??? ???? ?????.

C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines

?? ??? ??? ???? ????? ?? ???? ????? ??? ?? ????? ?? ?? ?? ??(Configuration)??? ????, ??? ???? ????.

Hyper-V ???? ???? VMs ? ???? ?? ??? ? ???? ??? ????.

1. ???, ? VM ? GUID? ??? ??? ????. ????? ?? VM ? ?? ???? ??? ? ? Virtual Machines ?? ????? ?? .XML ??? ??? ?????.

???? D:\VMs\LitwareSpeech ? ??? LitwareSpeech VM ? ??? ????. “D:\Vms\LitwareSpeech\Virtual Machines\” ????“D546B942-76AF-4C3B-97C6-9EE74828BC91.XML” ??? ? VM? ?? Configuration ??? ????.

2. Hyper-V ????? ? VM? ?? ??? ???? ??, “D:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\”? ?? VM GUID ??? ??? Symbolic link ? ?????. ?? ? ??? ???? ?? hyper-V ????? VM ? ?? ??? ??? ????. ?, VM ?? VHD? ?? Configuration ? ??? ?? ????.

clip_image002

3. ??? ? VM ? ??? ???? ??, “C:\ProgramData\Microsoft\Windows\Hyper-V” ? ?? ? Virtual Machines ??????? “Shift + ??? ????? ??” ? “??? ?? ? ??(Open Command Window Here”? ?????.

clip_image004

4. ?? ??1?? ???? VM GUID? ????, ?? ??? ?????.

Mklink <GUID>.XML <VMConfigPath.XML> ?? ?? ????

mklink D546B942-76AF-4C3B-97C6-9EE74828BC91.xml “D:\VMs\LitwareSpeech\Virtual Machines\D546B942-76AF-4C3B-97C6-9EE74828BC91.xml”

clip_image006

? ??? Hyper-V ????? VM ? ??? ?????.

VM ? ???? ?, Hyper-V ? ?? VM ? ?? Worker process ? SID? ?? Symbolic link ?? Security entry (ACE)? ?????. ????,??? ???? mklink ? ???? Symbolic link? ? ???? ?? ACE? ?? ???? ????. ?? ? ??? ? ??? VM? ????? ??, ??? ?? ?? ???? ????.

clip_image008

? ?? ??? ???? ??, ?? ??? ?????.

a. ?? VM? GUID? ???? ?? ????.

b. ? GUID? ????, ?? ??? ?????.

icacls "C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\<GUID>.xml" /grant "NT VIRTUAL MACHINE\<GUID>":(F) /L

? ?????, ??? ?? ?????.

icacls "C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines\D546B942-76AF-4C3B-97C6-9EE74828BC91.xml" /grant "NT VIRTUAL MACHINE\D546B942-76AF-4C3B-97C6-9EE74828BC91":(F) /L

clip_image010

c. ? ????? ?? Configuration ?? ??????? ?? ?? VM? Service SID? ???? Symbolic link ?? ??? ACE? ? ?????.

d. ?? ? ??? ????? ????, ?? ???? VM? ??? ? ??? ???.