Comment 3 for bug 613619

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

are you still having this problem?

In oneiric, I just did

    qemu-img -L 10G -n kvm1 schroots
    dd if=oneiric-vm.img of=/dev/schroots/kvm1

and then changed the libvirt definition of the oneiric-vm vm to have the following disk section:

    <disk type='block' device='disk'>
      <source dev='/dev/schroots/kvm1'/>
      <target dev='vda' bus='virtio'/>
    </disk>

And the host came up fine. I did not manually try fdisk+debootstrap. As others elsewhere have pointed out, fdisk won't clear out the whole first part of the LVM volume which can confuse the guest kernel, initramfs, mounter, etc. If doing

    dd if=/dev/zero of=/dev/LV1/lv bs=1M

first reliably works for you, then this would not be a qemu bug.