Backup XP Mode?

Page 1 of 2 12 LastLast

  1. Posts : 135
    Windows 7 Ultimate 64
       #1

    Backup XP Mode?


    I just went through a lengthy process to remove and reinstall XP mode on my Windows 7 machine, including installing and updating an antivirus program, running Windows Update to get all 37 critical patches, and reinstalling my XP Applications.

    It occurred to me that it would have been nice to have a backup of the Virtual Machine, and XP Mode that I could simply retore rather than remove everything and start over (sort of a manually prepared version of System Restore for the XP Mode). I do have a disk imaging program, and of course, could resore my most recent image. But I don't want to restore the entire C Drive, if I can avoid it.

    Does anyone know if a backup can be made of JUST the Virtual Machine and XP Mode, and if so, what folders would need to be included? My intution tells me that there may be supporting files in places like the Windows\System folder, or entries in the Registry that would not be captured in such a backup, but if those files or setting are not the cause of the problem, restoring a backup might work.

    Does anyone have any experience in doing this?
      My Computer


  2. Posts : 7,878
    Windows 7 Ultimate x64
       #2

    You just need a copy of the virtual hard drive file. That's it.
      My Computer


  3. Posts : 135
    Windows 7 Ultimate 64
    Thread Starter
       #3

    XP Mode Backup


    Thanks for the info. I' assuming that the file you are talking about is the one found at C:/USERS/USER_NAME/APPDATA/LOCAL/MICROSOFT/WINDOWS VIRTUAL PC/VIRTUAL MACHINES. If so, let me confirm that I understand the long and short of it.

    Assuming that I have backed this file up on a regular basis, and experience a problem with XP Mode, similar to the one I just had where I had to remove and reinstall, am I correct in the following conclusions?

    1. Simply restoring the VHD file COULD fix the problem, assuming that the problem was a corruption of the VHD file.

    2. If that did not fix the problem, (presumaby the problem was somewhere OTHER than in the VHD file), I could remove and reinstall XP Mode and the Virtual Machine, THEN, in lieu of doing all the updating and reistallation of applications, I could restore the VHD file and have my old settings, applications, updates etc back to the way they were before the problem.

    3. And finally, the only way I would need to start completely from scratch, would be if there were problems in BOTH corruption of the VHD file, AND the underpinnings of the virtual machine and XP Mode.

    Are those assumptions more or less correct?

    Thanks in advance for your help.
      My Computer


  4. Posts : 11
    Windows 7 Ultimate 32 Bit
       #4

    For the first one, I would say yes. For the second one, you would have to make sure you ALSO have a copy of the virtual machine settings or you may have to start all over. Good luck!
      My Computer


  5. Posts : 135
    Windows 7 Ultimate 64
    Thread Starter
       #5

    luigirez1 said:
    For the first one, I would say yes. For the second one, you would have to make sure you ALSO have a copy of the virtual machine settings or you may have to start all over. Good luck!
    OK--that makes a certain amount of sense. Now, where do I get a copy of the virtual machine settings, or what file do I backup which, when restored, would restore all of the virtual machine settings?
      My Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #6

    In the beginning of this tutorial you'll find a list of XP Mode files and their default locations.

    XP Mode has also a base vhd file (C:\Program Files\Windows XP Mode\Windows XP Mode base.vhd), which should not be copied or moved to another location.

    Kari
      My Computer


  7. Posts : 135
    Windows 7 Ultimate 64
    Thread Starter
       #7

    Kari said:
    In the beginning of this tutorial you'll find a list of XP Mode files and their default locations.

    XP Mode has also a base vhd file (C:\Program Files\Windows XP Mode\Windows XP Mode base.vhd), which should not be copied or moved to another location.

    Kari

    Kari--

    OK. Thanks for the tutorial. But a couple of questions for you. Right now, what I'm backing up is the vhd file located in the C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines folder. If I understand you correctly, I SHOULD also be backing up the vmc and vsv files from that same location. I can certainly add them to my backup job. But are you saying I should ALSO back up the vhd file in the C:\Program Files\Windows XP Mode\ folder? Am I reading you correctly that one of th vhd files is for XP mode, and the other one is for the virtual machine itself? Or am I hopelessly confused? And am I correct in assuming that your warning about not copying or moving it to another location would NOT prevent me from creating a backup copy of it, which if used, would replace the existing file in the same location?
    Last edited by RP McIntosh; 29 Apr 2010 at 21:09. Reason: Clarification
      My Computer


  8. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #8

    The base vhd file has to be in the default location, all other files anywhere you want to, as long as you remember to change the file location references as told in tutorial. To completely backup XP Mode, you need to copy both vhd files (base and XP Mode itself), vmcx and vmc files plus the folder C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Applications\Windows XP Mode.

    The vsv file exists only if XP Mode is hibernated, containing the hibernation data. I would not make the backup when XP Mode is only hibernated instead of completely shut down, but if you do so you need to copy vsv as well.

    Kari
      My Computer


  9. Posts : 135
    Windows 7 Ultimate 64
    Thread Starter
       #9

    Kari said:
    The base vhd file has to be in the default location, all other files anywhere you want to, as long as you remember to change the file location references as told in tutorial. To completely backup XP Mode, you need to copy both vhd files (base and XP Mode itself), vmcx and vmc files plus the folder C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC\Virtual Applications\Windows XP Mode.

    The vsv file exists only if XP Mode is hibernated, containing the hibernation data. I would not make the backup when XP Mode is only hibernated instead of completely shut down, but if you do so you need to copy vsv as well.

    Kari
    Thanks. Seems like a simpler solution would be to backup the base vhd file, plus the entire C:\Users\Your_Username\AppData\Local\Microsoft\Windows Virtual PC folder. That would get the XP Mode vhd file, the other there, plus the Windows XP Mode folder, all in one fell swoop.

    In checking out the files, I note that the XP Mode vhd file changes whenever I've used XP mode (which I would expect it to do), but that the base vhd file doesn't seem to change. In any case, I do appreciate you taking the time to provide this information. I'll modify my backup job accordingly.
      My Computer


  10. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #10

    Do not forget to backup the vmcx file in C:\Users\Your_Username\Virtual Machines\.

    By default, XP Mode is divided to two virtual hard disks. The base, or parent vhd contains the 'not negotiable' part of XP, system core, files needed to run XP. All user modifications, installed apps etc. are then stored to the XP Mode vhd.

    However, if you want to, you can make XP Mode to use only one vhd by merging the base, parent vhd and the XP Mode vhd. Here's how:

    • Go to XP Mode settings, choose Hard Disk 1 in left pane, click Modify

      Backup XP Mode?-xpm_modify_hd_1.png
      .
    • Click Merge virtual hard disk

      Backup XP Mode?-xpm_modify_hd_2.png
      .
    • Choose New file and browse to a location where you want to save the new, merged vhd

      Backup XP Mode?-xpm_modify_hd_3.png
      .
    • Give a name to the vhd, click Save

      Backup XP Mode?-xpm_modify_hd_4.png
      .
    • Click Merge

      Backup XP Mode?-xpm_modify_hd_5.png

    A new standalone XP Mode vhd is now created. It does no longer need the base vhd. Notice that merging takes quite a long time.

    Kari
    Last edited by Kari; 30 Apr 2010 at 02:25.
      My Computer


 
Page 1 of 2 12 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 22:45.
Find Us