I noticed if I create a virtual guest machine (Windows / Linux / Other) and then delete the machine, I am unable to create a replacement guest machine by the same name because it never automatically removes the entrie in ~/.Virtualbox/HardDisks/server.vdi. I am unable to create a replacement guest with the identical name because it doesn't remove the .vdi file when I use the VirtualBox GUI to delete the guest machine.
Is there a fix for this w/o me having to annoyingly remove the .vdi file manually?
Deleting Virtual Machines
-
CarlosinFL
- Posts: 32
- Joined: 19. Aug 2009, 20:50
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows Server 2008, Windows Server 2003, RHEL, Debian, Arch
- Location: Orlando, FL
- Contact:
-
Y E T I
- Posts: 161
- Joined: 9. Aug 2010, 01:47
- Primary OS: Other
- VBox Version: OSE self-compiled
- Guest OSses: ?
- Location: H i m a l a y a s
- Contact:
Re: Deleting Virtual Machines
I believe that you need to open the media manager and remove it from there as well. It will ask if you want to delete it and if that is what you really want to do then say yes.
-
CarlosinFL
- Posts: 32
- Joined: 19. Aug 2009, 20:50
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows Server 2008, Windows Server 2003, RHEL, Debian, Arch
- Location: Orlando, FL
- Contact:
Re: Deleting Virtual Machines
Yes indeed. That was the fix. I guess I assumed VirtualBox would do that automatically when you delete a guest in case we want to name the replacement identically.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Deleting Virtual Machines
It would be very inconvenient if deleting a vm automatically deleted its .vdi file. Even when you delete the entry from virtual media manager it asks before it deletes the .vdi file. There are many valid reasons for deleting a vm but retaining the virtual disk.
Bill
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Deleting Virtual Machines
Deleting the VDI means potentially deleting years of someones work. This is not something that VirtualBox will do lightly, or in the background of some other task, or without asking lots of questions first.CarlosinFL wrote:I guess I assumed VirtualBox would do that automatically when you delete a guest