Page 1 of 1
Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 19:27
by acomber
Hi
I have VirtualBox installed on two different PCs. The hardware for the two machines is NOT the same. Is it possible to create a VM on one machine and then make a copy which I can then run on another (my second) machine? If so, can anyone provide a link to document explaining how or some instructions?
Many thanks.
Angus
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 19:37
by Perryg
The hardware for the two machines is NOT the same.
Explain the difference.
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 19:43
by acomber
Perryg wrote:The hardware for the two machines is NOT the same.
Explain the difference.
By that I mean the host OS hardware. - They are both PCs - Intel based.
I am assuming that this does not matter. But can someone please confirm and next step for me would be getting started in how to copy the VM. Can I just copy the contents of the appropriate /VirtualBox VMs/<vm_name> folder?
Any help would be much appreciated.
Angus
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 19:59
by Perryg
Yes it should work.
Copy the *entire* guests folder to the other machine and dbl click the *.vbox file to register it
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 20:35
by acomber
I have also found information on VboxManage clonevdi. It seems I just need to pass as parameters vdi file to copy and 2nd param, new file name. But I am not sure what this is doing. It seems to just make a copy of the vdi file. I can easily do this using the native operating system copy. So not really sure of the purpose of this command?
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 20:36
by acomber
Perryg wrote:Yes it should work.
Copy the *entire* guests folder to the other machine and dbl click the *.vbox file to register it
That sounds very easy. OK I will try that.
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 20:58
by acomber
I have digged further and it seems there is a vdi file which is a pure image and an associated .vbox file which is an xml file describing the hardware environment. so I am hoping I can just copy those 2 files to real machine2 and off I go.
Re: Can I copy a VM from one machine running VB to another
Posted: 27. Jan 2012, 21:04
by Perryg
Do you have snapshots?
Look it does not get any easier than what I explained above. You can make it hard if you like but if there are snapshots, or any other diff disks you are more than likely going to have issues.
Re: Can I copy a VM from one machine running VB to another
Posted: 28. Jan 2012, 13:04
by mpack
The procedure for doing this has changed a lot in the last year, so my advice to you is to stop digging up obsolete info, and follow Perry's advice. Especially stop digging on sites outside this one, as the info given IME is often plain wrong, in addition to being crazily obsolete (e.g. the advice to use "VBoxManage clonevdi" is about 3 years obsolete).
OTOH, one resource it would do no harm at all to dig into is the current official user manual. You will find nothing about "VBoxManage clonevdi" in there, except a note that it's retained for backwards compatibility.
Re: Can I copy a VM from one machine running VB to another
Posted: 30. Jan 2012, 13:05
by acomber
Hey thank you all for the help. The advice is helpful. It sounds like VB has changed quite a bit. So I will copy as advised:
Copy the *entire* guests folder to the other machine and dbl click the *.vbox file to register it.
Many thanks.