Hi,
I've come across a problem removing a vdi which I have detatched from a VM in VirtualBox Manager but which still shows as in use by that VM using "VBoxManage showhdinfo" in the command line. Here's what did:
0) All VMs shutdown and VirtualBox Manager GUI closed. VBox background processes still running.
1) I cloned the original vdi using mpack's CloneVDI (Ubuntu host + WIne) expanding the disk size and partition at the same time. File name of new vdi is different from the original, and I left "create new UUID" checked.
2) I started the GUI manager and in VM->Settings -> Storage I detached the original .vdi from SATA-0 and attached the cloned .vdi in its place
3) I started the VM - which ran fine. Only the cloned virtual disk showed up in the (windows 8.1) guest, as expected.
4) I shutdown the VM.
5) I then went into Virtual Disk Manager to remove the old .vdi. Virtual Disk Manager does not show the old vdi as attached to anything, BUT the remove option is not available. However, "VBoxManage showhdinfo" still shows the old .vdi attached to the VM.
6) Shutting down VBOX VMs and GUI, deleting (renaming) the old .vdi file and then restarting the VBox GUI results in the "one of the virtual disks in not accessible" error message. However, if I click "ignore", I can start the VM from the attached, cloned .vdi perfectly well.
Thanks,
Dave
Unable to remove virtual disk after detaching it from VM
-
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: Unable to remove virtual disk after detaching it from VM
That right there might be the source of your problem. You shouldn't have any VBox related process running, because the contents of the VMs configuration is kept in memory and might somehow confuse the whole process.dhkorman wrote:VBox background processes still running.
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.
-
dhkorman
- Posts: 14
- Joined: 12. Aug 2009, 10:19
- Primary OS: Ubuntu 8.04
- VBox Version: OSE Debian
- Guest OSses: Win XP, Win 7 RC1
Re: Unable to remove virtual disk after detaching it from VM
Ah - so, it sounds like after step 5, I need to shutdown Vbox completely (a host reboot should do that), and then when it starts up again I should/might be able to remove the old vdi cleanly?socratis wrote:That right there might be the source of your problem. You shouldn't have any VBox related process running, because the contents of the VMs configuration is kept in memory and might somehow confuse the whole process.dhkorman wrote:VBox background processes still running.
Thanks,
-
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: Unable to remove virtual disk after detaching it from VM
I would do it right after step 0.dhkorman wrote: like after step 5
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.