[Bug 576376] [NEW] Allow specifying more than one nameserver

2010-05-06 Thread Simon Huerlimann
Public bug reported: Allow more than one --dns arguments, configuring more than one nameserver is respected best practive. ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New -- Allow specifying more than one nameserver https://bugs.launchpad.net/bugs/576376 You

[Bug 576401] [NEW] Ownership of device node should not be changed when using --raw

2010-05-06 Thread Simon Huerlimann
Public bug reported: If vmbuilder is called with a --raw partition, it will change the ownership of the device to the calling user. While this might be proper for images, it doesn't make sense for device nodes. Especially as they will be reset after a reboot. This is with Lucid version of

[Bug 403149] Re: vmbuilder should allow for no swapfile

2010-05-05 Thread Simon Huerlimann
** Branch linked: lp:~huerlisi/vmbuilder/dev -- vmbuilder should allow for no swapfile https://bugs.launchpad.net/bugs/403149 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-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 531599] Re: device mappings for partitions not removed after build using --raw, leading to filesystem corruption

2010-05-02 Thread Simon Huerlimann
After some investigation it looks like vmbuilder is nicely registering a callback hook to unmap the devices it sets up using kpartx. The problem is udev rules adding device mappings using kpartx as soon as the raw device gets partitioned. AFAIK the relevant udev rule is

[Bug 531599] Re: tricky leftovers when using a too small --raw device

2010-05-01 Thread Simon Huerlimann
Doing this on a Lucid with vmbuilder 0.12.3.r435. After some testing I found out that this is not restricted to failed/interrupted vmbuilder runs. Additionally leaving behind those device mappings seem to interfere with the filesystem in the VM. If you use a LVM logical volume as --raw device, a

[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 540446] Re: vmbuilder doesn't clean up temporary files when interrupted

2010-04-30 Thread Simon Huerlimann
Hi Soren Nice to hear that! -- vmbuilder doesn't clean up temporary files when interrupted https://bugs.launchpad.net/bugs/540446 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-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 569530] Re: vmbuilder create ubuntu-kvm directory even when using --raw

2010-04-29 Thread Simon Huerlimann
Yes, it is reproducible. Preconditions: * an LVM group named leo02 * PWD were you can write... The following steps should do it, assuming a LVM group leo02: sudo lvcreate /dev/leo02 --name kvm-test01 --size 5G sudo vmbuilder kvm ubuntu --addpkg=openssh-server --addpkg=unattended-upgrades,

[Bug 531599] Re: tricky leftovers when using a too small --raw device

2010-04-24 Thread Simon Huerlimann
** Changed in: vm-builder (Ubuntu) Status: Incomplete = Confirmed -- tricky leftovers when using a too small --raw device https://bugs.launchpad.net/bugs/531599 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vm-builder in ubuntu.

[Bug 503467] Re: vmbuilder default account not well-documented

2010-04-24 Thread Simon Huerlimann
Another possibility would be to use a random password (maybe using pwgen) and output it at the end of the installation. -- vmbuilder default account not well-documented https://bugs.launchpad.net/bugs/503467 You received this bug notification because you are a member of Ubuntu Server Team, which

[Bug 569530] Re: vmbuilder create ubuntu-kvm directory even when using --raw

2010-04-24 Thread Simon Huerlimann
** Attachment added: Dependencies.txt http://launchpadlibrarian.net/45172237/Dependencies.txt ** Attachment added: RelatedPackageVersions.txt http://launchpadlibrarian.net/45172238/RelatedPackageVersions.txt ** Description changed: When calling vmbuilder with --raw, it still creates a

[Bug 540446] Re: vmbuilder doesn't clean up temporary files when interrupted

2010-04-24 Thread Simon Huerlimann
Confirmed with 0.12.3-0ubuntu1. -- vmbuilder doesn't clean up temporary files when interrupted https://bugs.launchpad.net/bugs/540446 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

[Bug 540446] Re: python-vm-builder_0.12.2-0ubuntu3 doesn't clean up temporary files when interrupted

2010-04-24 Thread Simon Huerlimann
These files/directories in /tmp can be quite big, and managed to fill up the filesystem on our server twice (one time me, one time my brother;-) ** Summary changed: - python-vm-builder_0.12.2-0ubuntu3 doesn't clean up temporary files when interrupted + vmbuilder doesn't clean up temporary files

