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

netangel netangel+launchpad at gmail.com
Tue Jun 15 16:25:31 BST 2010


Same here. (Ubuntu 10.04 LTS / 2.6.32-22-server / x86_64)
I've tried with and without "-o", with and without extra --addpkg, and with and without --install-mirror and I removed the generated /etc/libvirt/qemu/machine.xml and I always have that error :

administrateur at master-server:~$ sudo vmbuilder kvm ubuntu --suite=lucid --flavour=virtual --arch=amd64 --hostname=test-vm --libvirt=qemu:///system --ip=192.168.0.123 --gw=192.168.0.1 --bridge=br0 --rootsize=40960 -m 512 --user=admin --name=Administrator --install-mirror=http://192.168.0.2:9999/ubuntu
2010-06-15 17:08:30,505 INFO    : Calling hook: preflight_check
2010-06-15 17:08:30,508 INFO    : Calling hook: set_defaults
2010-06-15 17:08:30,508 INFO    : Calling hook: bootstrap
2010-06-15 17:13:03,105 INFO    : Calling hook: configure_os
2010-06-15 17:13:17,118 INFO    : 
2010-06-15 17:13:17,118 INFO    : Current default time zone: 'Etc/UTC'
2010-06-15 17:13:17,120 INFO    : Local time is now:      Tue Jun 15 15:13:17 UTC 2010.
2010-06-15 17:13:17,120 INFO    : Universal Time is now:  Tue Jun 15 15:13:17 UTC 2010.
2010-06-15 17:13:17,121 INFO    : 
2010-06-15 17:13:35,868 INFO    : 
2010-06-15 17:13:35,869 INFO    : Current default time zone: 'Etc/UTC'
2010-06-15 17:13:35,871 INFO    : Local time is now:      Tue Jun 15 15:13:35 UTC 2010.
2010-06-15 17:13:35,871 INFO    : Universal Time is now:  Tue Jun 15 15:13:35 UTC 2010.
2010-06-15 17:13:35,871 INFO    : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2010-06-15 17:13:35,871 INFO    : 
2010-06-15 17:13:58,051 INFO    : Calling hook: post_install
2010-06-15 17:13:58,052 INFO    : Calling hook: preflight_check

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 116, in main
    hypervisor.install_os()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py", line 59, in install_os
    self.call_hooks('preflight_check')
  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 54, in preflight_check
    if hostname in self.all_domains() and not self.vm.overwrite:
AttributeError: 'Libvirt' object has no attribute 'vm'

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