.vdi I don't want anymore

Discussions related to using VirtualBox on Linux hosts.
Post Reply
causeitsme
Posts: 8
Joined: 5. Apr 2009, 16:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP SP3

.vdi I don't want anymore

Post by causeitsme »

I installed virtualbox and made a new virtual machine as XP and it's size as 5.19 gigs virtual and 4.12 actual (XP.vdi). I then installed XP there and all was well until I tried to install anti-virus and I got a error disk full message. I fiddled around and don't know what I did exactly as this was several months ago. But, the result was I wound up with another .vdi that's 14 gigs virtual size and 4.17 actual size (NewHardDisk1.vdi). This is the one that xp is on.

I would like to get rid of the XP.vdi one so I can recover the 4.12 gigs.

I have tried to delete the smaller .vdi (XP.vdi) but then xp won't boot up and I get an error that the NewHardDisk1.vdi needs XP.vdi.

Here are some screenshots:
Image
Image

How can I do this?
causeitsme
Posts: 8
Joined: 5. Apr 2009, 16:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP SP3

Re: .vdi I don't want anymore

Post by causeitsme »

Sorry I left this screenshot out, couldn't find an edit button for original post.

Screenshot showing second .vdi details
Image
causeitsme
Posts: 8
Joined: 5. Apr 2009, 16:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP SP3

Re: .vdi I don't want anymore

Post by causeitsme »

Yeah, I had read through most of what was in those links and through the manual, still, I don't get it.

My Snapshots:

+snapshot1 ##resides at /home/username/.VirtualBox/HardDisks/XP.vdi (##
+snapshot2 ##resides at /home/username/.VirtuaBox/HardDisks/NewHardDisk1.vdi
Current State

I can discard snapshot2 but I still have a XP.vdi and NewHardDisk1.vdi
When I try to discard snapshot1 I get a box like the following

Code: Select all

VIrtualBox - Error

Failed to discard the snapshot Snapshot 1 of the virtual machine XP.

Hard disk '/home/kimberly/.VirtualBox/HardDisks/XP.vdi' has more than one child hard disk (3).


Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
HardDisk2
Interface: 
IHardDisk2 {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}
Somehow those two files, XP.vdi and HardDisks1.vdi are tied together. So even if I use clone to clone either of those then the other is still there. I guess I need them merged, and I don't see anyway to do that.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: .vdi I don't want anymore

Post by vbox4me2 »

Keep it simple, clone your VM in to 1 single VDI, create a new VM and attach the clone, once that works simple delete the whole old stuff.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: .vdi I don't want anymore

Post by Sasquatch »

Since you have snapshots, the easiest clone method would be to use CloneZilla and clone it to a new VDI, so you can remove both xp.vdi and newdisk.vdi.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply