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

2011-06-09 Thread Richard Cottrill
For the issue I reported above, I believe this is a bug. There are two checks 
for pre-existing VMs, and they differ:
/usr/lib/python2.7/dist-packages/VMBuilder/plugins/libvirt/__init__.py
line 54:if hostname in self.all_domains() and not 
self.context.overwrite:
line 80:if hostname in self.all_domains() and not self.vm.overwrite:

Changing line 80 to match line 54 prevents this error.

Line 80 throws an error when run:
Traceback (most recent call last):
  File /usr/bin/vmbuilder, line 24, in module
cli.main()
  File /usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py, line 227, 
in main
hypervisor.finalise(destdir)
  File /usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py, line 78, in 
finalise
self.call_hooks('deploy', destdir)
  File /usr/lib/python2.7/dist-packages/VMBuilder/distro.py, line 67, in 
call_hooks
call_hooks(self, *args, **kwargs)
  File /usr/lib/python2.7/dist-packages/VMBuilder/util.py, line 158, in 
call_hooks
getattr(plugin, func, log_no_such_method)(*args, **kwargs)
  File 
/usr/lib/python2.7/dist-packages/VMBuilder/plugins/libvirt/__init__.py, line 
80, in deploy
if hostname in self.all_domains() and not self.vm.overwrite:
AttributeError: 'Libvirt' object has no attribute 'vm'

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/562189

Title:
  AttributeError: 'Libvirt' object has no attribute 'vm'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/562189/+subscriptions

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


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

2011-06-09 Thread Richard Cottrill
For the issue I reported above, I believe this is a bug. There are two checks 
for pre-existing VMs, and they differ:
/usr/lib/python2.7/dist-packages/VMBuilder/plugins/libvirt/__init__.py
line 54:if hostname in self.all_domains() and not 
self.context.overwrite:
line 80:if hostname in self.all_domains() and not self.vm.overwrite:

Changing line 80 to match line 54 prevents this error.

Line 80 throws an error when run:
Traceback (most recent call last):
  File /usr/bin/vmbuilder, line 24, in module
cli.main()
  File /usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py, line 227, 
in main
hypervisor.finalise(destdir)
  File /usr/lib/python2.7/dist-packages/VMBuilder/hypervisor.py, line 78, in 
finalise
self.call_hooks('deploy', destdir)
  File /usr/lib/python2.7/dist-packages/VMBuilder/distro.py, line 67, in 
call_hooks
call_hooks(self, *args, **kwargs)
  File /usr/lib/python2.7/dist-packages/VMBuilder/util.py, line 158, in 
call_hooks
getattr(plugin, func, log_no_such_method)(*args, **kwargs)
  File 
/usr/lib/python2.7/dist-packages/VMBuilder/plugins/libvirt/__init__.py, line 
80, in deploy
if hostname in self.all_domains() and not self.vm.overwrite:
AttributeError: 'Libvirt' object has no attribute 'vm'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/562189

Title:
  AttributeError: 'Libvirt' object has no attribute 'vm'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/562189/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2011-06-07 Thread Richard Cottrill
In current Natty, I get a slightly different version of this (output
below). The same error occurs, but at the cleaning up step. The
make_vm.sh blow contains the same vmbuilder command as above. Should
this be raised as a separate bug?

Thanks,

Richard

(example run)

user@host:~$ ./make_vm.sh
2011-06-08 13:11:13,044 INFO: Calling hook: preflight_check
2011-06-08 13:11:13,046 INFO: Calling hook: set_defaults
2011-06-08 13:11:13,046 INFO: Calling hook: bootstrap
2011-06-08 13:14:02,506 INFO: Calling hook: configure_os
2011-06-08 13:14:27,787 INFO: Updating certificates in /etc/ssl/certs... 
WARNING: Skipping duplicate certificate brasil.gov.br.pem
2011-06-08 13:14:27,787 INFO: 141 added, 0 removed; done.
2011-06-08 13:14:27,790 INFO: Running hooks in 
/etc/ca-certificates/update.ddone.
2011-06-08 13:14:28,450 INFO: Creating SSH2 RSA key; this may take some 
time ...
2011-06-08 13:14:28,655 INFO: Creating SSH2 DSA key; this may take some 
time ...
2011-06-08 13:14:28,660 INFO: Creating SSH2 ECDSA key; this may take some 
time ...
2011-06-08 13:14:28,743 INFO:
2011-06-08 13:14:28,743 INFO: Warning: Fake initctl called, doing nothing
2011-06-08 13:14:28,744 INFO:
2011-06-08 13:14:28,744 INFO: Warning: Fake initctl called, doing nothing
2011-06-08 13:14:29,658 INFO:
2011-06-08 13:14:29,659 INFO: Current default time zone: 'Etc/UTC'
2011-06-08 13:14:29,665 INFO: Local time is now:  Wed Jun  8 03:14:29 
UTC 2011.
2011-06-08 13:14:29,666 INFO: Universal Time is now:  Wed Jun  8 03:14:29 
UTC 2011.
2011-06-08 13:14:29,666 INFO:
2011-06-08 13:14:35,096 INFO: gpg: key 437D05B5: Ubuntu Archive Automatic 
Signing Key ftpmas...@ubuntu.com not changed
2011-06-08 13:14:35,099 INFO: gpg: key FBB75451: Ubuntu CD Image Automatic 
Signing Key cdim...@ubuntu.com not changed
2011-06-08 13:14:35,099 INFO: gpg: Total number processed: 2
2011-06-08 13:14:35,099 INFO: gpg:  unchanged: 2
2011-06-08 13:14:35,686 INFO:
2011-06-08 13:14:35,687 INFO: Current default time zone: 'Etc/UTC'
2011-06-08 13:14:35,694 INFO: Local time is now:  Wed Jun  8 03:14:35 
UTC 2011.
2011-06-08 13:14:35,694 INFO: Universal Time is now:  Wed Jun  8 03:14:35 
UTC 2011.
2011-06-08 13:14:35,694 INFO: Run 'dpkg-reconfigure tzdata' if you wish to 
change it.
2011-06-08 13:14:35,694 INFO:
2011-06-08 13:14:41,491 INFO: Calling hook: post_install
2011-06-08 13:14:41,493 INFO: Cleaning up
2011-06-08 13:14:41,496 INFO: Calling hook: preflight_check
2011-06-08 13:14:42,506 INFO: Calling hook: configure_networking
2011-06-08 13:14:42,528 INFO: Calling hook: configure_mounting
2011-06-08 13:14:42,533 INFO: Calling hook: mount_partitions
2011-06-08 13:14:42,533 INFO: Mounting target filesystems
2011-06-08 13:14:42,533 INFO: Creating disk image: /tmp/tmpVCe1ie of 
size: 12001MB
2011-06-08 13:14:42,542 INFO: Adding partition table to disk image: 
/tmp/tmpVCe1ie
2011-06-08 13:14:42,563 INFO: Adding type 4 partition to disk image: 
/tmp/tmpVCe1ie
2011-06-08 13:14:42,564 INFO: Partition at beginning of disk - reserving 
first cylinder
2011-06-08 13:14:42,585 INFO: Adding type 3 partition to disk image: 
/tmp/tmpVCe1ie
2011-06-08 13:14:42,596 INFO: [0] ../../libparted/filesys.c:148 
(ped_file_system_type_get): File system alias linux-swap(new) is deprecated
2011-06-08 13:14:42,606 INFO: Creating loop devices corresponding to the 
created partitions
2011-06-08 13:14:42,620 INFO: Creating file systems
2011-06-08 13:14:42,627 INFO: mke2fs 1.41.14 (22-Dec-2010)
2011-06-08 13:14:42,970 INFO: mkswap: /dev/mapper/loop0p2: warning: don't 
erase bootbits sectors
2011-06-08 13:14:42,970 INFO: on whole disk. Use -f to force.
2011-06-08 13:14:43,037 INFO: Creating disk image: /tmp/tmp4Jlk2G of 
size: 20001MB
2011-06-08 13:14:43,048 INFO: Adding partition table to disk image: 
/tmp/tmp4Jlk2G
2011-06-08 13:14:43,070 INFO: Adding type 4 partition to disk image: 
/tmp/tmp4Jlk2G
2011-06-08 13:14:43,071 INFO: Partition at beginning of disk - reserving 
first cylinder
2011-06-08 13:14:43,087 INFO: Creating loop devices corresponding to the 
created partitions
2011-06-08 13:14:43,095 INFO: Creating file systems
2011-06-08 13:14:43,102 INFO: mke2fs 1.41.14 (22-Dec-2010)
2011-06-08 13:14:43,105 INFO: warning: 128 blocks unused.
2011-06-08 13:14:43,106 INFO:
2011-06-08 13:14:45,290 INFO: Calling hook: install_bootloader
2011-06-08 13:14:50,161 INFO: Searching for GRUB installation directory ... 
found: /boot/grub
2011-06-08 13:14:50,229 INFO: Searching for default file ... Generating 
/boot/grub/default file and setting the default boot entry to 0
2011-06-08 13:14:50,230 INFO: Searching for GRUB installation directory ... 
found: /boot/grub
2011-06-08 13:14:50,234 INFO: Testing for an existing GRUB menu.lst file ...

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

