 | | Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks. | Windows 7 - Virtual XP Machine - Copy Virtual XP Machine - Copy How to Copy a Virtual XP Machine in Windows 7
Published by Kari
08-22-2009
| Virtual XP Machine - Copy How to Copy a Virtual XP Machine in Windows 7  Information This will show how to make a working copy of a Virtual XP Machine. Same priciple can also be used to make a copy of any Virtual PC virtual hard disk.
Every virtual hard drive (vhd) created with Virtual PC consists of three files if it is turned off, or of four files if it is hibernated or running. The file extensions for these files are: - .vhd = Virtual Machine virtual hard drive image
- .vmc = Virtual Machine settings file
- .vsv = Virtual Machine saved state file
- .vmcx = Virtual Machine description and registration settings
 Note The .vhd, .vmc and. vsv files are located in: C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines
The .vcmx in: C:\Users\Your_Username\Virtual Machines.
The .vsv and vmcx files are created automatically; to make a copy of a Virtual Machine we need to modify .vhd, .vmc and .vmcx files. In this example we call the original virtual drive Windows XP Mode, and the copy we create Windows XP Mode- Copy. You can name all your virtual drives as you like, as long as you remember to modify the settings file as described here below.
Copying Virtual XP or any other virtual hard disk created with Virtual PC is very easy and fast. Here's what you have to do: - Turn off your Virtual XP, do not hibernate it
- Open Folder Options, choose Show hidden files, folders and drives. Uncheck Hide extensions for known file types

- Goto C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines
- Copy Windows XP Mode.vhd and Windows XP Mode.vmc files. To be sure you copy the right files you can open Folder Options and uncheck "Hide extensions for known file types" and click OK
- Paste files to the same folder. Windows adds word Copy to both filenames, so now you have two new files: Windows XP Mode - Copy.vhd and Windows XP Mode - Copy.vmc
- Open Windows XP Mode - Copy.vmc with Notepad. It is a xml-file, so you can edit it normally with Notepad
- Find the following string containing virtual drives name: <drive_type type="integer">1</drive_type>

- Under the <drive_type...> change the vhd-file name to Windows XP Mode - Copy.vhd both in <absolute type="string"> and <relative type="string">
- Find the following place under <virtual_network> containing MAC-adress for Virtual XP's ethernet adapter: <id type="bytes">

- To allow two copies of Virtual XP to connect to network simultaneously , we have to change the MAC-adress of the ethernet adapter to avoid MAC-adress conflict. Adress is given in hex, 0-9 and A-E. It is enough to change one bit. In this example we have changed the last bit from 1 to 0
- Save and close the file
- Go to C:\Users\Your_Username\Virtual Machines , copy Windows XP Mode.vmcx and paste it to same folder
- Open the file Windows XP Mode - Copy.vmcx with Notepad
- Change the file names to Windows XP Mode - Copy.vhd in <primary_disk1 type="string"> and to Windows XP Mode - Copy.vmc in <vmc_path type="string">

- Save and close the file
- Open Folder Options and choose Don't show hidden files, folders or drives. Check Hide extensions for known file types and click OK.
That's it. Now you can run two Virtual XP's simultaneously. 
Have fun,
Kari EDIT: Thanks to Brink for visual appearance. |  Published by | | Reformed n00b-hugger Join Date: Jun 2009 Location: A Finnish immigrant in Leipzig, Germany Posts: 5,899 | |
 Tutorial Tools | | | | | | | | | |
08-22-2009
|
#1 | | 7 Home Pre x64, Windows XP Pro, Ubuntu 9.04 MO, USA |
Good work! Becoming our "vhd" expert, huh? | My System Specs | | System Manufacturer/Model Number Custom OS 7 Home Pre x64, Windows XP Pro, Ubuntu 9.04 CPU AMD Athlon 64 3400+ (single core) Motherboard Foxconn NF4UK8AA Memory 2 X 1GB OCZ Platinum DDR400 Dual Channel Graphics Card PNY GeForce 7300 256MB PCIE Sound Card NVIDIA nForce4 Ultra Onboard Chipset Monitor(s) Displays 2 x Acer AL1716 Screen Resolution 1280 x 1024 PSU Antec Earthwatts EA-430D Hard Drives Maxtor 6Y060L0, WD 1600JS Internet Speed 3M Cable Other Info Windows Experience Index: 3.3 |
08-22-2009
|
#2 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
Thanks, mate. Don't know about being an expert. I just need Virtual Machines at my line of work.
Kari | My System Specs | | System Manufacturer/Model Number HP Pavilion dv7-1199 Notebook OS Windows 7 x64 Ultimate CPU Intel Core2 Duo T9400 2.53 GHz Memory 4 GB Graphics Card GeForce 9600M GT Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1440*900, 1600*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2*Toshiba 320 GB MK3252GSX ATA,
External: 1TB for backups, 1TB network drive for media Internet Speed 50 MB VDSL Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
09-01-2009
|
#3 | | |
Virtual XP Machine - Copy Didn't work for me.
I even tried copying and editing the .vmcx file. When I try to run it or check the settings, I get an error that I don't have premission or the file is missing, then it disappears. | My System Specs | | |
09-02-2009
|
#4 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |

