Vdi on a partition that is no longer accessible

This is for discussing general topics about how to use VirtualBox.

Vdi on a partition that is no longer accessible

Postby MikeP129 » 8. Nov 2017, 23:43

I'm running Virtualbox 5.2.0 in Xubuntu 17.04. One of my VMs is XP and it's vdi is on a partition which contains a (non virtual) installation of Windows (as a dual-boot with Xubuntu).

Recently I needed to restore that installation of Windows from a Norton Ghost file, but the restore failed and rendered the partition inaccessible. I had copied the vdi file to a different partition before the restore, thinking I'd be able to copy it back afterwards.

So I deleted the old vdi from within VB and tried to attach the copy instead. The problem is, VB still acknowledges the existence of the original vdi, and will not let me attach the copy because it has the same uuid.

Before I start from scratch and create a new XP VM, I just wondered whether anyone knows of a way to delete the connection to the old vdi (on the now inaccessible partition) and connect to the copy.

Thanks for any help/information..

Mike
MikeP129
 
Posts: 10
Joined: 21. Jul 2015, 22:13

Re: Vdi on a partition that is no longer accessible

Postby BillG » 9. Nov 2017, 00:22

You need to remove the old file from the Virtual Media Manager. Click the File tab in the VirtualBox Manager window.
Bill
BillG
Volunteer
 
Posts: 3609
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows other
VBox Version: PUEL
Guest OSses: Win 7 Win8.1 Win10 WinServer

Re: Vdi on a partition that is no longer accessible

Postby MikeP129 » 10. Nov 2017, 00:29

Thanks, BillG,

But there lies the problem. The 'remove' button is greyed out, presumably because the partition is not accessible.

It seems to me I either need another way to break the connection, or I may be able to fix the partition and copy the vdi back to it.

M
MikeP129
 
Posts: 10
Joined: 21. Jul 2015, 22:13

Re: Vdi on a partition that is no longer accessible

Postby BillG » 10. Nov 2017, 03:01

If the Remove option is greyed out it usually means that the file is still assigned to a vm. Have you tried to release it first? Have you selected the Properties option to see where the .vdi is stored?
Bill
BillG
Volunteer
 
Posts: 3609
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows other
VBox Version: PUEL
Guest OSses: Win 7 Win8.1 Win10 WinServer

Re: Vdi on a partition that is no longer accessible

Postby MikeP129 » 10. Nov 2017, 04:28

The 'release' button is greyed out too, and Properties (which is also greyed out) shows that the .vdi is/was stored on the partition which is no longer accessible..

I think I need some kind of nuclear option to disengage it, or I'll have to reformat the pn and start from scratch.
MikeP129
 
Posts: 10
Joined: 21. Jul 2015, 22:13


Return to Using VirtualBox

Who is online

Users browsing this forum: No registered users and 11 guests