Trying to build kvm guest with vmbuilder

Joni Lahtinen joni.lahtinen at
Mon Oct 11 11:29:30 UTC 2010


My host is 10.04 server. I have  been trying to build a kvm guest with 
vmbuilder without success. I was able to pass the first error i faced by 
enabling the virtualization from bios but after that I haven't get any 

My biggest problem is the error with vmbuilder when '--libvirt 
qemu:///system' is used:

$vmbuilder ... --libvirt qemu:///system
2010-10-11 10:37:43,669 INFO    : Calling hook: fix_ownership
2010-10-11 10:37:43,671 INFO    : Calling hook: deploy
libvir: QEMU error : server closed connection
Traceback (most recent call last):
   File "/usr/bin/vmbuilder", line 24, in <module>
   File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/", 
line 121, in main
   File "/usr/lib/python2.6/dist-packages/VMBuilder/", line 
78, in finalise
     self.call_hooks('deploy', destdir)
   File "/usr/lib/python2.6/dist-packages/VMBuilder/", line 66, 
in call_hooks
     call_hooks(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/VMBuilder/", line 158, 
in call_hooks
     getattr(plugin, func, log_no_such_method)(*args, **kwargs)
"/usr/lib/python2.6/dist-packages/VMBuilder/plugins/libvirt/", line 
83, in deploy
   File "/usr/lib/python2.6/dist-packages/", line 1119, in 
     if ret is None:raise libvirtError('virDomainDefineXML() failed', 
libvirt.libvirtError: server closed connection

This still seems to work:

virsh -c qemu:///system list
  Id Name                 State


Another problem is that 
seems to be outdated (especially the file libvirtxml.tmpl that seems to 
have some template language in it at the moment that is not documented).

More information about the ubuntu-users mailing list