[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Booting a guest with OVMF
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-devel] Booting a guest with OVMF |
Date: |
Tue, 10 Jun 2014 19:26:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 06/10/14 18:10, Kashyap Chamarthy wrote:
> This is disk image #3:
>
>
> http://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/x86_64/Fedora-x86_64-20-20140407-sda.qcow2
As I suspected, this disk image is inapproprite for UEFI virtual machines.
$ guestfish --ro -a Fedora-x86_64-20-20140407-sda.qcow2
><fs> launch
><fs> list-filesystems
/dev/sda1: ext4
It has no EFI system partition.
The image must have been prepared for BIOS machines. (For VMs that
implies SeaBIOS, not OVMF.)
-o-
For cases #1 and #2, I looked into
<http://people.freedesktop.org/~kay/installer/installer.sh>. It
- formats an EFI system partition as FAT32 alright,
- mounts it as "/run/installer-$ROOT/system/boot",
- does some other stuff,
- and then executes
chroot /run/installer-$ROOT/system/ gummiboot install --no-variables
I assume something goes wrong in this step (ie. the ESP won't contain
any gummiboot binary under EFI/BOOT/BOOTX64.EFI).
"install.sh" seems to support formatting regular files -- that should
allow you to both upload one for inspection (eg. with guestfish, see
above), and also to test it with qemu (without needing a USB stick).
Thanks
Laszlo
Re: [Qemu-devel] Booting a guest with OVMF, Laszlo Ersek, 2014/06/11