Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Virtual Hard Drive VHD File - Create and Start with at Boot

01 Jun 2009   #40
Oblomow58

Win7 x64 SP1, Virtual Hackintosh
 
 
Re: VHD-File Type=Fixed vs. Type=Expandable

I created the file using "repair / command prompt / diskpart" during win7-installation with maximum=100000 type=expandable as file parameters. Then I quit repair and installed Win7 x86 RC on that file.

Under Win7 that file seems to be FIXED (thats my problem): The Drive D: with Vista and that file on it is very low on free disk space when Win7 is running, and the vhd-file shows 100 Gig in size.
When I start Diskpart from inside Win7 it reports the file type as FIXED

When take a look from inside of Vista, the behaviour is EXPANDABLE just showing me the used space (about 20 Gig now)

Installing virtual pc beta on Win7 did not change anything how the expandable vhd file is handled: Still as fixed when Win7 is running

But there is a difference after installation of Virtual PC:

When I boot from Win7 installation media, switch to a repair command prompt and start diskpart, it was (correctly) displayed as type EXPANDABLE before I installed Virtual PC
After installation the same procedure of checking the VHD with Win7 on it now displays the type of the file as UNKNOWN

Strange, isn't it?

Oblomow


My System SpecsSystem Spec
.
01 Jun 2009   #41
Brink

64-bit Windows 10 Pro
 
 

Strange indeed. I'll play with some more later tonight to see if I get reproduce what you are seeing, and hopefully have some answers for you.
My System SpecsSystem Spec
02 Jun 2009   #42
Brink

64-bit Windows 10 Pro
 
 

Oblomow,

Ok, I had a play with it. When I create a 40 GB expandable VHD file from within a elevated command prompt in Windows 7 or from boot as described in the tutorial, this is what I always see. The VHD file shows the expand size for me.

Virtual Hard Drive VHD File - Create and Start with at Boot-elevated_command_prompt.jpg

Virtual Hard Drive VHD File - Create and Start with at Boot-vhd_file.jpg

As a test, you might see if creating the VHD file first from within Windows 7, then picking back up with steps 1 to 4 then step 7 in the tutorial may work for you.


My System SpecsSystem Spec
02 Jun 2009   #43
Oblomow58

Win7 x64 SP1, Virtual Hackintosh
 
 
How to mount a VHD-File in Vista

Hi, Brink, Thanks for your reply.
It seems to be a difference, how a VHD-file looks in diskpart, when the OS (Win7) is loaded from that file. Possible it is a kind of locking, the virtual drive is under control of the OS and should show the maximum size as disk size.

Did you know a tool to mount that vhd-file with Win7 installed as normal disk drive from inside of Win7 SP2?
Since there are different types of VHD so I do not want to shrink that file (before I have madee a backup) using VHDresize or VMWare Converter

Is it possible to move the whole installation from outside the installation in the vhd to a normal disk partition?

Let me make an remark: WIn7 installation is fast, but the installation of all those Thinkpad drivers, utilities and Office including Spell Checker language packs and Service Packs for Langugage Packs and Spelling Packs and multiple Runs of WIndows Update is very time consuming!

Cheers, Oblomow58
My System SpecsSystem Spec
.

02 Jun 2009   #44
Brink

64-bit Windows 10 Pro
 
 

Sorry, but I do not know of anything that would allow a OS in a VHD to be transfered from the VHD to a normal partition or drive.
My System SpecsSystem Spec
02 Jun 2009   #45
unawave

Windows XP and 7
 
 

Quote   Quote: Originally Posted by Oblomow58 View Post
Did you know a tool to mount that vhd-file with Win7 installed as normal disk drive from inside of Win7 SP2?
What is "Win7 SP2" ???

You can mount a VHD file in Windows 7.
Go to disk management. In the left pane right mouse click to "Disk Management" and choose "Attach VHD"

Virtual Hard Disk - Create and Attach VHD
My System SpecsSystem Spec
02 Jun 2009   #46
unawave

Windows XP and 7
 
 

