From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuLj9-0003E2-1l for qemu-devel@nongnu.org; Tue, 10 Jun 2014 09:04:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuLj3-00010o-Co for qemu-devel@nongnu.org; Tue, 10 Jun 2014 09:04:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuLj3-00010i-3Y for qemu-devel@nongnu.org; Tue, 10 Jun 2014 09:04:29 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5AD4S0t019855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 10 Jun 2014 09:04:28 -0400 Date: Tue, 10 Jun 2014 18:34:23 +0530 From: Kashyap Chamarthy Message-ID: <20140610125650.GJ8813@tesla> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Booting a guest with OVMF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, lersek@redhat.com Cc: qemu-devel@nongnu.org Heya, Laszlo pointed out OVMF packages for Fedora from here[1]. I tried a simple test using this[2] by installing Fedora onto a USB stick. Once Fedora is installed on the USB stick (/dev/sdb), and I attempt to boot into the USB device as below, I get the Fedora serial console login prompt just fine through a QEMU vnc display: $ sudo qemu-system-x86_64 -machine accel=kvm -m 256 -bios \ /usr/share/OVMF/OVMFX64.fd /dev/sdb) However, when I try with the below QEMU invocation, I get "Boot Failed. EFI Floppy": $ sudo qemu-system-x86_64 -machine accel=kvm -m 512 -nographic \ -nodefconfig -nodefaults -serial stdio \ -bios /usr/share/OVMF/OVMFX64.fd /dev/sdb Boot Failed. EFI Floppy Boot Failed. EFI Floppy 1 Next, I tried booting into a Fedora disk image with the below QEMU invocation, and I get a UEFI interactive shell as below (after "Boot Failed. EFI Floppy"): $ sudo qemu-system-x86_64 -machine accel=kvm -m 512 -nographic \ -nodefconfig -nodefaults -serial stdio -bios /usr/share/OVMF/OVMFX64.fd \ -drive file=/var/lib/libvirt/images/Fedora-x86_64-20-20140407-sda.qcow2,if=ide,format=qcow2,cache=none UEFI Interactive Shell v2.0 EDK II UEFI v2.40 (EDK II, 0x00010000) Mapping table BLK2: Alias(s): PciRoot(0x0)/Pci(0x1,0x1)/Ata(0x0) BLK3: Alias(s): PciRoot(0x0)/Pci(0x1,0x1)/Ata(0x0)/HD(1,MBR,0x00014C24,0x7A1,0x3FF83D) BLK0: Alias(s): PciRoot(0x0)/Pci(0x1,0x0)/Floppy(0x0) BLK1: Alias(s): PciRoot(0x0)/Pci(0x1,0x0)/Floppy(0x1) Press ESC in 1 seconds to skip startup.nsh or any other key to continue. Shell> Is this expected behavior? [1] http://copr-be.cloud.fedoraproject.org/results/bonzini/ovmf/fedora-20-x86_64/edk2-20140328svn15376-4.fc20/ [2] http://people.freedesktop.org/~kay/installer/README -- /kashyap