2011-06-07 Thread Richard Cottrill
In current Natty, I get a slightly different version of this (output
below). The same error occurs, but at the cleaning up step. The
make_vm.sh blow contains the same vmbuilder command as above. Should
this be raised as a separate bug?

Thanks,

Richard

(example run)

user@host:~$ ./make_vm.sh
2011-06-08 13:11:13,044 INFO: Calling hook: preflight_check
2011-06-08 13:11:13,046 INFO: Calling hook: set_defaults
2011-06-08 13:11:13,046 INFO: Calling hook: bootstrap
2011-06-08 13:14:02,506 INFO: Calling hook: configure_os
2011-06-08 13:14:27,787 INFO: Updating certificates in /etc/ssl/certs... 
WARNING: Skipping duplicate certificate brasil.gov.br.pem
2011-06-08 13:14:27,787 INFO: 141 added, 0 removed; done.
2011-06-08 13:14:27,790 INFO: Running hooks in 
/etc/ca-certificates/update.ddone.
2011-06-08 13:14:28,450 INFO: Creating SSH2 RSA key; this may take some 
time ...
2011-06-08 13:14:28,655 INFO: Creating SSH2 DSA key; this may take some 
time ...
2011-06-08 13:14:28,660 INFO: Creating SSH2 ECDSA key; this may take some 
time ...
2011-06-08 13:14:28,743 INFO:
2011-06-08 13:14:28,743 INFO: Warning: Fake initctl called, doing nothing
2011-06-08 13:14:28,744 INFO:
2011-06-08 13:14:28,744 INFO: Warning: Fake initctl called, doing nothing
2011-06-08 13:14:29,658 INFO:
2011-06-08 13:14:29,659 INFO: Current default time zone: 'Etc/UTC'
2011-06-08 13:14:29,665 INFO: Local time is now:  Wed Jun  8 03:14:29 
UTC 2011.
2011-06-08 13:14:29,666 INFO: Universal Time is now:  Wed Jun  8 03:14:29 
UTC 2011.
2011-06-08 13:14:29,666 INFO:
2011-06-08 13:14:35,096 INFO: gpg: key 437D05B5: Ubuntu Archive Automatic 
Signing Key ftpmas...@ubuntu.com not changed
2011-06-08 13:14:35,099 INFO: gpg: key FBB75451: Ubuntu CD Image Automatic 
Signing Key cdim...@ubuntu.com not changed
2011-06-08 13:14:35,099 INFO: gpg: Total number processed: 2
2011-06-08 13:14:35,099 INFO: gpg:  unchanged: 2
2011-06-08 13:14:35,686 INFO:
2011-06-08 13:14:35,687 INFO: Current default time zone: 'Etc/UTC'
2011-06-08 13:14:35,694 INFO: Local time is now:  Wed Jun  8 03:14:35 
UTC 2011.
2011-06-08 13:14:35,694 INFO: Universal Time is now:  Wed Jun  8 03:14:35 
UTC 2011.
2011-06-08 13:14:35,694 INFO: Run 'dpkg-reconfigure tzdata' if you wish to 
change it.
2011-06-08 13:14:35,694 INFO:
2011-06-08 13:14:41,491 INFO: Calling hook: post_install
2011-06-08 13:14:41,493 INFO: Cleaning up
2011-06-08 13:14:41,496 INFO: Calling hook: preflight_check
2011-06-08 13:14:42,506 INFO: Calling hook: configure_networking
2011-06-08 13:14:42,528 INFO: Calling hook: configure_mounting
2011-06-08 13:14:42,533 INFO: Calling hook: mount_partitions
2011-06-08 13:14:42,533 INFO: Mounting target filesystems
2011-06-08 13:14:42,533 INFO: Creating disk image: /tmp/tmpVCe1ie of 
size: 12001MB
2011-06-08 13:14:42,542 INFO: Adding partition table to disk image: 
/tmp/tmpVCe1ie
2011-06-08 13:14:42,563 INFO: Adding type 4 partition to disk image: 
/tmp/tmpVCe1ie
2011-06-08 13:14:42,564 INFO: Partition at beginning of disk - reserving 
first cylinder
2011-06-08 13:14:42,585 INFO: Adding type 3 partition to disk image: 
/tmp/tmpVCe1ie
2011-06-08 13:14:42,596 INFO: [0] ../../libparted/filesys.c:148 
(ped_file_system_type_get): File system alias linux-swap(new) is deprecated
2011-06-08 13:14:42,606 INFO: Creating loop devices corresponding to the 
created partitions
2011-06-08 13:14:42,620 INFO: Creating file systems
2011-06-08 13:14:42,627 INFO: mke2fs 1.41.14 (22-Dec-2010)
2011-06-08 13:14:42,970 INFO: mkswap: /dev/mapper/loop0p2: warning: don't 
erase bootbits sectors
2011-06-08 13:14:42,970 INFO: on whole disk. Use -f to force.
2011-06-08 13:14:43,037 INFO: Creating disk image: /tmp/tmp4Jlk2G of 
size: 20001MB
2011-06-08 13:14:43,048 INFO: Adding partition table to disk image: 
/tmp/tmp4Jlk2G
2011-06-08 13:14:43,070 INFO: Adding type 4 partition to disk image: 
/tmp/tmp4Jlk2G
2011-06-08 13:14:43,071 INFO: Partition at beginning of disk - reserving 
first cylinder
2011-06-08 13:14:43,087 INFO: Creating loop devices corresponding to the 
created partitions
2011-06-08 13:14:43,095 INFO: Creating file systems
2011-06-08 13:14:43,102 INFO: mke2fs 1.41.14 (22-Dec-2010)
2011-06-08 13:14:43,105 INFO: warning: 128 blocks unused.
2011-06-08 13:14:43,106 INFO:
2011-06-08 13:14:45,290 INFO: Calling hook: install_bootloader
2011-06-08 13:14:50,161 INFO: Searching for GRUB installation directory ... 
found: /boot/grub
2011-06-08 13:14:50,229 INFO: Searching for default file ... Generating 
/boot/grub/default file and setting the default boot entry to 0
2011-06-08 13:14:50,230 INFO: Searching for GRUB installation directory ... 
found: /boot/grub
2011-06-08 13:14:50,234 INFO: Testing for an existing GRUB menu.lst file ...

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

