Hi,
I post this message because I've just moved a set of VMs from a drive to another and I found easily the help to move "normal" VM by recreating them but :
1) I moved the normal VM without recreating them manually (and it is far more convenient because I had several ones)
2) I did not found help to move "linked cloned" VMs :
- the "non-linked" disks worked properly
- but the "linked" disks were unable to find their "master disks"
The trick is to replace the old directory name by the new one in the xml files of the VMs (it's quite dirty but it works) :
- in VirtualBox interface, menu File\settings, change the default directory for VM files
- close all the VirtualBox windows and processes
- move your VMs directories
- open the file %userdir%\.VirtualBox\VirtualBox.xml in a text editor and remplace all the occurences of the old dir name by the new one (the separator is \)
- go to the new VMs default directory and open all the .vbox files of the VMs (in the sub directories) which has snapshots (the one which are used as models and possibly some others). If you have any doubt, look at all the .vbox files. open those .vbox files in a text editor and replace the old dir names by the new ones. WARNING : in those files, directory separator is a /.
- relaunch VirtualBox. Normally all your VMs should not worse than before your moved them.
Herve
(PS : At the end, I finally found the trick above hidden in some comments of other posts but as the subject was not specific enough, I find usefull to publish this post anyway)
How to move a VM from a drive to another
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: How to move a VM from a drive to another
There is also the official FAQ: Moving a VM. It's much easier and unless you mess with your folder structure, it works for snapshots as well.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: How to move a VM from a drive to another
I do not use differencing scheme of any hue, but I would have thought that the parent disk of a linked clone is referenced by UUID rather than path/filename. Otherwise it would be prone to broken links just like this.