Trying to build kvm guest with vmbuilder

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


Hi,

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 
further.

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>
     cli.main()
   File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", 
line 121, in main
     hypervisor.finalise(destdir)
   File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 
78, in finalise
     self.call_hooks('deploy', destdir)
   File "/usr/lib/python2.6/dist-packages/VMBuilder/distro.py", line 66, 
in call_hooks
     call_hooks(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 158, 
in call_hooks
     getattr(plugin, func, log_no_such_method)(*args, **kwargs)
   File 
"/usr/lib/python2.6/dist-packages/VMBuilder/plugins/libvirt/__init__.py", line 
83, in deploy
     self.conn.defineXML(vmxml)
   File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1119, in 
defineXML
     if ret is None:raise libvirtError('virDomainDefineXML() failed', 
conn=self)
libvirt.libvirtError: server closed connection
**

This still seems to work:

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

**

Another problem is that 
https://help.ubuntu.com/10.04/serverguide/C/jeos-and-vmbuilder.html 
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