[Bug 569530] Re: vmbuilder create ubuntu-kvm directory even when using --raw

2010-04-24 Thread Simon Huerlimann
This is especially tricky as it won't let you create two raw vms (without specifying --destdir) in a row from the same directory. This is the output for the second run: 2010-04-25 06:21:52,984 ERROR : ubuntu-kvm already exists Traceback (most recent call last): File /usr/bin/vmbuilder, line

[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 403149] Re: vmbuilder should allow for no swapfile

2010-04-22 Thread Simon Huerlimann
In current Lucid (vmbuilder 0.12.3.r435) this still throws an error, though a different one: 2010-04-22 20:38:55,242 INFO: Calling hook: post_install 2010-04-22 20:38:55,243 ERROR : Partitions are overlapping Traceback (most recent call last): File /usr/bin/vmbuilder, line 24, in module

[Bug 546536] Re: --help and --version should be available without specifying hypervisor and suite

2010-04-22 Thread Simon Huerlimann
Same goes for --version. Here it makes even less sense to require hypervisor and suite as it probably never depends on that information. ** Summary changed: - no help + --help and --version should be available without specifying hypervisor and suite -- --help and --version should be available

[Bug 531599] Re: tricky leftovers when using a too small --raw device

2010-04-22 Thread Simon Huerlimann
I tried with the current version in Lucid (0.12.3.r435), error still present with similar output. -- tricky leftovers when using a too small --raw device https://bugs.launchpad.net/bugs/531599 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed

[Bug 530344] Re: dependency devscripts is too heavy

2010-04-20 Thread Simon Huerlimann
*** This bug is a duplicate of bug 560686 *** https://bugs.launchpad.net/bugs/560686 ** This bug has been marked a duplicate of bug 560686 Shouldn't use rmadison -- dependency devscripts is too heavy https://bugs.launchpad.net/bugs/530344 You received this bug notification because you

[Bug 493020] Re: vmbuilder: Deletes most of /dev on interrupt

2010-04-20 Thread Simon Huerlimann
Looks like vm-builder won't necessarily clean /dev on lucid. At least my last ctrl-c did no such thing on an up-to-date lucid. -- vmbuilder: Deletes most of /dev on interrupt https://bugs.launchpad.net/bugs/493020 You received this bug notification because you are a member of Ubuntu Server Team,

[Bug 28380] Re: Autofs fails to update /net with new shares from server

2010-04-13 Thread Simon Huerlimann
Looks like my confirmation has triggered some attention;-) As far as I can tell autofs5 in Lucid seems to work when restarting the autofs dameon. Just reloading is not enough. But I guess that's a minor issue. @Jesper: As Lucid will be the next LTS, it kind of supersedes all other distributions.

[Bug 28380] Re: Autofs fails to update /net with new shares from server

2010-04-12 Thread Simon Huerlimann
** Changed in: autofs (Ubuntu) Status: Won't Fix = Confirmed -- Autofs fails to update /net with new shares from server https://bugs.launchpad.net/bugs/28380 You received this bug notification because you are a member of Ubuntu Server Team, which is a direct subscriber. --

[Bug 534773] Re: postfix configuration failures should not let 'stop' fail

2010-03-09 Thread Simon Huerlimann
It works if /etc/mailname is non-empty, I know that. The problem is: you can't simply uninstall postfix if you have a configuration problem like that. The pre-removal package script fails because the daemon can't be stopped and the init script gives an error. This is unfortunate as non-technical

[Bug 534773] [NEW] postfix configuration failures should not let 'stop' fail

2010-03-08 Thread Simon Huerlimann
Public bug reported: Binary package hint: postfix Actual problem: For some reason my /etc/mailname is empty. For another reason I'd like to install nullmailer instead of postfix. A simple 'sudo apt-get install nullmailer' should do the trick... But: eading package lists... Done Building

[Bug 531346] [NEW] vmbuilder option --raw is missing in manpage

2010-03-03 Thread Simon Huerlimann
Public bug reported: While vmbuilder --raw is documented when running vmbuilder --help, it's missing from the manpages. This made me filing bug 531083;-) ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New -- vmbuilder option --raw is missing in manpage

[Bug 531599] [NEW] tricky leftovers when using a too small --raw device

