VM doesn't boot when --raw = LVM volume

Bug #293712 reported by Mikko Ohtamaa
6
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
New
Undecided
Unassigned

Bug Description

If you use --raw and LVM volume the virtual machine is created fine, but it doesn't boot.

Bochs BIOS screen says no harddisk is found.

More detailed info:

[moo@bison][21:43][~]% sudo lvcreate -L20G -n myvirtmachine vg01
  Incorrect metadata area header checksum
  Logical volume "myvirtmachine" created

sudo vmbuilder kvm ubuntu -v --hostname=harvinaiset --mem 512 --ip=xx.20.128.35 \
--mask 255.255.255.224 --net xx.20.128.32 --bcast xx.20.128.63 --gw xx.20.128.64
--user admin --pass adminpw --firstlogin=login.sh --raw=/dev/vg01/harvinaiset --addpkg acpid -o --flavour virtual --tmpfs - --libvirt qemu:///system

[18:26:35] <soren> moo---: I implemented and tested it. It worked for me.
[18:27:43] <moo---> soren: http://pastebin.com/m3402df61
[18:27:52] <moo---> works fine if I remove --raw
[18:28:54] <soren> I don't see the error?
[18:30:51] <moo---> sorry, I need to rebuild vm
[18:31:00] -*- moo--- does not have the fastest horse on the market
[18:31:03] <soren> Oh, is this the UUID thing?
[18:31:44] <moo---> umm?
[18:31:50] <soren> Never mind.
[18:33:52] <zul> nijaba: that libc6-xen stuff can be fixed in the kernel
[18:34:14] <moo---> ok this time I get this error
[18:34:15] <moo---> http://pastebin.com/m450eb61c
[18:34:30] <moo---> but I assume there is just some existing files I need to purg
[18:36:36] <nijaba> moo---: are you doing a --user admin in the command line?
[18:37:12] <moo---> let me check
[18:37:19] <moo---> yes
[18:37:40] <nijaba> moo---: could you try changing it name to something else?
[18:37:59] <moo---> rerunning...
[18:38:04] -*- moo--- gets excited
[18:38:11] <moo---> if I get this working i am a happy camper
[18:38:40] -*- nijaba think we should check that. would really appreciate if moo could open a bug about the admin thing
[18:39:03] <nijaba> once it has been confirmed, obviously
[18:39:03] <moo---> I assumed it's a logical volume -> it will get formatted in any case -> there can't be existing data
[18:39:28] <nijaba> moo---: you assume right
[18:39:49] <moo---> INFO Copying to disk images
[18:40:29] <moo---> now it completed
[18:40:30] <moo---> http://pastebin.com/m446b3fbe
[18:40:33] <moo---> I ttry to boot it
[18:42:01] <moo---> sorry... a second, phone
[18:42:03] <moo---> ->
[18:46:26] <moo---> asch... I need to create a new vm id
[18:46:33] <moo---> it tries to use old libvirt xml
[18:49:01] <moo---> ok now I got it
[18:49:15] <moo---> I try to start it and it hangs on Bosch BIOS screen
[18:49:24] <moo---> "Booting from hard disk..."
[18:49:39] <moo---> fresh vmbuilder instance, should not have any crap left

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.