<p>I use Virtual PC to create fresh environments for testing my installer. But I must be doing something wrong because a VPC image with Vista or XP inside is taking around 15GB of disk space (that includes VS2005/S2008 installed in them). </p>

<p>To create a new copy for testing I copy and paste the folder that has the .vhd, .vmc and .vsv files inside. After using the new VPC image for testing I then delete that copied folder. This works but it takes a looong time to copy 15GB each time. Is there some faster/more efficent approach?</p>

[{'answer_id': 81923, 'author': 'Oli', 'author_id': 12870, 'author_profile': 'https://Stackoverflow.com/users/12870', 'pm_score': 1, 'selected': False, 'text': '<p>Doesn\'t VirtualPC have a fake-write/snapshot mode? That way it should not write to your original disk at all unless you say so at the end of the session.</p>\n\n<p>If it doesn\'t, you might seriously want to consider VMWare or VirtualBox as these do have this feature and it\'s REALLY useful for things like this.</p>\n\n<p>Edit: it looks like VPC does have a feature like this called differencing disks. Have a look at this:\n<a href="http://www.andrewconnell.com/blog/articles/UseVirtualPCsDifferencingDisksToYourAdvantage.aspx" rel="nofollow noreferrer">http://www.andrewconnell.com/blog/articles/UseVirtualPCsDifferencingDisksToYourAdvantage.aspx</a></p>\n'}, {'answer_id': 81929, 'author': 'blowdart', 'author_id': 2525, 'author_profile': 'https://Stackoverflow.com/users/2525', 'pm_score': 4, 'selected': True, 'text': '<p>Use <a href="http://www.petri.co.il/virtual_creating_differencing_disks_with.htm" rel="nofollow noreferrer">differencing/undo disks</a>. This means when you shut down your VPC you\'ll be asked if you want to save changes, simply answer no and you\'ll be back to where you started.</p>\n'}, {'answer_id': 81930, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>VPC has a so called undo disk. you create sg similar like "restore point" and in vpc you can roll back to that version. ideal for testing setups.</p>\n'}, {'answer_id': 81931, 'author': 'John Sibly', 'author_id': 1078, 'author_profile': 'https://Stackoverflow.com/users/1078', 'pm_score': 1, 'selected': False, 'text': '<p>Sound like you need to use differencing virtual hard disks rather than creating a new copy every time.</p>\n\n<p>Instructions <a href="http://dotnet.org.za/matt/pages/2413.aspx" rel="nofollow noreferrer">here</a></p>\n'}, {'answer_id': 81982, 'author': 'kfh', 'author_id': 6597, 'author_profile': 'https://Stackoverflow.com/users/6597', 'pm_score': 0, 'selected': False, 'text': '<p>Also, you mentioned cut &amp; paste, this is not the best way to be copying large amounts of data within windows. At least use xcopy, robocopy is even faster.</p>\n'}, {'answer_id': 129032, 'author': 'seisyll', 'author_id': 21815, 'author_profile': 'https://Stackoverflow.com/users/21815', 'pm_score': 1, 'selected': False, 'text': "<p>Another option: you can use Microsoft's ImageX to store VHDs in WIM format.  If you have multiple images you are constantly reusing, this is an incredible way to manage VMs.  I have a slew of Windows XP and 2003 images I keep in compressed WIM format.</p>\n\n<p>You can capture the VMs by mounting them in Windows PE and then capturing them to a network drive.</p>\n"}, {'answer_id': 282498, 'author': 'John Baughman', 'author_id': 26923, 'author_profile': 'https://Stackoverflow.com/users/26923', 'pm_score': 0, 'selected': False, 'text': '<p>Also, another option if you are looking to duplicate the images for use on other real machines, you can convert the disk to a dynamically expanding disk which will reduce the size of the vdisk making it easier to copy. This also allows for a more rapid backup, which looks to be part of what your testing does by default. The problem with dynamic disks is they tend to be slightly slower performance wise than fixed-size disks. </p>\n\n<p>However, if all you are doing is using it for testing on the same machine, see the answers above. Differencing is the way to go.</p>\n'}]
['https://Stackoverflow.com/questions/81904', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6276/']