3

If it is a Virtual PC .vhd file, then I can make a copy of it so that if the .vhd goes bad for any reason (catch a virus or installed undesirable software), then I can use that old .vhd and start a new machine as if nothing happened.

Can I do that with a .vdi used by VirtualBox too?

the .vdi is about 3GB and comes from a fresh installation of Win XP from DVD-ROM.

thanks.

0

3 Answers 3

3

If you're simply replacing a .vdi for an existing VM, it will work. Otherwise you have to be cognizant of the fact that .vdi files have embedded UUIDs. To avoid clashes, make sure to use the vboxmanage.exe clonehd command.

1

If you want a portable backup that you can restore, use the export and import commands.

-1

Of course. But it would be easier to use VirtualBox's snapshot feature. First take a snapshot of your original, known-good machine.

example known good

If you later mess it up, right-click the machine and click "Restore Snapshot":

restore snapshot

Alternatively, you can close the running VM and select the option to revert to the current snapshot.

This method will also save disk space on the host, because only disk sectors that have been changed need to be stored in the snapshot image.

You can also use the feature to clone an entire VM. This will take care of updating the disk UUID.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .