النتائج 1 إلى 2 من 2

الموضوع: Dual Boot using VHD Native Boot

  1. #1
    عضوية جديدة
    تاريخ التسجيل
    Jun 2008
    المشاركات
    16
    معدل تقييم المستوى
    0

    Dual Boot using VHD Native Boot



    شرح ل VHD Native Boot
    الشرح من Microsoft Technet مع بعض التعديل مني لشرح سيناريو معين

    ممكن تستخدمVHD Native Bootعلشان تعمل بوت لويندوز 7 مع ويندوز اكس بي او فيستا او 2008

    ال VHD موجود من زمان Virtual Hard Disk
    لكن امكانية البوت Native Bootدي جديدة مع وندوز 7 و ويندوز 2008 R2

    VHD Native Boot ماينفعش يبوت الا ويندوز 7 او 2008 R2 بس


    Use VHD Native Boot to Dual boot Windows 7 or Windows Server 2008 R2 together or with Windows Vista or Windows XP



    Prerequisites
    To complete this task, you need the following:
    A technician computer running Windows 7. A technician computer is any computer with the Windows OEM Preinstallation Kit (Windows OPK) or Windows Automated Installation Kit (Windows AIK) tools installed on it.
    A Windows 7 image (.wim) file.
    A Windows 7 Windows PE disk. You can use PE from Windows 7 or Windows server 2008 R2 Media Disk (Described later).
    A destination computer on which to install the VHD. This computer requires 30 gigabytes (GB) or more of free disk space. You can install the VHD to a computer already running other operating system installations, or as the only operating system on a computer.

    Note:
    Use a generalized Windows 7 image. A specialized image is customized to a specific computer, while a generalized image can be deployed across many computers.



    Dual Boot Windows XP as Host OS and Windows 7 as VHD


    On the technician computer, use theDiskpart tool to create, attach, partition, and format a new virtual hard disk. Then You apply Windows image to the VHD using imagex. You can use DISM to identify the image instance you want to apply. Then use Detach command to stop this virtual disk from appearing on the host.


    Step 1: Create a VHD

    At an elevated command prompt, type:

    diskpart
    create vdisk file=c:\windows7.vhd maximum=25600 type=fixed
    select vdisk file=c:\windows7.vhd
    attach vdisk
    create partition primary
    assign letter=v
    format fs=ntfs quick label=vhd
    exit


    Step 2: Apply a Windows 7 image
    Use ImageX to apply the .wim file to the primary partition of the VHD. At a command prompt, type:

    cd /d "c:\program files\<version>\tools\<architecture>\"
    imagex /apply <pathtowim> 1 v:\

    Where <version> is Windows OPK or Windows AIK and <architecture> is x86, amd64 or ia64.

    For Example type:

    Cd /d "C:\Program Files\Windows AIK\tools\x86"

    Use DISM to know which image instance you are going to apply

    DISM /get-wiminfo /wimfile:F:\sources\install.wim

    Apply the image to the VHD

    Imagex /apply F:\sources\install.wim 4 v:\

    Where 4 is the index number for the Ultimate edition of Windows 7. Note that only Windows 7 Ultimate and Windows 7 Enterprise can boot from VHD.
    All Editions of Windows Server 2008 R2 including the core editions can boot from VHD.

    Use the DiskPart tool to detach the virtual disk after applying the image. At a command prompt, type:


    diskpart
    select vdisk file=c:\windows7.vhd
    detach vdisk
    exit


    Now you can Keep a clean copy of this VHD file as a generalized installed Windows 7 Ultimate to use any time.
    Copy the file to the destination computer over network or by USB drive.




    Step 3 : 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 or Windows XP 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.

    Instead of using Windows PE disk you can use the Windows 7 or Windows server 2008 R2 Disk (that already contains PE) then When you reach the Install Windows screen (Choose your language Screen) Press Shift + F10 to get to Command Prompt.



    To write the new Windows 7 or Windows Server 2008 R2 boot loader:

    BOOTSECT /NT60 C: /FORCE /MBR



    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=D:\BOOTVHDS\windows7.vhd
    attach vdisk
    list volume
    select volume <volume_number_of_attached_VHD>
    assign letter=v
    exit


    Use the BCDboot tool, located in the \System32 directory of the VHD image or in Windows PE 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 /d "v:\windows\system32"
    BCDBOOT V:\WINDOWS /S C:




    Set up the VHD native boot:

    BCDEDIT /SET {default} DEVICE VHD=[LOCATE]\BOOTVHDS\windows7.VHD
    BCDEDIT /SET {default} OSDEVICE VHD=[LOCATE]\BOOTVHDS\windows7.VHD
    BCDEDIT /SET {default} DETECTHAL ON

    Set up the legacy boot:

    BCDEDIT /CREATE {ntldr} /d "Windows XP"
    BCDEDIT /SET {ntldr} DEVICE PARTITION=C:
    BCDEDIT /SET {ntldr} PATH \ntldr
    BCDEDIT /DISPLAYORDER {ntldr} -ADDLAST


    When the computer restarts there will be 2 boot entry the default for the vhd and the second for the legacy.

    To put things back to normal and return to legacy boot, type:

    BOOTSECT /NT52 C: /FORCE /MBR






    Dual Boot Windows 7 Ultimate as Host OS and Windows Server 2008 R2 Enterprise as VHD

    Step1: Create a VHD (Described above)
    Step2: Apply a Windows Server 2008 image to a VHD (Described above)

    Step3: 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

    You don't need to boot from Windows PE to run the following steps you can run them from the existed Windows 7 or Windows server 2008 R2.



    Backup the boot configuration before editing it, in an elevated command prompt, type:

    bcdedit /export c:\bcdbackup

    Create boot entry for the new OS (windows 7 or windows server 2008 R2) by copying existed default entry.

    To type the description manually:
    bcdedit /copy {default} /d "Windows Server 2008 R2"
    or
    To let the default description from the vhd be captured:
    bcdedit /copy {default} /d "vhd boot (locate)"


    When the BCDedit command completes successfully, it returns a {GUID} as output in the Command Prompt window.

    Locate the {GUID} in the command-prompt output for the previous command. Copy the GUID, including the braces, to use in the following steps.

    Set the device and osdevice options for the VHD boot entry. At a command prompt, type:


    bcdedit /set {guid} device vhd=[locate]\Win2k8R2Ent.vhd
    bcdedit /set {guid} osdevice vhd=[locate]\Win2k8R2Ent.vhd


    Set the boot entry for the VHD as the default boot entry (Optional). 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}


    Some x86-based systems require a boot configuration option for the kernel in order to detect HAL -Hardware Abstraction Layer- and successfully native-boot from a VHD. At a command prompt, type:

    bcdedit /set {guid} detecthal on



    تحميل الشرح PDF من هنا

    by Eng. Bishoy Gaber Fathy bishoy_shenouda@hotmail.com

  2. #2
    عضو
    تاريخ التسجيل
    Jan 2005
    المشاركات
    40
    الدولة: Saudi Arabia
    معدل تقييم المستوى
    0

    رد: Dual Boot using VHD Native Boot



    جزاك الله كل خير على هالموضوع القيم

المواضيع المتشابهه

  1. win 8 dual boot
    بواسطة ashruf في المنتدى الأرشيف
    مشاركات: 2
    آخر مشاركة: 31-08-2012, 13:48
  2. هل يوجد برنامج لعمل dual boot
    بواسطة scsi7 في المنتدى الأرشيف
    مشاركات: 2
    آخر مشاركة: 10-03-2012, 17:09
  3. مشكلة في dual boot.... ألاقلاع المتعدد xp/ubuntu
    بواسطة fr0zeen في المنتدى الأرشيف
    مشاركات: 1
    آخر مشاركة: 03-02-2012, 08:02
  4. no boot available !!!
    بواسطة بوراشد190 في المنتدى مشاكل الحاسب وحلولها
    مشاركات: 4
    آخر مشاركة: 18-04-2011, 14:27

الكلمات الدلالية لهذا الموضوع

المفضلات

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •