Changing snapshot VDI path / Adding HDD to manager
Posted: 26. Jan 2015, 18:11
Hello, I have 2 Problems originating from my attempt to move two VBox Machines to a different drive.
What I did
I have a VM which is build as a linked clone.
I moved the entire folder of this linked clone to its new location, changed the .virtualbox\virtualbox.xml to point to the new location, started the VM but got an Error. The error is that the VM cant find it's snapshot .vdi (which was moved, and is available at the new location). I couldn't find a config to set this path, the virtual machine manager reports the old path (with a yellow warning) but has no option to change the path. vboxmanage showhddinfo also diplays the old path. I event tried to update it using "vboxmanage modifyhd --property location=" but got an error, I tried adding a location="..." to the <StorageController .. <AttachedDevice .. <Image .." inside the .vbox config file of the VM but it was ignored/overwritten. I couldn't locate any VBox config file containing this VDI path information and I even scanned the windows registry!
Finally I decided to try the suggested move-methode by removing my VM entry from the Manager and trying to add it from it's new location, but it complains that it's missing its harddisk (displaying the UUID of the .vdi inside the snapshot folder, the one whos path I couldn't change in the first place)
My two questions are: how do I add this .VDI so that the import of VM 1 will succeed and how do I change the VDI path of my second VM, which I havent deleted from the manager yet.
What I did
I have a VM which is build as a linked clone.
I moved the entire folder of this linked clone to its new location, changed the .virtualbox\virtualbox.xml to point to the new location, started the VM but got an Error. The error is that the VM cant find it's snapshot .vdi (which was moved, and is available at the new location). I couldn't find a config to set this path, the virtual machine manager reports the old path (with a yellow warning) but has no option to change the path. vboxmanage showhddinfo also diplays the old path. I event tried to update it using "vboxmanage modifyhd --property location=" but got an error, I tried adding a location="..." to the <StorageController .. <AttachedDevice .. <Image .." inside the .vbox config file of the VM but it was ignored/overwritten. I couldn't locate any VBox config file containing this VDI path information and I even scanned the windows registry!
Finally I decided to try the suggested move-methode by removing my VM entry from the Manager and trying to add it from it's new location, but it complains that it's missing its harddisk (displaying the UUID of the .vdi inside the snapshot folder, the one whos path I couldn't change in the first place)
My two questions are: how do I add this .VDI so that the import of VM 1 will succeed and how do I change the VDI path of my second VM, which I havent deleted from the manager yet.