Public bug reported: Expected result: vmbuilder would create me a new virtual machine Actual result: vmbuilder craps out and generates all kinds of errors
2012-05-22 20:11:17,781 DEBUG : Setting up iw (3.2-1) ... 2012-05-22 20:11:18,203 DEBUG : Setting up linux-firmware (1.79) ... 2012-05-22 20:11:18,633 DEBUG : Setting up linux-image-virtual (3.2.0.24.26) ... 2012-05-22 20:11:19,055 DEBUG : Processing triggers for libc-bin ... 2012-05-22 20:11:19,198 DEBUG : ldconfig deferred processing now taking place 2012-05-22 20:11:20,925 DEBUG : Calling install_kernel method in context plugin VMBuilder.plugins.kvm.vm. 2012-05-22 20:11:20,926 DEBUG : No such method 2012-05-22 20:11:20,926 INFO : Calling hook: post_install 2012-05-22 20:11:20,926 DEBUG : (args=(), kwargs={}) 2012-05-22 20:11:20,926 DEBUG : Calling post_install method in VMBuilder.plugins.postinst plugin. 2012-05-22 20:11:20,926 DEBUG : Calling post_install method in VMBuilder.plugins.network plugin. 2012-05-22 20:11:20,927 DEBUG : Calling post_install method in VMBuilder.plugins.firstscripts plugin. 2012-05-22 20:11:20,927 DEBUG : Calling post_install method in context plugin VMBuilder.plugins.ubuntu.distro. 2012-05-22 20:11:20,927 INFO : Calling hook: unmount_partitions 2012-05-22 20:11:20,927 DEBUG : (args=(), kwargs={}) 2012-05-22 20:11:20,928 DEBUG : Calling unmount_partitions method in VMBuilder.plugins.network plugin. 2012-05-22 20:11:20,928 DEBUG : No such method 2012-05-22 20:11:20,928 DEBUG : Calling unmount_partitions method in VMBuilder.plugins.libvirt plugin. 2012-05-22 20:11:20,928 DEBUG : No such method 2012-05-22 20:11:20,928 DEBUG : Calling unmount_partitions method in VMBuilder.plugins.ubuntu.distro plugin. 2012-05-22 20:11:20,929 DEBUG : No such method 2012-05-22 20:11:20,929 DEBUG : Calling unmount_partitions method in context plugin VMBuilder.plugins.kvm.vm. 2012-05-22 20:11:20,929 INFO : Unmounting target filesystem 2012-05-22 20:11:20,929 DEBUG : Unmounting /tmp/tmpG_U5Zm/log 2012-05-22 20:11:20,929 DEBUG : ['umount', '/tmp/tmpG_U5Zm/log'] 2012-05-22 20:11:20,974 DEBUG : Unmounting /tmp/tmpG_U5Zm/var 2012-05-22 20:11:20,974 DEBUG : ['umount', '/tmp/tmpG_U5Zm/var'] 2012-05-22 20:11:22,010 DEBUG : Unmounting /tmp/tmpG_U5Zm/opt 2012-05-22 20:11:22,011 DEBUG : ['umount', '/tmp/tmpG_U5Zm/opt'] 2012-05-22 20:11:22,046 DEBUG : Unmounting /tmp/tmpG_U5Zm/ 2012-05-22 20:11:22,046 DEBUG : ['umount', '/tmp/tmpG_U5Zm/'] 2012-05-22 20:11:25,797 DEBUG : ['kpartx', '-d', '/tmp/tmpmt0y3V'] 2012-05-22 20:11:25,809 DEBUG : loop deleted : /dev/loop0 2012-05-22 20:11:25,810 DEBUG : ['kpartx', '-d', '/tmp/tmpmt0y3V'] 2012-05-22 20:11:25,819 DEBUG : Removing partition /dev/mapper/loop0p1 2012-05-22 20:11:25,819 DEBUG : ['dmsetup', 'info', 'loop0pp1'] 2012-05-22 20:11:25,826 DEBUG : Command failed 2012-05-22 20:11:25,826 DEBUG : Device does not exist. 2012-05-22 20:11:25,826 DEBUG : Removing partition /dev/mapper/loop0p2 2012-05-22 20:11:25,826 DEBUG : ['dmsetup', 'info', 'loop0pp2'] 2012-05-22 20:11:25,829 DEBUG : Command failed 2012-05-22 20:11:25,830 DEBUG : Device does not exist. 2012-05-22 20:11:25,830 DEBUG : Removing partition /dev/mapper/loop0p3 2012-05-22 20:11:25,830 DEBUG : ['dmsetup', 'info', 'loop0pp3'] 2012-05-22 20:11:25,834 DEBUG : Command failed 2012-05-22 20:11:25,834 DEBUG : Device does not exist. 2012-05-22 20:11:28,837 DEBUG : ['kpartx', '-d', '/tmp/tmp1fwdrQ'] 2012-05-22 20:11:28,851 DEBUG : loop deleted : /dev/loop1 2012-05-22 20:11:28,851 DEBUG : ['kpartx', '-d', '/tmp/tmp1fwdrQ'] 2012-05-22 20:11:28,863 DEBUG : Removing partition /dev/mapper/loop1p1 2012-05-22 20:11:28,864 DEBUG : ['dmsetup', 'info', 'loop1pp1'] 2012-05-22 20:11:28,871 DEBUG : Command failed 2012-05-22 20:11:28,872 DEBUG : Device does not exist. 2012-05-22 20:11:28,872 DEBUG : Removing partition /dev/mapper/loop1p2 2012-05-22 20:11:28,873 DEBUG : ['dmsetup', 'info', 'loop1pp2'] 2012-05-22 20:11:28,879 DEBUG : Command failed 2012-05-22 20:11:28,880 DEBUG : Device does not exist. 2012-05-22 20:11:28,881 DEBUG : Changing ownership of ubuntu-kvm to bestes 2012-05-22 20:11:28,882 INFO : Calling hook: convert 2012-05-22 20:11:28,882 DEBUG : (args=([<VMBuilder.disk.Disk object at 0x2a07a90>, <VMBuilder.disk.Disk object at 0x2835310>], 'ubuntu-kvm'), kwargs={}) 2012-05-22 20:11:28,882 DEBUG : Calling convert method in VMBuilder.plugins.network plugin. 2012-05-22 20:11:28,882 DEBUG : No such method 2012-05-22 20:11:28,883 DEBUG : Calling convert method in VMBuilder.plugins.libvirt plugin. 2012-05-22 20:11:28,883 DEBUG : No such method 2012-05-22 20:11:28,883 DEBUG : Calling convert method in VMBuilder.plugins.ubuntu.distro plugin. 2012-05-22 20:11:28,883 DEBUG : No such method 2012-05-22 20:11:28,883 DEBUG : Calling convert method in context plugin VMBuilder.plugins.kvm.vm. 2012-05-22 20:11:28,884 INFO : Converting /tmp/tmpmt0y3V to qcow2, format ubuntu-kvm/tmpmt0y3V.qcow2 2012-05-22 20:11:28,884 DEBUG : ['/usr/bin/kvm-img', 'convert', '-O', 'qcow2', '/tmp/tmpmt0y3V', 'ubuntu-kvm/tmpmt0y3V.qcow2'] 2012-05-22 20:11:33,498 INFO : Calling hook: fix_ownership 2012-05-22 20:11:33,498 DEBUG : (args=('ubuntu-kvm/tmpmt0y3V.qcow2',), kwargs={}) 2012-05-22 20:11:33,499 DEBUG : Calling fix_ownership method in VMBuilder.plugins.network plugin. 2012-05-22 20:11:33,499 DEBUG : No such method 2012-05-22 20:11:33,499 DEBUG : Calling fix_ownership method in VMBuilder.plugins.libvirt plugin. 2012-05-22 20:11:33,499 DEBUG : No such method 2012-05-22 20:11:33,499 DEBUG : Calling fix_ownership method in VMBuilder.plugins.ubuntu.distro plugin. 2012-05-22 20:11:33,499 DEBUG : No such method 2012-05-22 20:11:33,499 DEBUG : Calling <bound method CLI.fix_ownership of <VMBuilder.contrib.cli.CLI object at 0x27117d0>>. 2012-05-22 20:11:33,499 DEBUG : Changing ownership of ubuntu-kvm/tmpmt0y3V.qcow2 to bestes 2012-05-22 20:11:33,499 DEBUG : Calling fix_ownership method in context plugin VMBuilder.plugins.kvm.vm. 2012-05-22 20:11:33,499 DEBUG : No such method 2012-05-22 20:11:33,499 INFO : Converting /tmp/tmp1fwdrQ to qcow2, format ubuntu-kvm/tmp1fwdrQ.qcow2 2012-05-22 20:11:33,500 DEBUG : ['/usr/bin/kvm-img', 'convert', '-O', 'qcow2', '/tmp/tmp1fwdrQ', 'ubuntu-kvm/tmp1fwdrQ.qcow2'] 2012-05-22 20:11:39,849 INFO : Calling hook: fix_ownership 2012-05-22 20:11:39,850 DEBUG : (args=('ubuntu-kvm/tmp1fwdrQ.qcow2',), kwargs={}) 2012-05-22 20:11:39,850 DEBUG : Calling fix_ownership method in VMBuilder.plugins.network plugin. 2012-05-22 20:11:39,850 DEBUG : No such method 2012-05-22 20:11:39,850 DEBUG : Calling fix_ownership method in VMBuilder.plugins.libvirt plugin. 2012-05-22 20:11:39,850 DEBUG : No such method 2012-05-22 20:11:39,850 DEBUG : Calling fix_ownership method in VMBuilder.plugins.ubuntu.distro plugin. 2012-05-22 20:11:39,850 DEBUG : No such method 2012-05-22 20:11:39,850 DEBUG : Calling <bound method CLI.fix_ownership of <VMBuilder.contrib.cli.CLI object at 0x27117d0>>. 2012-05-22 20:11:39,850 DEBUG : Changing ownership of ubuntu-kvm/tmp1fwdrQ.qcow2 to bestes 2012-05-22 20:11:39,850 DEBUG : Calling fix_ownership method in context plugin VMBuilder.plugins.kvm.vm. 2012-05-22 20:11:39,851 DEBUG : No such method 2012-05-22 20:11:39,851 INFO : Calling hook: deploy 2012-05-22 20:11:39,851 DEBUG : (args=('ubuntu-kvm',), kwargs={}) 2012-05-22 20:11:39,851 DEBUG : Calling deploy method in VMBuilder.plugins.network plugin. 2012-05-22 20:11:39,851 DEBUG : No such method 2012-05-22 20:11:39,851 DEBUG : Calling deploy method in VMBuilder.plugins.libvirt plugin. 2012-05-22 20:11:39,863 DEBUG : Output from template '/etc/vmbuilder/libvirt/libvirtxml.tmpl': <domain type='kvm'> <name>myvmduo</name> <memory>131072</memory> <vcpu>1</vcpu> <os> <type>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <interface type='network'> <source network='default'/> <model type='virtio'/> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' listen='127.0.0.1'/> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' /> <source file='/var/virtual_machines/ubuntu-kvm/tmpmt0y3V.qcow2' /> <target dev='hda' /> </disk> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' /> <source file='/var/virtual_machines/ubuntu-kvm/tmp1fwdrQ.qcow2' /> <target dev='hdb' /> </disk> </devices> </domain> 2012-05-22 20:11:41,566 DEBUG : Calling deploy method in VMBuilder.plugins.ubuntu.distro plugin. 2012-05-22 20:11:41,567 DEBUG : No such method 2012-05-22 20:11:41,567 DEBUG : Calling deploy method in context plugin VMBuilder.plugins.kvm.vm. 2012-05-22 20:11:41,567 DEBUG : ['rm', '-rf', '--one-file-system', '/tmp/tmpgKoubG'] root@rock:/var/virtual_machines# I created a script to keep the vmbuilder command line (mostly because I've been trying to get it to work). Also got a chance to install apt- cacher and get it working so that I could test this faster. The actual script: vmbuilder kvm ubuntu --suite precise --flavour virtual --arch amd64 \ -o -v --debug --libvirt qemu:///system --hostname myvmduo --part vmbuilder.partition \ --user user --name user --pass default --addpkg acpid --proxy http://localhost:3142 ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New -- 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/1003231 Title: vmbuilder generates many "method not found" errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/1003231/+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