vmbuilder fails to work with grub2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Server |
Confirmed
|
High
|
Unassigned | ||
vm-builder (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm trying to create new kvm virtual machines on a newly installed jaunty server, and it failed:
# vmbuilder kvm ubuntu --debug
2009-02-14 17:27:35,318 DEBUG add_part - begin 0, length 4096, end 4095
2009-02-14 17:27:35,319 DEBUG add_part - begin 4096, length 1024, end 5119
2009-02-14 17:27:35,319 DEBUG ip: dhcp
2009-02-14 17:27:35,331 DEBUG Temporary directory: /tmp/vmbuilderv
2009-02-14 17:27:35,332 DEBUG Creating the root mount directory: /tmp/vmbuilderv
2009-02-14 17:27:35,332 DEBUG Creating temporary root: /tmp/vmbuilderv
2009-02-14 17:27:35,332 DEBUG Creating destination directory: ubuntu-kvm
2009-02-14 17:27:35,371 INFO Creating disk image: /tmp/vmbuilderv
2009-02-14 17:27:35,372 DEBUG ['/usr/
2009-02-14 17:27:35,379 DEBUG Formatting '/tmp/vmbuilder
2009-02-14 17:27:35,380 INFO Adding partition table to disk image: /tmp/vmbuilderv
2009-02-14 17:27:35,380 DEBUG ['parted', '--script', '/tmp/vmbuilder
2009-02-14 17:27:35,405 INFO Adding type 1 partition to disk image: /tmp/vmbuilderv
2009-02-14 17:27:35,406 DEBUG ['parted', '--script', '--', '/tmp/vmbuilder
2009-02-14 17:27:35,417 INFO Adding type 3 partition to disk image: /tmp/vmbuilderv
2009-02-14 17:27:35,417 DEBUG ['parted', '--script', '--', '/tmp/vmbuilder
2009-02-14 17:27:35,429 INFO Creating loop devices corresponding to the created partitions
2009-02-14 17:27:35,430 DEBUG ['kpartx', '-av', '/tmp/vmbuilder
2009-02-14 17:27:35,442 DEBUG add map loop2p1 (252:4): 0 7998048 linear /dev/loop2 32
2009-02-14 17:27:35,444 DEBUG add map loop2p2 (252:5): 0 2000000 linear /dev/loop2 7998080
2009-02-14 17:27:35,444 INFO Creating file systems
2009-02-14 17:27:35,445 DEBUG Oh, dear, an exception occurred
2009-02-14 17:27:35,445 INFO Cleaning up
2009-02-14 17:27:35,445 DEBUG ['kpartx', '-d', '/tmp/vmbuilder
2009-02-14 17:27:35,455 DEBUG loop deleted : /dev/loop2
2009-02-14 17:27:35,456 DEBUG ['rmdir', 'ubuntu-kvm']
2009-02-14 17:27:35,462 DEBUG ['rm', '-rf', '/tmp/vmbuilder
Traceback (most recent call last):
File "/usr/bin/
VMBuilder.run()
File "/usr/lib/
frontend.run()
File "/usr/lib/
vm.create()
File "/usr/lib/
disk.
File "/usr/lib/
disk.
File "/usr/lib/
part.mkfs()
File "/usr/lib/
raise Exception('We can\'t mkfs before we have a mapper device')
Exception: We can't mkfs before we have a mapper device
Changed in landscape: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.4.0 |
This bug is also affecting me. (updated and upgraded intrepid)
It occurs for both --raw=/dev/sde and for disk image files. Below is from a disk image file:
root@LAB- GPS622- 23:~# vmbuilder kvm ubuntu --suite=intrepid --arch 'amd64' --mem '128' --rootsize '1890' --swapsize '256' --kernel-flavour 'virtual' --hostname 'REMOVED' --mirror 'http:// REMOVED: 9999/ubuntu' --components 'main,restricte d,universe' --addpkg 'vim' --addpkg 'openssh-server' --name 'REMOVED' --user 'REMOVED' --pass 'REMOVED' --libvirt qemu:///system
2009-02-19 12:06:12,619 INFO Creating disk image: /tmp/vmbuilderW j3iNW/disk0. img j3iNW/disk0. img j3iNW/disk0. img j3iNW/disk0. img
2009-02-19 12:06:12,653 INFO Adding partition table to disk image: /tmp/vmbuilderW
2009-02-19 12:06:12,729 INFO Adding type 1 partition to disk image: /tmp/vmbuilderW
2009-02-19 12:06:12,733 INFO Adding type 3 partition to disk image: /tmp/vmbuilderW
2009-02-19 12:06:12,738 INFO Creating loop devices corresponding to the created partitions
2009-02-19 12:06:12,752 INFO Creating file systems
2009-02-19 12:06:12,802 INFO mke2fs 1.41.3 (12-Oct-2008)
2009-02-19 12:06:12,973 INFO Mounting target filesystems
2009-02-19 12:06:13,038 INFO Installing guest operating system. This might take some time...
2009-02-19 12:06:51,782 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-02-19 12:06:51,782 INFO Moving old data out of the way
2009-02-19 12:06:51,885 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-02-19 12:06:52,173 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-02-19 12:06:52,361 INFO Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
2009-02-19 12:06:52,363 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-02-19 12:06:52,367 INFO Testing for an existing GRUB menu.lst file ...
2009-02-19 12:06:52,367 INFO
2009-02-19 12:06:52,368 INFO Could not find /boot/grub/menu.lst file.
2009-02-19 12:06:52,368 INFO Generating /boot/grub/menu.lst
2009-02-19 12:06:52,415 INFO Searching for splash image ... none found, skipping ...
2009-02-19 12:06:52,522 INFO grep: /boot/config*: No such file or directory
2009-02-19 12:06:52,576 INFO Updating /boot/grub/menu.lst ... done
2009-02-19 12:06:52,576 INFO
2009-02-19 12:06:52,732 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-02-19 12:06:52,786 INFO Searching for default file ... found: /boot/grub/default
2009-02-19 12:06:52,790 INFO Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
2009-02-19 12:06:52,871 INFO Searching for splash image ... none found, skipping ...
2009-02-19 12:06:52,900 INFO grep: /boot/config*: No such file or directory
2009-02-19 12:06:52,987 INFO Updating /boot/grub/menu.lst ... done
2009-02-19 12:06:52,987 INFO
2009-02-19 12:06:53,013 INFO Searching for GRUB installation directory ... found: /boot/grub
2009-02-19 12:06:53,845 INFO Can not write log, openpty() failed (/dev/pts not mounted?)
2009-02-19 12:06:54,051 INFO Do...