Quote: Originally Posted by JackStockton Didn't work for me.
I even tried copying and editing the .vmcx file. When I try to run it or check the settings, I get an error that I don't have premission or the file is missing, then it disappears. It works. Please do not misunderstand me but it have to be a self caused issue, like misspelling or forgetting something.
Here's a short checklist: - Do not change the file locations:
- The vmcx-files should always be located in C:\Your_Username\Virtual Machines
- The vmc-, vhd- and possible vsv-files should always be located in C:\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines
- The virtual machine you copy must be powered down, not hibernated
- All virtual machine files belonging to a certain virtual machine must have exactly the same name, only difference being the filename extension
- Tutorial, point 7: vhd-name must be changed in both absolute and relative type
- Tutorial, point 10: MAC-Address must be a valid 32-bit hexadecimal
- Tutorial, point 13: vhd-name must be changed in both primary_disk1 type and vmc_path type
So, check spelling, check the files needed are in the right folders, and check you edited the right files; for example after copying and pasting the files edit the copies, not the originals.
Good luck.
Kari
Last edited by Kari; 01-26-2010 at 07:17 PM..
| My System Specs | | System Manufacturer/Model Number HP Pavilion dv7-1199 Notebook OS Windows 7 x64 Ultimate CPU Intel Core2 Duo T9400 2.53 GHz Memory 4 GB Graphics Card GeForce 9600M GT Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1440*900, 1600*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2*Toshiba 320 GB MK3252GSX ATA,
External: 1TB for backups, 1TB network drive for media Internet Speed 50 MB VDSL Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
10-04-2009
|
#5 | | Windows 7 Professional RTM |
Beta to RC It's worth noting that if you go from W7VPC Beta to RC, the instructs listed are not quite enough (if you're using dynamic disks). You also need to copy the parent disk to the exact same location on the new computer. In my case, this simply meant copying over the "C:\Program Files\Virtual Windows XP" folder. | My System Specs | | OS Windows 7 Professional RTM |
10-12-2009
|
#6 | | Windows 7 Ultimate 64bit, XP Mode/ Vista HP32bit, VPC 2007 XP, Virtual Box multiple idstros New England |
Here I was able to backup the entire virtual machines folder before proceeding to place them into the new folder on a fresh install of 7 to see the XP Mode as well as a previous Vista on vhd install run again.
Later when the VPC RC and XP Mode RC were released the same vhd used for Vista needed a fresh install where the 32bit 7 RC was used to replace Vista on that same vhd! | My System Specs | | OS Windows 7 Ultimate 64bit, XP Mode/ Vista HP32bit, VPC 2007 XP, Virtual Box multiple idstros CPU AMD Phenom II X4 Deneb 3.4 Motherboard Gigabyte 790XTA-UD4 Memory Mushkin Enhanced DDR3 1600 8gb 1.5v-1.7v Graphics Card MSI Radeon 5750 1gb Sound Card Creative Labs X-Fi XtremeGamer - Same Monitor(s) Displays 2 x Acer P191W 19" widesscreen Screen Resolution 1440x900 native Keyboard Saitek Cyborg Mouse MS Trackball Explorer PSU Corsair 750TX Case Antec 900-2 - SSD compatible Cooling Zalman CNPS9900A Hard Drives WD Black Edition 1tb Sata 6.0 = 2
WD Black Edition 1tb Sata 3.0 = 1
WD 1tb Green Power sata = 2 1 external
usb flash drives = 6 Internet Speed 12mbps boost |
01-14-2010
|
#7 | | |
I see same problem as JackStockton I've been through the steps a few times with care, and I see the same strange behavior JackStockton mentioned where the .vmcx disappears as soon as I click on it. I will post a solution if I figure it out, but I just wanted to reinforce that JackStockton is not imagining things, and as near as I can tell, not failing to follow the directions with care. | My System Specs | | |
01-14-2010
|
#8 | | Windows 7 Ultimate 64bit, XP Mode/ Vista HP32bit, VPC 2007 XP, Virtual Box multiple idstros New England |
Welcome to the Windows 7 Forums! rfeague
One thing I found fast from the time this guide was first posted here and once the final XP Mode was available was that copying no longer worked as it had been seen with the XP Mode RC version which was the only version available at the time.
The final version runs like an installer with a preconfigured setup mode for each fresh install there unlike the RC. The guide here worked then for the RC version however but now needs to be updated.
When the RC version was used on a second 7 RC installation I would simply create a new shortcut once the files/folders were copied over once a fresh install of the Virtual PC was seen first to have it work then.
First you now install the VPC, restart the system, and then install the XP Mode later to watch the setup take place. | My System Specs | | OS Windows 7 Ultimate 64bit, XP Mode/ Vista HP32bit, VPC 2007 XP, Virtual Box multiple idstros CPU AMD Phenom II X4 Deneb 3.4 Motherboard Gigabyte 790XTA-UD4 Memory Mushkin Enhanced DDR3 1600 8gb 1.5v-1.7v Graphics Card MSI Radeon 5750 1gb Sound Card Creative Labs X-Fi XtremeGamer - Same Monitor(s) Displays 2 x Acer P191W 19" widesscreen Screen Resolution 1440x900 native Keyboard Saitek Cyborg Mouse MS Trackball Explorer PSU Corsair 750TX Case Antec 900-2 - SSD compatible Cooling Zalman CNPS9900A Hard Drives WD Black Edition 1tb Sata 6.0 = 2
WD Black Edition 1tb Sata 3.0 = 1
WD 1tb Green Power sata = 2 1 external
usb flash drives = 6 Internet Speed 12mbps boost |
01-15-2010
|
#9 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |

