vm build using --raw and LVM logical volume doesn't boot because of Grub install error

Bug #531646 reported by Simon Huerlimann
6
This bug affects 1 person
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-install.log

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/ubuntu/devicemap.tmpl': (hd0) /dev/sda

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/leo01-pimension--disk', '/tmp/vmbuildercrLky2/root/tmp/vmbuilder-grub/leo01-pimension--disk']
2010-03-03 22:16 DEBUG : ['chroot', '/tmp/vmbuildercrLky2/root', 'grub', '--device-map=/tmp/vmbuilder-grub/device.map', '--batch']
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/vmbuildercrLky2/root/tmp/vmbuilder-grub/leo01-pimension--disk']

Not sure if hd0 => /dev/sda is a valid idea...

Will try to manually install grub now...

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 531646] [NEW] vm build using --raw and LVM logical volume doesn't boot because of Grub install error

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

Changed in vm-builder (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.