2010-03-03 Thread Simon Huerlimann
Public bug reported: I've tried to install a vm using an LVM logical volume with --raw. The problem was that I used a too small logical volume. vmbuilder told me: 2010-03-03 21:33:59,923 INFO: Adding partition table to disk image: /dev/mapper/leo01-test--disk 2010-03-03 21:34:00,007 INFO

[Bug 531646] [NEW] vm build using --raw and LVM logical volume doesn't boot because of Grub install error

2010-03-03 Thread Simon Huerlimann
Public bug reported: This is with Karmic and vm-builder 0.11.3-0ubuntu1 I've set up a kvm host using an LVM logical volume as --raw device. The vm building didn't show any problems. But the vm doesn't boot at all. Using VNC I've found out that it halts after 'Booting from Hard Disk...'. Looks

[Bug 530400] Re: starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile'

2010-03-02 Thread Simon Huerlimann
Well, I think I've tracked it down: The VM can't be started and virsh shows the above mentioned error when the qcow2 disk source file is located in /etc (at least when in /etc/libvirt/qemu or /etc/network). So the following snipplet in the XML file triggers the error: disk type='file'

[Bug 373387] Re: runs chpasswd without -m prior to jaunty

2010-03-02 Thread Simon Huerlimann
Any news on this one? -- runs chpasswd without -m prior to jaunty https://bugs.launchpad.net/bugs/373387 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 531083] [NEW] support installing to LVM logical volume

2010-03-02 Thread Simon Huerlimann
Public bug reported: Please support a simple way to install into a LVM logical volume. ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New -- support installing to LVM logical volume https://bugs.launchpad.net/bugs/531083 You received this bug notification because

[Bug 530323] [NEW] resolvconf update script should not produce error when main.cfg missing

2010-03-01 Thread Simon Huerlimann
Public bug reported: Binary package hint: postfix I'm using a 9.10 server installation. The following happens as postfix got installed as an indirect dependency of ubuntu-vm-builder. resolvconf has been installed manually. When running ifup/ifdown the following errors are shown:

[Bug 530330] [NEW] Broken link /etc/kvm gets created on install

2010-03-01 Thread Simon Huerlimann
Public bug reported: Binary package hint: qemu-kvm Package qemu-kvm contains a symlink /etc/kvm pointing to /etc/qemu-kvm. But no package depended on by qemu-kvm provides this directory. I don't know what this directory is supposed to contain. But the only real KVM specific configuration in

[Bug 530344] [NEW] dependency devscripts is too heavy

2010-03-01 Thread Simon Huerlimann
Public bug reported: python-vm-builder has a dependency on devscripts. This is too broad as it installs lots of packages not really needed. As an example it indirectly installs postfix (devscripts - mailx - postfix) which is not needed at all to setup a virtual host. Please consider depending

[Bug 530344] Re: dependency devscripts is too heavy

2010-03-01 Thread Simon Huerlimann
Okay, thanx for the quick response! A quick check showed that rmadison is called in the python script VMBuilder/plugins/ubuntu/distro.py, where it is used to get the version of the xen kernel. (Hehe, just drop the xen support, karmic not being a nice Xen citizen anyway;-) I've dug into the

[Bug 530400] [NEW] starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile'

2010-03-01 Thread Simon Huerlimann
Public bug reported: This may be related to bugs #448671, and #496163. syslog looks similar... Ask if you need it or some other log/config... On a fresh installation of Ubuntu Server 9.10 I've created a KVM instance using ubuntu-vm-builder. I then run 'define' and 'start' in virsh, successfully

[Bug 530400] Re: starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile'

2010-03-01 Thread Simon Huerlimann
I have no idea about the inner functionality of apparmor. I thus tried to get the hosts running by sudo /etc/init.d/apparmor stop But this doesn't seem to help. Still the same error... Any idea how to disable apparmor for kvm/libvirt? -- starting second kvm guest created using

[Bug 530400] Re: starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile'

2010-03-01 Thread Simon Huerlimann
Well after restarting libvirt (sudo /etc/init.d/libvirt-bin restart), too it now works... -- starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile' https://bugs.launchpad.net/bugs/530400 You received this bug notification because you are a member of

[Bug 530400] Re: starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile'

2010-03-01 Thread Simon Huerlimann
Starting apparmor again, and restarting libvirt brings back the error. -- starting second kvm guest created using ubuntu-vm-builder fails with 'could not remove profile' https://bugs.launchpad.net/bugs/530400 You received this bug notification because you are a member of Ubuntu Server Team,