2011-01-02 Thread waltc
I also got this error on 10.10 and, to David's comment, changing the
name of the --hostname bypassed the problem as you created a new vm. But
using virsh or virt-manager to delete the pre-existing image resolved
the problem. However, my question is this. Is the -o option intended to
remove any files, including a preexisting image or does it just remove
other transient files that may exist but is NOT intended to delete what
may be a functioning production VM?

For myself, I am totally fine with Lennart's suggestion of an error
message if the vm exists already. Would someone clarify what the purpose
of the -o is in that case?

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

Title:
  AttributeError: 'Libvirt' object has no attribute 'vm'

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


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

2011-01-02 Thread waltc
I also got this error on 10.10 and, to David's comment, changing the
name of the --hostname bypassed the problem as you created a new vm. But
using virsh or virt-manager to delete the pre-existing image resolved
the problem. However, my question is this. Is the -o option intended to
remove any files, including a preexisting image or does it just remove
other transient files that may exist but is NOT intended to delete what
may be a functioning production VM?

For myself, I am totally fine with Lennart's suggestion of an error
message if the vm exists already. Would someone clarify what the purpose
of the -o is in that case?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/562189

Title:
  AttributeError: 'Libvirt' object has no attribute 'vm'

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-12-05 Thread David Lublink
I also got this error message. In the ubuntu-vm-builder, I had --
hostname 'test-vm' , I changed it to --hostname 'testvm'  and the
problem disappears. So I believe the issue has to do with the minus sign
in the hostname parameter.

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