Quote: Originally Posted by JackStockton Didn't work for me.
I even tried copying and editing the .vmcx file. When I try to run it or check the settings, I get an error that I don't have premission or the file is missing, then it disappears. 
Quote: Originally Posted by rfeague I've been through the steps a few times with care, and I see the same strange behavior JackStockton mentioned where the .vmcx disappears as soon as I click on it. I will post a solution if I figure it out, but I just wanted to reinforce that JackStockton is not imagining things, and as near as I can tell, not failing to follow the directions with care. 
Quote: Originally Posted by Night Hawk Welcome to the Windows 7 Forums! rfeague
One thing I found fast from the time this guide was first posted here and once the final XP Mode was available was that copying no longer worked as it had been seen with the XP Mode RC version which was the only version available at the time.
The final version runs like an installer with a preconfigured setup mode for each fresh install there unlike the RC. The guide here worked then for the RC version however but now needs to be updated.
When the RC version was used on a second 7 RC installation I would simply create a new shortcut once the files/folders were copied over once a fresh install of the Virtual PC was seen first to have it work then.
First you now install the VPC, restart the system, and then install the XP Mode later to watch the setup take place. I really do not know why some of you guys are experiencing problems. To re-test the validity of this tutorial, I checked everything once more this morning.
I followed tutorial literally and it works. In the attached screenshot from this morning you can see two independent XP Modes open at the same time, both having different software installed, both connected to network. 
Quote: Originally Posted by kaw It's worth noting that if you go from W7VPC Beta to RC, the instructs listed are not quite enough (if you're using dynamic disks). You also need to copy the parent disk to the exact same location on the new computer. In my case, this simply meant copying over the "C:\Program Files\Virtual Windows XP" folder. I have Virtual PC and XP Mode RC, and this method works as it did with beta. The base vhd-file in C:\Program Files\Virtual Windows XP should not be copied, it is as the name says the base to every copy of the XP Mode.
Kari
Last edited by Kari; 01-15-2010 at 10:07 AM..
Reason: Spelling
| My System Specs | | System Manufacturer/Model Number HP Pavilion dv7-1199 Notebook OS Windows 7 x64 Ultimate CPU Intel Core2 Duo T9400 2.53 GHz Memory 4 GB Graphics Card GeForce 9600M GT Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1440*900, 1600*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2*Toshiba 320 GB MK3252GSX ATA,
External: 1TB for backups, 1TB network drive for media Internet Speed 50 MB VDSL Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) All times are GMT -5. The time now is 08:18 AM. |  |