Page 1 of 1

How to copy a VM to another Windows PC?

Posted: 20. May 2011, 12:24
by DavidA
Hi

There are many threads and articles about cloning a VM, but please will someone tell me the best way to copy a VM from one machine to another? I simply want to give another user my VM.

I think it best not to give them all snapshots of the VM - I want simply to give them my latest snapshot.

I am running VB 4.0.8. Hoping for a simple answer :)

Best regards

David

Re: How to copy a VM to another Windows PC?

Posted: 20. May 2011, 20:10
by Sasquatch
If the VM is created with version 4.0, you can simply copy the VM folder and use Machine > Add on the other system to add the VM to VB.

Re: How to copy a VM to another Windows PC?

Posted: 23. May 2011, 16:42
by DavidA
Sasquatch wrote:If the VM is created with version 4.0, you can simply copy the VM folder and use Machine > Add on the other system to add the VM to VB.
Thanks for your reply. My VM has numerous snapshots. I am thinking that it would be nice to copy just the most recent snapshot to the new machine. Would the correct way to do that be to first copy the VM folder to the new machine as you suggest, then add the VM on the new host, and then 'Delete' each snaphsot in turn, starting at the most recent, on the new host?

Re: How to copy a VM to another Windows PC?

Posted: 23. May 2011, 16:47
by Perryg
You may want to look at CloneVDI Tool and see if this will do what you need. It allows for cloning from the last snapshot IIRC, but read all the entries and user help files first (inside the zip file).

Re: How to copy a VM to another Windows PC?

Posted: 23. May 2011, 17:08
by DavidA
Perryg wrote:You may want to look at CloneVDI Tool and see if this will do what you need. It allows for cloning from the last snapshot IIRC, but read all the entries and user help files first (inside the zip file).
Thanks, I have seen that tool. However, I would like to understand the basic principles of what is going on inside VirtualBox, rather than adopt another tool at this time.

Re: How to copy a VM to another Windows PC?

Posted: 23. May 2011, 17:17
by Perryg
That's your decision of course. I only suggested the use of this tool due to the inherent fragility of snapshots IMHO. Make one mistake or even a PC hiccup and you run the risk of loosing it all. Just be very careful and have very good backups of everything VBox.

Re: How to copy a VM to another Windows PC?

Posted: 24. May 2011, 21:52
by Sasquatch
You can see how it goes without flattening the snapshot tree and just add the machine on the new Host. But things might turn ugly and you have to discard the current state. I had to do that when I reinstalled my laptop (did a full reinstall, including partition order). The VMs were moved to a safe location, then I added them manually to VB. This resulted in an unbootable VM until I discarded the current state and thus reverted to the last snapshot state (all changes since were lost).