2010년 2월 9일 화요일

부팅 가능 Virtual Hard Disk(VHD)를 부트 메뉴에 추가

 The following procedures describe how to add a native-boot virtual hard disk (VHD) to the boot menu. If you are adding the VHD to a computer that already has a Windows® 7 installation, you will need to add a boot entry to the menu. If you are adding the VHD to a computer running an older version of Windows®, for example Windows Server® 2008, you will need to update the system partition using the BCDboot tool and then edit the boot menu using the BCDedit tool.

 

To update a BIOS-based computer to include a Windows 7 boot menu

If you are deploying the VHD to a BIOS-based computer without a Windows 7 boot menu, for example, a computer using Windows Server 2008 as the running operating system, you will need to update the boot environment using a Windows Preinstallation Environment (Windows PE) disk before you can configure the system for native-boot VHDs.

  1. Copy the .vhd file to the destination computer. For example, at a command prompt, type:
    copy y:\windows7.vhd c:
  2. Use the DiskPart tool in Windows PE to attach the VHD on the destination computer. You can attach a VHD by using the Attach vdisk command. This activates the VHD so that it appears on the host as a disk drive rather than as a .vhd file. At a command prompt, type:
    diskpart
    select vdisk file=c:\windows7.vhd
    attach vdisk
    assign letter=v
    exit
  3. Use the BCDboot tool, be located in the \System32 directory of the VHD image to copy the boot environment files and Boot Configuration Data (BCD) configuration from the \Windows directory in the VHD to the system partition. For example, to use BCDboot from the VHD image, at a command prompt, type:
    cd v:\windows\system32
    bcdboot v:\windows

The computer is now updated to include a Windows 7 boot environment.

 

To add a native-boot VHD to an existing Windows 7 boot menu

 If you are deploying the VHD to a computer with an existing Windows 7 or Windows Server® 2008 R2 installation, you can use the BCDedit tool to make the new VHD bootable and add it to the boot menu.

Note:

Before you begin, you can back up your BCD store using the BCDedit tool with the /export option. For example, at a command prompt, type: bcdedit /export c:\bcdbackup
  1. Copy an existing boot entry for a Windows 7 installation. You will then modify the copy for use as the VHD boot entry. At a command prompt, type:
    bcdedit /copy {default} /d "vhd boot (locate)"
    When the BCDedit command completes successfully, it returns a {GUID} as output in the Command Prompt window.
  2. Locate the {GUID} in the command-prompt output for the previous command. Copy the GUID, including the braces, to use in the following steps.
  3. Set the device and osdevice options for the VHD boot entry. At a command prompt, type:
    bcdedit /set {guid} device vhd=[locate]\windows7.vhd
    bcdedit /set {guid} osdevice vhd=[locate]\windows7.vhd
  4. Set the boot entry for the VHD as the default boot entry. When the computer restarts, the boot menu will display all of the Windows installations on the computer and boot into the VHD after the operating-system selection countdown completes. At a command prompt, type:
    bcdedit /default {guid}
  5. Some x86-based systems require a boot configuration option for the kernel in order to detect certain hardware information and successfully native-boot from a VHD. At a command prompt, type:
    bcdedit /set {guid} detecthal on

 

관련글: VHD를 Win7 시스템에 연결하기

관련글: BCDBOOT 를 통해 VHD에 설치된 윈도우를 부팅 목록에 추가

2009년 12월 1일 화요일

Windows XP Mode FAQ

What is Windows XP Mode?

Windows XP Mode is a new benefit of Windows 7 Professional and Ultimate and provides additional application compatibility.  It allows you to install and run many of your productivity  applications for Windows XP directly from your Windows 7-based PC. It utilizes virtualization technology such as Windows Virtual PC to provide a Virtual Windows XP environment for Windows 7.

 

What is Windows Virtual PC?

Windows Virtual PC is the latest Microsoft virtualization technology designed for Windows 7. It is the runtime engine for Windows XP Mode to provide a virtual Windows environment for Windows 7. With Windows Virtual PC, Windows XP Mode applications can be seen and accessed from a Windows 7-based PC.

 

How is Windows Virtual PC different than previous versions of Virtual PC?

Windows Virtual PC is specially designed for small and medium business users. It is integrated with Windows 7 shell and Windows XP Mode setup. It also provides support to many USB devices and allows users to run many applications for Windows XP directly from a Windows 7 desktop with a single click. For a more detailed comparison, go to http://www.microsoft.com/windows/virtual-pc/features/compare.aspx.

 