Title:
  AttributeError: 'Libvirt' object has no attribute 'vm'

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


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

2010-12-05 Thread David Lublink
I also got this error message. In the ubuntu-vm-builder, I had --
hostname 'test-vm' , I changed it to --hostname 'testvm'  and the
problem disappears. So I believe the issue has to do with the minus sign
in the hostname parameter.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/562189

Title:
  AttributeError: 'Libvirt' object has no attribute 'vm'

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-09-03 Thread Jerome Potts
Yes, when recreating a VM, first do a virsh undefine vm name, then
run your vmbuilder command.

It's too bad that you hit that error 28 mn in the game : a verification
could be added to vmbuilder's preflight_check, or, vmbuilder could
perform the undefine itself.

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


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

2010-09-03 Thread Jerome Potts
Yes, when recreating a VM, first do a virsh undefine vm name, then
run your vmbuilder command.

It's too bad that you hit that error 28 mn in the game : a verification
could be added to vmbuilder's preflight_check, or, vmbuilder could
perform the undefine itself.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-07-12 Thread Lennart Karssen
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.

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


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

2010-07-12 Thread Lennart Karssen
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-06-17 Thread Steven Wagner
Fix on comment #7 worked for me. Just needed --hostname

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-06-15 Thread netangel
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 :

administrat...@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:/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.

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


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

2010-06-15 Thread netangel
Well, I've restarted the server, and run
administrat...@master-server:~$ sudo vmbuilder kvm ubuntu --suite=lucid 
--flavour=virtual --arch=amd64 --hostname=test-vm -o --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:/ubuntu  --addpkg=unattended-upgrades 
--addpkg=acpid --addpkg=apt-proxy

and all goes well. I think it was due to the fact I removed the
/etc/libvirt/qemu/test-vm.xml directly, without calling sudo virsh
undefine vs-test ...

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


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

2010-06-15 Thread Launchpad Bug Tracker
** Branch linked: lp:vmbuilder

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


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

2010-06-15 Thread netangel
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 :

administrat...@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:/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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-06-15 Thread netangel
Well, I've restarted the server, and run
administrat...@master-server:~$ sudo vmbuilder kvm ubuntu --suite=lucid 
--flavour=virtual --arch=amd64 --hostname=test-vm -o --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:/ubuntu  --addpkg=unattended-upgrades 
--addpkg=acpid --addpkg=apt-proxy

and all goes well. I think it was due to the fact I removed the
/etc/libvirt/qemu/test-vm.xml directly, without calling sudo virsh
undefine vs-test ...

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-06-15 Thread Launchpad Bug Tracker
** Branch linked: lp:vmbuilder

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-06-09 Thread Herbert Roitblat
I got this same error.  I did have a previously working vm. I did set
hostname.

I am working on Ubuntu 10.04 64-bit.

I moved ubuntu-kvm.

mv ubuntu-kvm old-ubuntu-kvm

I also moved  othost.xml

sudo mv /etc/libvirt/qemu/othost.xml oldothost.xml

 After killing libvirtd it worked.


$ sudo vmbuilder kvm ubuntu -c otserver.cfg

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


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

2010-06-09 Thread Herbert Roitblat
I got this same error.  I did have a previously working vm. I did set
hostname.

I am working on Ubuntu 10.04 64-bit.

I moved ubuntu-kvm.

mv ubuntu-kvm old-ubuntu-kvm

