Hyper-V: Dual Boot Hyper-V VHD

Hyper-V에서 사용하던 VM을 실제 머신에서 멀티부팅에 사용하기

현재 Hyper-V 용으로 만들어진 1세대 VM용 VHD가 있다. 단순히 기존 VHD를 붙여서 해당 윈도우 폴더를 bcdboot로 추가하는 형식으로는… 제대로 작동하지 않았다.

clip_image001

그래서 ‘무엇인가 작업을 더 해줘야 하는 것이 아닌가’는 생각이 들었다. 검색해보니 Dual Boot Hyper-V 라는 글을 발견해서, 먼저 VHD를 마운트했다.

clip_image002

로컬 디스크 (H:)에 마운트됨.

clip_image003

명령 프롬프트에서 Bcdedit를 실행해 GUID를 복사.

clip_image004

http://www.hyper-v.nu/archives/tag/boot-from-vhd/

http://blogs.technet.com/b/juanand/archive/2010/10/26/dual-boot-hyper-v-vhd.aspx

clip_image005

Vhdx 파일이라 안되나 싶어서 VHD로 변환을 시도.(디스크 편집 기능 활용)

clip_image006

clip_image007

clip_image008

clip_image009

clip_image010

원본 파일과 거의 비슷한 크기로 변환됨.

clip_image011

Diskpart로 마운트 -> Bcdboot 로 부팅 목록에 추가하고 -> 마운트 해제 후 -> bcdedit /v로 목록 확인.

Osdevice와 device를 해당 vhdx로 지정한 후, (드라이브명을 [F:]와 같은 식으로 지정하는 것에 주의)

clip_image012

hyper-v launchtype을 auto로 지정.

clip_image013

보기 좋게 이름을 바꿈.

clip_image014

결과 확인.

clip_image015

재부팅.

실패 ㅠ ㅠ

Here are some examples of my notes:

 

Using the Diskpart Utility to Create and Attach a VHD

You can use the Diskpart command-line utility to create and attach a VHD by performing the

following steps:

1. On the Accessories menu, right-click Command Prompt and choose Run As

Administrator. If necessary, click Yes to allow the program to run.

2. Enter diskpart.

3. Enter create vdisk file=c\win7\myothervhd.vhd maximum=20000. This creates

a VHD file called Myothervhd Win7 with a maximum size of 20 GB in a folder called

Win7 on the C: drive. You can also create a VHD on a second internal hard disk or on

a USB external hard disk formatted with the NTFS filing system.

4. Enter select vdisk file=c:\win7\myothervhd.vhd.

5. Enter attach vdisk.

6. Enter create partition primary.

7. Enter assign letter=v.

8. Enter format quick label=Windows7.

9. Enter exit.

 

 

Install Win7 on VHD use WAIK cmd as admin

imageX.exe /apply i:\win7ent.wim 1 V:

 

Configure boot – WinPe ISO use the X: drive that is loaded by default

X:Windows\system32\bcdboot.exe c:\windows

 

Boot settings for VHD

Bcdedit /copy {current} /d “Win7”

Bcdedit /set {guid} device vhd=c:\win7VHD.vhd

Bcdedit /set {guid} osdevice vhd=C:\win7VHD.vhd

Bcdedit /set {guid} detecthal on

Bcdedit /v

 

Example:

Bcdedit get’s you the GUID

First

Bcdedit /copy {current} /d “You name it here”

Bcedit copy the GUID for Win7 or whatever it was named

 

C:\Program Files\Windows AIK\Tools\x86>bcdedit /set {a872c930-5774-11e2-a2f0-000

c290179bc} device vhd=[c:]\win7VHD.vhd

 

C:\Program Files\Windows AIK\Tools\x86>bcdedit /set {a872c930-5774-11e2-a2f0-000

c290179bc} osdevice vhd=[c:]\win7VHD.vhd

 

C:\Program Files\Windows AIK\Tools\x86>bcdedit /set {a872c930-5774-11e2-a2f0-000

c290179bc} detecthal on

 

detecthal on if you plan on whoring the VHD file on other machines otherwise it isnt necessary on the same PC using vmplayer.

 

Cheers

Stephen

 

출처: <http://www.techexams.net/forums/windows-7-exams/51301-bcdedit-set-error.html>

위 글을 보고 성공.

이것도 살펴보세요!

windows pictograph on keyboard

버려둔 인텔 맥, 부트캠프로 윈도우 11 설치하기, TPM 검사 우회 방법

윈도우 10 지원이 끝나면서 인텔 맥에 부트캠프로 윈도우를 깔아 쓰던 분들도 윈도우 11 설치를 시도하고 …

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다