How does Windows Virtual PC work with Microsoft Enterprise Desktop Virtualization (MED-V)?

Windows Virtual PC provides the runtime virtualization engine for MED-V, a product of Microsoft Desktop Optimization Pack for SA. Built on Windows Virtual PC, MED-V is specially designed to provide  IT Pros the capability to centrally manage and deploy virtual Windows environments to reduce complexity, maintain control, and keep costs low.

 

What is AMD-V and Intel VT technology?

AMD-V and Intel VT are CPU-specific hardware virtualization features that must be enabled to utilize Windows Virtual PC.

 

Is AMD-V or Intel VT a must-have to run Windows Virtual PC?

Yes. To determine if your CPU includes AMD-V or Intel VT features, check with your PC’s manufacturer.

 

Can I run Windows Virtual PC on a PC running Windows Vista or Windows XP?

Windows Virtual PC is an optional component of Windows 7 and is not currently available for Windows Vista or Windows XP-based PCs.

 

Can I use Windows Virtual PC to run Windows Vista, Windows 7, or Windows XP in a virtual machine?

Yes, Windows Virtual PC can run properly-licensed versions of these operating systems in a virtual environment. For requirement details, go to http://www.microsoft.com/windows/virtual-pc/support/requirements.aspx.

 

I can’t seem to find Windows Virtual PC on my computer. Where is it located?

If Windows Virtual PC is not located in All Programs on your Windows 7 Start Menu, you can download it free of charge from http://www.microsoft.com/windows/virtual-pc/default.aspx.

 

Does Windows XP Mode VM come with Windows Virtual PC?

No. Windows XP Mode VM, a single virtual copy of Windows XP SP3, is available for download free of charge from http://www.microsoft.com/windows/virtual-pc/default.aspx for PCs running Windows 7 Professional, Windows 7 Ultimate and Windows 7 Enterprise.

 

Why is Windows XP Mode  not available in Windows 7 Home Premium? 

Windows XP Mode is best suited for older business and productivity applications such as accounting, inventory and similar applications.  Windows XP Mode is not aimed at consumers because many consumer applications require extensive use of hardware interfaces such as 3-D graphics, audio, and TV tuners that do not work well under virtualization today.

 

Does Windows XP Mode offer any benefits for larger businesses?

Windows XP Mode and Windows Virtual PC as stand-alone features are specifically designed for small businesses and provide an unmanaged IT experience.  For larger businesses looking to reduce the cost of ownership of deploying Windows Virtual PCs across hundreds of users, Microsoft provides Microsoft Enterprise Desktop Virtualization (MED-V).  MED-V is the management tool for Windows Virtual PC; it builds on top of Windows Virtual PC to run two operating systems on one device.  Basically, by adding virtual image delivery and policy-based provisioning, it facilitates centralized management.  This is a great tool for IT pros who want to reduce the cost of managing and deploying Windows Virtual PC.

 

How do small businesses handle these management tasks?

An important consideration of working with virtualization technology is the fact that the user has both the physical and the virtual PC to maintain. Every PC requires a degree of maintenance including but not limited to keeping the operating system and applications up to date with patches, virus and malware protection, and backup. Windows XP Mode is pre-configured with the Windows XP firewall and to apply updates automatically from Windows Update. It is not pre-configured with anti-virus or anti-malware software, which is recommended. Because of the need to maintain the virtual machine, we recommend everyone make best efforts to upgrade applications to run natively in Windows 7 and use Windows XP Mode only when necessary.

BCDboot 명령줄 옵션

BCDboot는 시스템 파티션을 신속하게 설정하거나 시스템 파티션에 위치한 부팅 환경을 복구하는 데 사용되는 도구입니다. 시스템 파티션은 설치된 Windows® 이미지에서 작은 부팅 환경 파일 집합을 복사하여 설정됩니다. 또한 BCDboot는 설치된 Windows 이미지로 부팅할 수 있도록 지정하는 새 부팅 항목과 함께 시스템 파티션에 BCD(부팅 구성 데이터) 저장소를 만듭니다.

Windows® PE에서 BCDboot를 실행할 수 있습니다. Windows PE에 대한 자세한 내용은 Windows PE 연습을 참조하십시오.