I also moved  othost.xml

sudo mv /etc/libvirt/qemu/othost.xml oldothost.xml

 After killing libvirtd it worked.


$ sudo vmbuilder kvm ubuntu -c otserver.cfg

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-05-05 Thread Simon Huerlimann
IMHO the run.sh script should not be generated at all if the VM is
registered with libvirt. As in this case 'virsh start VM' is the way to
go.

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


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

2010-05-05 Thread Simon Huerlimann
It looks like each supported hypervisor uses it's own policy regarding startup 
script:
* Xen = none
* VMWare = none
* VirtualBox = $DESTDIR/deploy_$hostname.sh
* KVM = $DESTDIR/run.sh

While the KVM one will get ownership set to the calling user, the
VirtualBox one will not.

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


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

2010-05-05 Thread Simon Huerlimann
IMHO the run.sh script should not be generated at all if the VM is
registered with libvirt. As in this case 'virsh start VM' is the way to
go.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-05-05 Thread Simon Huerlimann
It looks like each supported hypervisor uses it's own policy regarding startup 
script:
* Xen = none
* VMWare = none
* VirtualBox = $DESTDIR/deploy_$hostname.sh
* KVM = $DESTDIR/run.sh

While the KVM one will get ownership set to the calling user, the
VirtualBox one will not.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-30 Thread Simon Huerlimann
AFAIK the check is not if an image directory exists, but if there's some
virtual machine with this name is defined in libvirt. --dest doesn't
help for this reason...

@Marcus Bointon: please check if there is some .xml file in
/etc/libvirt/qemu/ that looks like having no, or some kind of default
(ubuntu-kvm or similar) name. This would support my theory...

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


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

2010-04-30 Thread Simon Huerlimann
** Changed in: vm-builder (Ubuntu)
   Status: New = Confirmed

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


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

2010-04-30 Thread Marcus Bointon
There are two files in there. One called ubuntu.xml that refers to an image 
file created in a folder called ubuntu-kvm (i.e. a default, as you suspected), 
the other called vm1.xml, which is what I specified as my hostname.
I'm also curious that that file is in the libvirt folder instead of bundled 
with the VM image since it contains a hard-coded path to the drive image which 
I can see breaking very easily. The run.sh file generated by vmbuilder also 
contains runtime config info for the VM, but only uses a relative path, so why 
is it duplicated like this? Would it not be better to name run.sh hostname.sh 
and put it in the libvirt folder?

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


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

2010-04-30 Thread Simon Huerlimann
AFAIK the check is not if an image directory exists, but if there's some
virtual machine with this name is defined in libvirt. --dest doesn't
help for this reason...

@Marcus Bointon: please check if there is some .xml file in
/etc/libvirt/qemu/ that looks like having no, or some kind of default
(ubuntu-kvm or similar) name. This would support my theory...

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-30 Thread Simon Huerlimann
** Changed in: vm-builder (Ubuntu)
   Status: New = Confirmed

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-30 Thread Marcus Bointon
There are two files in there. One called ubuntu.xml that refers to an image 
file created in a folder called ubuntu-kvm (i.e. a default, as you suspected), 
the other called vm1.xml, which is what I specified as my hostname.
I'm also curious that that file is in the libvirt folder instead of bundled 
with the VM image since it contains a hard-coded path to the drive image which 
I can see breaking very easily. The run.sh file generated by vmbuilder also 
contains runtime config info for the VM, but only uses a relative path, so why 
is it duplicated like this? Would it not be better to name run.sh hostname.sh 
and put it in the libvirt folder?

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-22 Thread Marcus Bointon
I've now tried this without the -o option (having spotted the
self.vm.overwrite is the root of the problem), but that didn't make any
difference. Any chance of getting some attention to this as it's a
complete showstopper for me. It means my entire UEC / JeOS
virtualization plans are on hold. Unless there's some other minimal VM
builder that I don't know about?

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


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

2010-04-22 Thread BlueT - Matthew Lien - 練喆明
I got the same problem.

matt...@0xb1ue7:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu lucid (development branch)
Release:10.04
Codename:   lucid
matt...@0xb1ue7:~$ uname -a
Linux 0xB1uE7 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 
x86_64 GNU/Linux

