Public bug reported:

Running vmbuilder with this command:

vmbuilder kvm ubuntu \
--suite lucid \
--flavour virtual \
--arch amd64 \
-o \
--libvirt qemu:///system \
--part vmbuilder.partition \
--user user \
--name user \
--pass default \
--ip 192.168.176.100 \
--mirror http://192.168.176.19:9999/ubuntu \
--dest /root/vm1

and this partition file:

root 8000
swap 2000
/home 1000
/var 8000
/var/log 2000

Results in this output and error:

2010-04-13 09:57:30,587 INFO    : Calling hook: preflight_check
2010-04-13 09:57:30,625 INFO    : Calling hook: set_defaults
2010-04-13 09:57:30,626 INFO    : Calling hook: bootstrap
2010-04-13 09:59:42,333 INFO    : Calling hook: configure_os
2010-04-13 10:01:19,098 INFO    : 
2010-04-13 10:01:19,098 INFO    : Current default time zone: 'Etc/UTC'
2010-04-13 10:01:19,101 INFO    : Local time is now:      Tue Apr 13 09:01:19 
UTC 2010.
2010-04-13 10:01:19,101 INFO    : Universal Time is now:  Tue Apr 13 09:01:19 
UTC 2010.
2010-04-13 10:01:19,101 INFO    : 
2010-04-13 10:03:01,863 INFO    : Calling hook: post_install
2010-04-13 10:03:01,892 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'

I'm running 2.6.32-20-server with libvirt 0.7.5-5ubuntu21, python-vm-
builder 0.12.3-0ubuntu1 (all latest lucid packages).

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to