Page 1 of 1

Copied running VM to new Computer => "cannot be closed b..."

Posted: 14. Jan 2014, 12:59
by OracleNickName
Hi.

I had a VM running on a laptop where the CPU-fan died on me so I can't shut the machine down or export it until the replacement arrives (maybe a month or so...)
I tried copying the files to a new machine but when I just double click the .vbox, I get the dreaded




Konnte die virtuelle Maschine in C:/Users/wieke/VirtualBox VMs/CT3Wieke_EBM/CT3Wieke_EBM.vbox nicht öffnen.

Medium 'C:\Users\wieke\VirtualBox VMs\CT3Wieke_EBM\CT3Wieke.vdi' cannot be closed because it is still attached to 1 virtual machines.

Fehlercode:VBOX_E_OBJECT_IN_USE (0x80BB000C)
Komponente:Medium
Interface:IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}
Callee:IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
Callee RC:VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)




Message.
Is there any workaround for that?
Maybe I could export all the relevant information from the .vbox into a new vm, change the uuid of the vdi and start it in a new vm.
It's probably OK to lose the running snapshot of the vm, but I need the file system like it was in my previous machine...

Re: Copied running VM to new Computer => "cannot be closed b

Posted: 14. Jan 2014, 15:58
by mpack
What files did you copy?

If there's a saved state associated with this VM then you might try discarding it. They aren't intended to be portable.

Re: Copied running VM to new Computer => "cannot be closed b

Posted: 16. Jan 2014, 12:13
by OracleNickName
I copied the entire subdirectory of "VirtualBox VMs" with the name of my vm from the old computer's hd to my new computer's "VirtualBox VMs" directory.

Luckily, I found an older backup of the vm and that one wasn't currently running.
I copied that one and replaced the harddisk file with the one from the running vm and now it's working.