[libvirt] problem: deleting a guest

I defined a new guest using the virt-manager GUI ... everything fine so far. I then decided that my definition was not correct (or I could be done with that guest) and could not find a way to delete the guest. OK, quit virt-manager, delete the configuration and disk-image files for the guest, restart libvirtd, and then start virt-manager again. The guest definition (according to virt-manager) was still there. I finnaly got rid of the definition by re-booting the system. THIS IS NOT SATISFACTORY! IMHO, I should be able to: 1. Define a new guest. 2. Delete the definition of a new guest but not the related configuration and disk-image files. 3. Delete the guest definition and the related configuration and disk image files but NOT and CD/DVD image files external to /var/lib/libvirt/images. 4. Import new guests which were created as clones, copied from another host, or convert created from something like VMware. Not it is certainly possible (or even likely) that I h\just do not understand how to do things yet. Or, this could be a bug. Or, this could be a lack of capabilities. Help appreciated in pointing me in the right direction. I will bugzilla where appropriate. Gene

On Tue, Jun 30, 2009 at 05:13:49AM -0400, Gene Czarcinski wrote:
I defined a new guest using the virt-manager GUI ... everything fine so far. I then decided that my definition was not correct (or I could be done with that guest) and could not find a way to delete the guest.
OK, quit virt-manager, delete the configuration and disk-image files for the guest, restart libvirtd, and then start virt-manager again. The guest definition (according to virt-manager) was still there. I finnaly got rid of the definition by re-booting the system. THIS IS NOT SATISFACTORY!
Of course it's a bug, but you don't really provide any way to reproduce it ! What kind of hypervisor/guest did you create. Was that locally or remotely. What version of libvirt and virt-manager di you use ? All this are basic informations allowing to process your feedback, without them there is no way we can make any progress explaining or working around that bug ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Tue, Jun 30, 2009 at 05:13:49AM -0400, Gene Czarcinski wrote:
I defined a new guest using the virt-manager GUI ... everything fine so far. I then decided that my definition was not correct (or I could be done with that guest) and could not find a way to delete the guest.
OK, quit virt-manager, delete the configuration and disk-image files for the guest, restart libvirtd, and then start virt-manager again. The guest definition (according to virt-manager) was still there. I finnaly got rid of the definition by re-booting the system. THIS IS NOT SATISFACTORY!
IMHO, I should be able to:
1. Define a new guest.
2. Delete the definition of a new guest but not the related configuration and disk-image files.
The "definition" is the configuration. If you delete an inactive guest, this is removing the configuration file on disk
3. Delete the guest definition and the related configuration and disk image files but NOT and CD/DVD image files external to /var/lib/libvirt/images.
The virt-manager UI already allows this. Select an inactive guest, and press the 'Delete' button. It'll offer to delete associated disks, and only selecting private disk images by default, but can be overriden to deleted shared disk and CDROMs if desired.
4. Import new guests which were created as clones, copied from another host, or convert created from something like VMware.
That's on the todo list. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Tuesday 30 June 2009 06:17:36 Daniel P. Berrange wrote:
2. Delete the definition of a new guest but not the related configuration and disk-image files.
The "definition" is the configuration. If you delete an inactive guest, this is removing the configuration file on disk
3. Delete the guest definition and the related configuration and disk image files but NOT and CD/DVD image files external to /var/lib/libvirt/images.
The virt-manager UI already allows this. Select an inactive guest, and press the 'Delete' button. It'll offer to delete associated disks, and only selecting private disk images by default, but can be overriden to deleted shared disk and CDROMs if desired.
I must have been blind! My only excuse is that I have not had my morning coffee! The delete function is there [why didn't I see it? ... I have no idea!]. The delete function does everything I want it to and even has the right set of options! Change this up to "pilot error". I am just thankful I did not bugzilla this! Gene
participants (3)
-
Daniel P. Berrange
-
Daniel Veillard
-
Gene Czarcinski