ii  kvm   
1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu6  dummy transitional pacakge from 
kvm to qemu-kvm
ii  libvirt-bin   0.7.5-5ubuntu25   
  the programs for the libvirt library
ii  libvirt0  0.7.5-5ubuntu25   
  library for interfacing with different virtualization sy
ii  python-libvirt0.7.5-5ubuntu25   
  libvirt Python bindings
ii  python-vm-builder 0.12.3-0ubuntu1   
  VM builder
ii  qemu-kvm  0.12.3+noroms-0ubuntu6
  Full virtualization on i386 and amd64 hardware
ii  qemu-kvm-extras   0.12.3+noroms-0ubuntu6
  fast processor emulator binaries for non-x86 architectur
ii  ubuntu-virt-mgmt  1.2   
  Common packages useful for managing virtual machines gra
ii  ubuntu-virt-server1.2   
  Common packages necessary for hosting virtual machines
ii  ubuntu-vm-builder 0.12.3-0ubuntu1   
  Ubuntu VM builder
ii  virt-manager  0.8.2-2ubuntu8
  desktop application for managing virtual machines
ii  virt-viewer   0.0.3-6ubuntu7.xul191.1   
  Displaying the graphical console of a virtual machine

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


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

2010-04-22 Thread Simon Huerlimann
Got the same on a Lucid. In my case the problem was that I already had a
virtual host with the same name.

Marcus, it looks like you've called vmbuilder with no --hostname. Don't
know what is taken as hostname in this case, but probably the same on
each invocation.

So I see this as actually being two bugs:
* vmbuilder not tellung you that you need --hostname
* vmbuilder having a broken handling for checking the overwrite option.

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


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

2010-04-22 Thread Marcus Bointon
Yay! That did it! I added a --hostname and it just worked, so thanks very much.
I don't think it's to do with whether a VM already exists as I have none in my 
folder and have been wiping /tmp files between each build (because it doesn't 
clean up after dying). In my case it should have nothing to clash with as I'd 
never had a successful build before! It's curious that the lack of a hostname 
should provoke an overwrite check when the --dest param deals with where the VM 
will be put.
I'll report it as a documentation bug as well since the official docs on using 
vmbuilder don't even mention the hostname property: 
http://doc.ubuntu.com/ubuntu/serverguide/C/jeos-and-vmbuilder.html

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


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

2010-04-22 Thread Nick Barcet
Feel free to fix it in the wiki
https://help.ubuntu.com/community/JeOSVMBuilder which was used as the
source for the doc if you have time.

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


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

2010-04-22 Thread Marcus Bointon
I'm wary of making changes there as that page is for the older shell
script version of vmbuilder and I don't know if the same things apply -
I don't want to break things for Intrepid users just because Lucid is
different.

I also noticed that hostname is missing from the man page too.

I'm also not clear on whether hostname really is mandatory or just a
means of avoiding this bug, in which case this bug report is probably
good enough to be found by those that need it. I'm guessing it's just a
workaround for this bug as otherwise the docs would have mentioned it.

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


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

2010-04-22 Thread Simon Huerlimann
Got the same on a Lucid. In my case the problem was that I already had a
virtual host with the same name.

Marcus, it looks like you've called vmbuilder with no --hostname. Don't
know what is taken as hostname in this case, but probably the same on
each invocation.

So I see this as actually being two bugs:
* vmbuilder not tellung you that you need --hostname
* vmbuilder having a broken handling for checking the overwrite option.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-22 Thread Marcus Bointon
Yay! That did it! I added a --hostname and it just worked, so thanks very much.
I don't think it's to do with whether a VM already exists as I have none in my 
folder and have been wiping /tmp files between each build (because it doesn't 
clean up after dying). In my case it should have nothing to clash with as I'd 
never had a successful build before! It's curious that the lack of a hostname 
should provoke an overwrite check when the --dest param deals with where the VM 
will be put.
I'll report it as a documentation bug as well since the official docs on using 
vmbuilder don't even mention the hostname property: 
http://doc.ubuntu.com/ubuntu/serverguide/C/jeos-and-vmbuilder.html

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-22 Thread Nick Barcet
Feel free to fix it in the wiki
https://help.ubuntu.com/community/JeOSVMBuilder which was used as the
source for the doc if you have time.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-22 Thread Marcus Bointon
I'm wary of making changes there as that page is for the older shell
script version of vmbuilder and I don't know if the same things apply -
I don't want to break things for Intrepid users just because Lucid is
different.

