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

Page 5 of 16 FirstFirst ... 3456715 ... LastLast

  1. Posts : 47
    Win7 x64 SP1, Virtual Hackintosh
       #40

    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 Computer


  2. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #41

    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 Computer


  3. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #42

    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 Computer


  4. Posts : 47
    Win7 x64 SP1, Virtual Hackintosh
       #43

    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 Computer


  5. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #44

    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 Computer


  6. Posts : 50
    Windows XP and 7
       #45

    Oblomow58 said:
    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 Computer


  7. Posts : 50
    Windows XP and 7
       #46

    Brink said:
    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 Computer


  8. Posts : 1
    Windows 7
       #47

    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..

    Last edited by wivelden; 10 Jun 2009 at 16:55.
      My Computer


  9. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #48

    Wivelden,

    Sorry, but Windows 7 cannot be installed or booted from an removable drive. It can only be done from an internal drive.
      My Computer


  10. Posts : 34
    Windows 7 64-bit 7600 OEM
       #49

    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 Computer


 
Page 5 of 16 FirstFirst ... 3456715 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 02:57.
Find Us