BCDboot는 %WINDIR%\System32 폴더에 Windows® 7 및 Windows Server® 2008 R2와 함께 포함되어 있습니다. BCDboot는 %Program Files%\<버전>\Tools 디렉터리(여기서 <버전>은 Windows OPK 또는 Windows AIK임) 아래의 Windows OPK(OEM 사전 설치 키트) 및 Windows AIK(자동 설치 키트)에서도 사용할 수 있습니다.

BCDboot는 컴퓨터에 이미 있는 Windows 이미지의 부팅 환경 파일 집합을 복사합니다. BCDboot는 Windows Vista®, Windows Server® 2008, Windows 7 또는 Windows Server 2008 R2의 이미지에서 부팅 환경 파일을 복사할 수 있습니다. 시스템에 Windows 이미지를 적용하는 방법에 대한 자세한 내용은 Windows 이미지 캡처 및 적용를 참조하십시오.

BCDboot는 %WINDIR%\System32\Config\BCD-Template 파일을 사용하여 시스템 파티션에서 새 BCD 저장소를 만들고 BCD 부팅 환경 파일을 초기화합니다. BCD-Template 파일에 특정 BCD 설정이 정의될 수 있습니다. 또한 이 도구는 운영 체제 이미지 %WINDIR%\boot 폴더 및 %WINDIR%\System32 폴더에 있는 최신 버전의 부팅 환경 파일을 시스템 파티션에 복사합니다.

BCDboot는 펌웨어에서 식별하는 기본 시스템 파티션에 파일을 복사합니다. DiskPart와 같은 분할 도구를 사용하여 이 파티션을 만들 수 있습니다. BCDboot에서 파티션을 찾을 수 있도록 이 파티션에 드라이브 문자를 지정할 필요는 없습니다. 자세한 내용은 명령줄의 DiskPart 도움말이나 Diskpart 명령줄 구문(페이지는 영문일 수 있음)을 참조하십시오.

  • BIOS 기반 시스템에서 시스템 파티션은 MBR(마스터 부트 레코드) 디스크 형식을 사용하는 디스크의 활성 파티션입니다. BCDboot는 시스템 파티션에 \Boot 디렉터리를 만들고 이 디렉터리에 모든 필수 부팅 환경 파일을 복사합니다.

  • UEFI(Unified Extensible Firmware Interface) 기반 시스템에서 EFI 시스템 파티션은 GPT(GUID 파티션 테이블) 디스크 형식을 사용하는 디스크의 시스템 파티션입니다. BCDboot는 \Efi\Microsoft\Boot 디렉터리를 만들고 이 디렉터리에 모든 필수 부팅 환경 파일을 복사합니다.

BCDboot는 시스템 파티션의 기존 부팅 환경을 업데이트할 수 있습니다. 새 파일 버전의 Windows 이미지가 시스템 파티션에 복사됩니다.

시스템 파티션에 BCD 저장소가 이미 있는 경우

  • BCDboot는 BCD-Template 파일의 설정을 기준으로 기존 BCD 저장소에 새 부팅 항목을 만들고 동일한 Windows 이미지를 참조하는 중복된 부팅 항목을 제거합니다.

  • Windows 이미지에 대한 부팅 항목이 이미 있고 해당 부팅 항목에 대해 기본값 이외에 추가 BCD 설정을 사용할 수 있는 경우 이러한 설정은 다음에 OS 로더 GUID에서 식별한 기존 부팅 항목을 BCDboot에서 만든 새 부팅 항목으로 병합하기 위해 /m 옵션을 사용하여 BCDboot를 실행할 때 유지될 수 있습니다.

 

BCDBOOT source [/l locale] [/s volume-letter] [/v] [/m [{OS Loader GUID}]]

Option

Description

source

Specifies the location of the Windows directory to use as the source for copying boot-environment files.

/l

Optional. Specifies the locale. The default is US English.

/s

Optional. Specifies the volume letter of the system partition. The default is the system partition identified by the firmware.

/v

Optional. Enables verbose mode.

/m

Optional. By default, merges only global objects.

If an OS Loader GUID is specified, merges the given loader object within the system template to produce a bootable entry.

Examples

·         This example initializes the system partition using files from the operating system image installed on the C: volume.

 

bcdboot C:\Windows

·         This example sets the default BCD locale to Japanese, and copies BCD files to a system partition that was assigned a volume letter S: using DiskPart.

 

bcdboot C:\Windows /l ja-jp /s S:

·         This example merges the OS loader in the current BCD store identified with the given GUID in the new BCD store.

 

bcdboot c:\windows /m {d58d10c6-df53-11dc-878f-00064f4f4e08}