[Bug 562189] Re: AttributeError: 'Libvirt' object has no attribute 'vm'

Lennart Karssen 562189 at bugs.launchpad.net
Mon Jul 12 11:49:57 BST 2010


I ran into this same problem (Ubuntu 10.04). As the successful use of
the --hostname option already suggests, this has to do with the hostname
given to the VM. This hostname is also used in the xml files that are
placed in the /etc/libvirt/qemu directory as noted in comments
#11/#12/#15. If one wants to (re-)create a VM with a name that has been
used previously, it is not only necessary to remove the .xml file in
/etc/libvirt/qemu/ (comment #15), but also that libvirtd is told to
remove the VM definition (basically what comment #15 did by restarting
libvirtd).

The simplest way to tell libvirtd to forget about the old VM host is to
run virsh --connect qemu:///system undefine your_hostname (this also
removes the .xml file from /etc/libvirt/qemu).

So I guess the simplest fix for this bug is outputting an error message
if the hostname of the new VM already exists.

-- 
AttributeError: 'Libvirt' object has no attribute 'vm'
https://bugs.launchpad.net/bugs/562189
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.



More information about the Ubuntu-server-bugs mailing list