[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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

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

[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

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

[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

[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

[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

[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

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

[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

[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

[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

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

[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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

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

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