Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Keep The TechnoWorldInc.com Community Clean: Read Guidelines Here.
Recent Updates
[August 11, 2025, 02:03:44 PM]

[August 11, 2025, 02:03:44 PM]

[August 11, 2025, 02:03:44 PM]

[August 11, 2025, 02:03:44 PM]

[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Techno News
 How can I install Windows 7 or Windows Server 2008 R2 to a virtual hard disk (VHD) file?
Pages: [1]   Go Down
  Print  
Author Topic: How can I install Windows 7 or Windows Server 2008 R2 to a virtual hard disk (VHD) file?  (Read 534 times)
Tanya
TWI Addict
********



Karma: 1
Offline Offline

Posts: 4190


View Profile


How can I install Windows 7 or Windows Server 2008 R2 to a virtual hard disk (VHD) file?

A. Windows 7 and Server 2008 R2 add the ability for an OS to be installed onto a virtual hard disk (VHD) file to boot physical hardware. To do this, perform the following steps:

Boot from the Windows 7 or Server 2008 R2 media.
Select language options and click Next.
At the Install Now screen, press Shift and F10 simultaneously to open a command prompt window. You'll partition the disks and create your VHD file in this window.
Select the disk and wipe all of its existing content using the following commands. diskpart
list disk
select disk 0
clean
Create a 200 MB system partition using the following commands. The Windows 7 and Server 2008 R2 installation procedures normally create this partition automatically. create part primary size=200
format fs=ntfs label="System" quick
active
Create a partition using the rest of the space on the disk. This partition will hold the VHD files. I call the partition Boot, but you can call whatever makes sense for you. Also, I've used the C drive, but when you boot to the VHD the drive letters will shift. If you assign a different letter, make sure to use the new letter in step 7. create part primary
format fs=ntfs label="Boot" quick
assign letter=C
Create a VHD file on the C drive. In this example, I've created it as a 25 GB file that is an expandable disk. You can use "type=fixed" instead of "type=expandable" to create a fixed-size VHD. A fixed-size VHD will use space on the physical disk equal to its full size as soon as the VHD is created but will give better performance, so I recommend fixed-size disks for uses other than testing. create vdisk file=c:win7ult.vhd maximum=25000 type=expandable
select vdisk file=c:win7ult.vhd
attach vdisk
create partition primary
format fs=ntfs label="Win7Boot" quick
You can now list your volumes with the command list volAn example list is shown here.






Click to expand
Exit Diskpart and close the command prompt window by entering the "exit" twice.
Proceed with the installation. When you're asked to select the installation target, choose the VHD partition you created. The installer will warn that you cannot install it on the partition, but you can ignore the warning.






Click to expand
Installation will now progress as usual. Once installation is finished, you can see that the VHD partition is now the C drive while the partition containing the VHD files is demoted down to the D drive, as shown here. If you look at the contents of the drives, you'll see D contains the VHD file and C, the content of the VHD, looks like a standard drive with a Windows installation. The 200 MB partition you created doesn't have a drive letter and is essentially invisible to the OS.






Click to expand
 
Full Story At Source with Video!
See also: Q. How do I dual boot an existing OS with Windows 7 or Windows Server 2008 R2 installed in a virtual hard disk (VHD) file?
 Send via e-mail |  Submit to Digg |  Add to Live Favorites
 


http://feeds.bink.nu/~r/binkdotnu/~3/vn8Ozpe1FrM/how-can-i-install-windows-7-or-windows-server-2008-r2-to-a-virtual-hard-disk-vhd-file.aspx

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.189 seconds with 24 queries.