Quote   Quote: Originally Posted by Brink View Post
I do not know of anything that would allow a OS in a VHD to be transfered from the VHD to a normal partition or drive.
I don't know if this helps. But you can make an image backup with Windows 7 tools. The backup files are VHD files. Perhaps you can restore from this backup files to a separate partition ?

But notice: Windows 7 installed in a VHD file doesn't have a boot manager IN the VHD file.
My System SpecsSystem Spec
10 Jun 2009   #47
wivelden

Windows 7
 
 

Right..I installed Windows 7 into a VHD and it boots to it fine. What I would like to know is if I can move the VHD file to an external USB drive and boot to it. The idea is that if my internal drive goes out I could still boot to the VHD. Now I know there isnt a bootmgr in the VHD so how can I set one up on say a USB Flash drive and point it to the VHD on a partition on my external USB drive?

I already have the partition setup on the external drive as a 20GB partition and have copied the VHD file to it..I would just like to know how to get it to boot to it. Thanks in advance..

My System SpecsSystem Spec
10 Jun 2009   #48
Brink

64-bit Windows 10 Pro
 
 

Wivelden,

Sorry, but Windows 7 cannot be installed or booted from an removable drive. It can only be done from an internal drive.
My System SpecsSystem Spec
08 Jul 2009   #49
spydaz

Windows 7 64-bit 7600 OEM
 
 

Hi guys, I new here.

Good direct tutorial. This was my first way to install Win7 on VHD... I think this is the prefered way.

when creating the disks, the drive which is housing the VHD, Cannot contain "File Compression" probably because a vhd is also compressed files already...

Also im not sure, but, i dont beleive it works Creating VHD's onto Dynamic Paritions either. "IE: import foriegn disk" being the reason.

PS: Creating disk for use for win 7 "25GIG" should be your minimum - win7 uncompresses to ove 10gig. Also Create Dynamic disk, when possible as when creating fixed disk pre allocating disk space & Formatting takes a Period of Time! microsoft have not fixed this problem yet!

LEROY
My System SpecsSystem Spec
Reply

 Virtual Hard Drive VHD File - Create and Start with at Boot




Thread Tools




Similar help and support threads
Thread Forum
Fail to start up - Can't boot hard drive - Windows cannot be installed
Hi everyone, recently I bought a new laptop, MSI GP70 which came with Windows 8... I tried it for few weeks and than I decided to downgrade it to Windows 7. So, I did it, everything went well, I was using Windows 7 for couple of weeks, but now I have a problem... Last night I didn't turn it off,...
Installation & Setup
Virtual Hard Disk - Create and Attach VHD
How to Create and Attach a Virtual Hard Disk in Windows 7 A Virtual Hard Disk is a created VHD file on your hard drive that acts as a separate hard drive disk in Computer. This will show you how to create and attach (mount), or only attach (mount) an existing, a VHD in Windows 7. Special...
Tutorials
Boot issues with virtual hard disk. No windows boot manager
Hi, I really need some help here. My system has two drives: 1) SSD (C: drive) where my win7 OS boots from (call this normal_win7) 2) HDD (D: drive) where I keep my data I created a D:\virtual_win7.vhd file and installed win7 on it (for testing purposes) following these instructions: ...
Installation & Setup
Can i boot from a VHD (Virtual Hard Drive)
Hi, i was wondering if it is possible to boot my computer from a vhd and add it to the boot menu. I do not want to dual boot, I am trying to use the vhd like a dual boot. I am running Windows 7 Ultimate x64. Thanks
Virtualization
A Virtual Hard Drive? Two separate hard drives now run Win 7 x64
While looking into another possible problem with a hard drive on my system,I began unplugging the devices (there are four of them) to isolate the problem and in doing so, I I seriously corrupted C drive, and began getting 0x7b BSOD messages. First I tried to do a System Repair with the Repair...
Backup and Restore
WEI fails (cannot write file to hard drive) Boot drive set to B:\
I had a regular install of Windows 7 on a WD 1 TB drive with the usual C:\ as the boot drive. I just got a new SSD, so I set up a parallel or dual boot of Windows 7 on the SSD which is set up as the B: drive. So when I boot into the Windows on the SSD (B:\) and run the WEI, it fails because...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:58.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App