I also noticed that hostname is missing from the man page too.

I'm also not clear on whether hostname really is mandatory or just a
means of avoiding this bug, in which case this bug report is probably
good enough to be found by those that need it. I'm guessing it's just a
workaround for this bug as otherwise the docs would have mentioned it.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-22 Thread Marcus Bointon
I've now tried this without the -o option (having spotted the
self.vm.overwrite is the root of the problem), but that didn't make any
difference. Any chance of getting some attention to this as it's a
complete showstopper for me. It means my entire UEC / JeOS
virtualization plans are on hold. Unless there's some other minimal VM
builder that I don't know about?

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-22 Thread BlueT - Matthew Lien - 練喆明
I got the same problem.

matt...@0xb1ue7:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu lucid (development branch)
Release:10.04
Codename:   lucid
matt...@0xb1ue7:~$ uname -a
Linux 0xB1uE7 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 
x86_64 GNU/Linux

ii  kvm   
1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu6  dummy transitional pacakge from 
kvm to qemu-kvm
ii  libvirt-bin   0.7.5-5ubuntu25   
  the programs for the libvirt library
ii  libvirt0  0.7.5-5ubuntu25   
  library for interfacing with different virtualization sy
ii  python-libvirt0.7.5-5ubuntu25   
  libvirt Python bindings
ii  python-vm-builder 0.12.3-0ubuntu1   
  VM builder
ii  qemu-kvm  0.12.3+noroms-0ubuntu6
  Full virtualization on i386 and amd64 hardware
ii  qemu-kvm-extras   0.12.3+noroms-0ubuntu6
  fast processor emulator binaries for non-x86 architectur
ii  ubuntu-virt-mgmt  1.2   
  Common packages useful for managing virtual machines gra
ii  ubuntu-virt-server1.2   
  Common packages necessary for hosting virtual machines
ii  ubuntu-vm-builder 0.12.3-0ubuntu1   
  Ubuntu VM builder
ii  virt-manager  0.8.2-2ubuntu8
  desktop application for managing virtual machines
ii  virt-viewer   0.0.3-6ubuntu7.xul191.1   
  Displaying the graphical console of a virtual machine

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-21 Thread Marcus Bointon
Still there with libvirt 0.7.5-5ubuntu25

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


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

2010-04-21 Thread Marcus Bointon
Still there with libvirt 0.7.5-5ubuntu25

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-15 Thread Marcus Bointon
Unfortunately it was just hiding, and it's back again with libvirt
0.7.5-5ubuntu23. Same config, same error.

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


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

2010-04-15 Thread Marcus Bointon
Still there with libvirt 0.7.5-5ubuntu24.

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


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

2010-04-15 Thread Marcus Bointon
Unfortunately it was just hiding, and it's back again with libvirt
0.7.5-5ubuntu23. Same config, same error.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-15 Thread Marcus Bointon
Still there with libvirt 0.7.5-5ubuntu24.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-14 Thread Thierry Carrez
** Changed in: vm-builder (Ubuntu)
   Importance: Undecided = Medium

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


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

2010-04-14 Thread Thierry Carrez
** Changed in: vm-builder (Ubuntu)
   Importance: Undecided = Medium

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


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

2010-04-13 Thread Marcus Bointon
I noticed that libvirt got updated to 0.7.5-5ubuntu22 today, and it's
possible that this bug has been fixed by it, however, I'm not sure as
I've got another bug instead that may just be obscuring it...

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


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

2010-04-13 Thread Marcus Bointon
I noticed that libvirt got updated to 0.7.5-5ubuntu22 today, and it's
possible that this bug has been fixed by it, however, I'm not sure as
I've got another bug instead that may just be obscuring it...

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs