Virtual Hard Drive to Real Hard Drive

Discussion in 'Virtual PC' started by mastervivi49, Dec 30, 2005.

  1. mastervivi49

    mastervivi49 Guest

    I am currently running Windows XP SP2, using Virtual PC 2004. In Virtual PC,
    I have installed an old copy of Windows 2000 that used to be installed on my
    hard drive, but has since been erased after my upgrade to XP four years ago.
    Anyway, I am absolutely in love with what I have done in the Virtual system,
    and want to put it on my real hard drive. I already resized my Windows XP
    partition, and have an unformatted partition large enough to accomodate the
    virtual hard drive's disk.

    So, my question is this. I want to make a 100% clone copy of what is on the
    virtual hard drive to the partition. I will handle the boot loader stuff on
    my own, as I have much experience with that. However, I don't know of any way
    to make my physical hard drive and virtual one interact. I know there is an
    option in Virtual PC to have a virtual PC talk directly to a physical hard
    drive instead of just a file on the boot drive, but I don't think there is
    any way to copy existing virtual data to a physical partition.

    Any ideas? Thanks in advance,

    mastervivi49, Dec 30, 2005
    1. Advertisements

  2. mastervivi49,

    It appears that you want to image a logical volume in the virtual machine
    onto a partition on the host computer. You may want to try the Forensic
    Acquisition Utilities (FAU) from There are two possible
    methods: The first method is by using netcat from within the virtual
    machine to image the logical volume to a netcat listener on the host
    computer. With this method use the following steps:

    1. Download the FAU from the URL above and unzip the files into a folder.

    2. Burn these files onto a CDROM disk.

    3. On the host computer start a netcat listener using the following command

    nc.exe -v -n -l -p 4000 -s -O \\.\X: --localwrt

    where is the IP address of the host computer and \\.\X: is the
    drive letter that has been mapped to the target partition.

    4. Insert the CDROM disk created under step 2, above, into the CD drive and
    capture the CD within the virtual machine.

    5. From the CD start a netcat client using the following command line:

    nc.exe -v -n 4000 -I \\.\C:

    where " 4000" is the IP address and port of the netcat listener
    created under step 3, above, and \\.\C: is the drive letter of the source
    volume in the virtual machine.

    Note that you must have network connectivity between the virtual machine and
    the host computer. The netcat listener will handle negotiating the Windows
    Firewall if it is turned on. You must be administrator on the local host to
    write to a logical volume. Ditto for the virtual machine to read from the
    logical volume. This has been tested with Windows XP SP2 but it should also
    work with W2k. Please do report any bugs to the email address provided in
    the help to netcat.

    The second method is to shut down the W2k virtual machine and copy the
    logical volume from the appropriate offset from within the virtual disk.
    The partition table from within the virtual disk will tell you what the
    appropriate offset is. You can use either dd from the FAU or WinHex. If
    you decide to use dd the command line will be something like the following;

    dd.exe -v if=w2kvirtualdisk.vhd of=\\.\X: --lockout --skip [offset to start
    of logical volume in vhd] --count [size of volume in bytes] --localwrt

    Offsets and sizes may be given in hex by prefixing '0x'. 'MiB' and 'GiB'
    may be used as a suffix to indicate mibibytes or gibibytes, respectively.
    Megabytes and gigabytes are indicated by 'MB' and 'GB' suffixes,

    The VPC/VPS virtual hard disk specification is available from


    RossettoeCioccolato, Dec 30, 2005
    1. Advertisements

  3. mastervivi49

    mastervivi49 Guest

    Thank you very much for the detailed response! This is exactly what I needed
    to do.


    mastervivi49, Dec 30, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.