Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZQ8ki-0005su-C8 for mharc-grub-devel@gnu.org; Fri, 14 Aug 2015 02:46:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8kf-0005rb-NB for grub-devel@gnu.org; Fri, 14 Aug 2015 02:46:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ8kc-0004QK-8T for grub-devel@gnu.org; Fri, 14 Aug 2015 02:46:05 -0400 Received: from mail-qg0-f52.google.com ([209.85.192.52]:35281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ8kc-0004QA-4X for grub-devel@gnu.org; Fri, 14 Aug 2015 02:46:02 -0400 Received: by qgj62 with SMTP id 62so46390585qgj.2 for ; Thu, 13 Aug 2015 23:46:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version:content-type; bh=RSZndWJMlJObZMEzwdZtn5EcQaJOeCsr27sfiXsNoQ4=; b=d85xKkFsBvZL++sTUjvPeTdv+9oP1L6E/bCWILWispE68OxCiWdisG6kjGyqt23tuB a7tHxlKtdQ07UxrCkd6kCc9v6XBzne3ZWq45E0vKC3+zn4Ips2qHH2SY0Jv+kZ7aeYgZ adQPcTyHiCnrxg1YIR7IL6BDB/uHhab5XXlQIwres+/B8DIYarkJ5Ozb1OnqzSVSz98C H3HE51fgp3KD9xh8jklQGP/ZHWU3PA+P89dQHA6IYsL2aqiOO3wq+PHr+TEGw8SfW+A6 uFmjwAJiIUNfTqWlUIrJ2QY32KhO49u+vpA+WYsu80ZFkFxkwGS04mGwBddqNntK3mWB X04g== X-Gm-Message-State: ALoCoQlGbanhnEsweT910PY7P8rc9XvHYGItZwDJlxKR40PV+zzrHUlsUpynDJMBCg5KXiKWjVBG X-Received: by 10.140.238.3 with SMTP id j3mr25360651qhc.14.1439534761083; Thu, 13 Aug 2015 23:46:01 -0700 (PDT) Received: from melech-hp.localnet (cpe-69-203-11-147.nyc.res.rr.com. [69.203.11.147]) by smtp.gmail.com with ESMTPSA id 125sm2504673qht.21.2015.08.13.23.46.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Aug 2015 23:46:00 -0700 (PDT) From: Mark Lee To: grub-devel@gnu.org Subject: Kernel panics (in QEMU) when booting with GRUB2 + OVMF + QEMU. Date: Fri, 14 Aug 2015 02:45:54 -0400 Message-ID: <16954915.kKtRLGMXJZ@melech-hp> Organization: Lee Consultations User-Agent: KMail/4.14.10 (Linux/4.1.4-1-ARCH; KDE/4.14.10; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1518728.kHDf6hNT8f"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.52 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 06:46:07 -0000 --nextPart1518728.kHDf6hNT8f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" To all, I've encountered a bug when using GRUB2 + OVMF + QEMU on Arch Linux 64 = bit.=20 The issue can be reproduced when running the latest git code from grub = as=20 well. ISSUE: Kernel panics (in QEMU) when booting with GRUB2 + OVMF + QEMU. =2D----- When booting using OVMF (ovmf_x64.bin) + QEMU, GRUB2 manages to loa= d but=20 kernel panics when loading its menu entry. This issue is not observed i= n=20 hardware or via bios boot. DOWNLOADS: test.img =2D--------- To speed up testing, one can skip reproducing test.img and grab a c= opy at=20 =20 REPRODUCE test.img: =2D------------------ # fallocate -l 3G test.img # gdisk test.img <<<( o y n 1 +1M ef02 n 2 +100M ef00 n 3 w y ) # kpartx -l test.img /* Get the name of loop device */ # kpartx -a test.img # mkfs.fat /dev/mapper/p2 # mkfs.ext4 /dev/mapper/p3=20 # mount /dev/mapper/p3 /mnt # mkdir /mnt/boot # mount /dev/mapper/p2 /mnt/boot /* This part is Arch Linux specific */ # pacstrap /mnt base grub /* End Arch Linux specific */ # grub-install --target=3Di386-pc --boot-directory=3D/mnt/boot /dev/ # grub-install --target=3Dx86_64-efi --efi-directory=3D/mnt/boot --boot= =2D directory=3D/mnt/boot --removable # echo " insmod all_video menuentry "Arch Linux" { linux /vmlinuz-linux rw root=3D/dev/sda3 initrd /initramfs-linux-fallback.img } " > /mnt/boot/grub/grub.cfg # umount -R /mnt # kpartx -d test.img REPRODUCE QEMU ERROR: =2D-------------------- /* Bios works */ # qemu-system-x86_64 -enable-kvm -cpu host test.img /* UEFI doesn't */ # qemu-system-x86_64 -enable-kvm -cpu host -bios /usr/share/ovmf/ovmf_x= 64.bin=20 test.img /* I get the following error */ Kernel panic - not syncing : VFS: Unable to mount root fs on Unknown- block(0,0) CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.4-1-ARCH #1 Hardware name : QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0000000000000000 000000007fac344c ffff880006527db8 ffffffff815865be 0000000000000000 ffffffff816f61b0 ffff880006527e38 ffffffff81585453 ffff880000000010 ffff880006527e48 ffff880006527de8 000000007fac344c Call Trace: [] dump_stack+0x4c/0x6e [] panic+0xd0/0x203 [] mount_block_root+0x297/0x2a6 [] mount_root+0x54/0x58 [] prepare_namespace+0x138/0x171 [] kernel_init_freeable+0x1ec/0x215 [] ? rest_init+0x90/0x90 [] kernel_init+0xe/0xf0 [] ret_fromt_fork+0x42/0x70 [] ? rest_init+0x90/0x90 Kernel Offset: disabled =2D--[ end Kernel panic - not syncing: VFS: Unable to mount root fs on un= known- block(0,0) --nextPart1518728.kHDf6hNT8f Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EABEIAAYFAlXNjqIACgkQZ/Z80n6+J/br5gD/c7w6w00eH1g6b+9gxfI1qrA+ PcUqgvHI5QwnyQ6XnB0BAJb3exxl0MkQYTm0iLxfPvHTPYAnAeUfhrt47g5bR0Hb =4Yur -----END PGP SIGNATURE----- --nextPart1518728.kHDf6hNT8f--