vm build using --raw and LVM logical volume doesn't boot because of Grub install error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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 like grub hasn't been installed on the correct place.
Mounting the vm root partition in the host, I was able to locate the vmbuilder-
The IMHO interesting snipplets are:
[...]
2010-03-03 22:15 DEBUG : Setting up linux-firmware (1.26) ...
2010-03-03 22:15 DEBUG : Setting up linux-image-virtual (2.6.31.19.32) ...
2010-03-03 22:15 DEBUG : Creating device.map
2010-03-03 22:15 DEBUG : Output from template '/etc/vmbuilder
2010-03-03 22:15 DEBUG : Installing extra packages
[...]
2010-03-03 22:16 INFO : Installing bootloader
2010-03-03 22:16 DEBUG : ['mount', '--bind', '/dev/mapper/
2010-03-03 22:16 DEBUG : ['chroot', '/tmp/vmbuilder
2010-03-03 22:16 DEBUG : stdin was set and it was a string: root (hd0,0)
setup (hd0)
EOT
2010-03-03 22:17 DEBUG :
2010-03-03 22:17 DEBUG : [ Minimal BASH-like line editing is supported. For
2010-03-03 22:17 DEBUG : the first word, TAB lists possible command
2010-03-03 22:17 DEBUG : completions. Anywhere else TAB lists the possible
2010-03-03 22:17 DEBUG : completions of a device/filename. ]
2010-03-03 22:17 DEBUG : grub> root (hd0,0)
2010-03-03 22:17 DEBUG : grub> setup (hd0)
2010-03-03 22:17 DEBUG : Checking if "/boot/grub/stage1" exists... no
2010-03-03 22:17 DEBUG : Checking if "/grub/stage1" exists... no
2010-03-03 22:17 DEBUG :
2010-03-03 22:17 DEBUG : Error 15: File not found
2010-03-03 22:17 DEBUG : grub> EOT
2010-03-03 22:17 DEBUG : ['umount', '/tmp/vmbuilder
Not sure if hd0 => /dev/sda is a valid idea...
Will try to manually install grub now...
On Wed, Mar 03, 2010 at 10:11:42PM -0000, Simon Huerlimann wrote:
> 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.
This is fixed in Lucid.
status invalid