You are not logged in.

#1 2015-03-18 22:13:32

iaw4
Member
Registered: 2014-11-28
Posts: 46

simple GPT arch guest install on qemu : disk hangs on boot

I just tried to do a simple arch mar-dual-iso installation under qemu 2.1.0 on a ubuntu 14.10 host.    I don't want to do paravirtualization, just ordinary virtualization.  most of it was pretty straightforward:

    ubuntu-host$ qemu-img create -f qcow2 test.qcow2 12G
    ubuntu-host$ qemu-system-x86-64 -m 2G -cdrom archlinux-2015.03.01-dual.iso -boot d test.qcow2

note that without the 2G RAM, there is an uninformative abort during boot.  the default 128M is too small.

the arch iso boots nicely.  installation is straightforward.  I thought I had EFI troubles, so I am just using the plain BIOS now.  I still have a /dev/sda1 as /boot and /dev/sda2 as / .  I download and install grub.  I think on linux it just requires (on the host)

    # grub-install --target=i386-pc --recheck --debug /dev/sda
    # grub-mkconfig -o /boot/grub/grub.cfg

while /boot is mounted.  grub has no complaints.  I shut down and restart with

    ubuntu-host$ qemu-system-x86-64 -m 2G test.qcow2

alas, it says "Booting from Hard Disk" and stays there forever.  this could well be a qemu issue, not an arch issue.

otoh, grub2 tells me that the GPT partition label contains no BIOS Boot Partition, which means embedding is not possible.  and then grub only works with unreliable blocklists.  otoh, if I convert the GBT to MBR, I at least get a GRUB prompt.

are there known issues with qemu, GPT, and arch?  or is this (again) a silly error I have made (as I have made many times before).

Offline

Board footer

Powered by FluxBB