From: Jordan Williams <1894836@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1894836] Re: kernel panic using hvf with CPU passthrough
Date: Tue, 08 Sep 2020 13:06:28 -0000 [thread overview]
Message-ID: <159957038849.19229.6729401013611415072.launchpad@gac.canonical.com> (raw)
In-Reply-To: 159956768761.20174.3940381536855370035.malonedeb@gac.canonical.com
** Tags added: macos
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1894836
Title:
kernel panic using hvf with CPU passthrough
Status in QEMU:
New
Bug description:
Host Details
QEMU 5.1 (Homebrew)
macOS 10.15.6 Catalina
Late 2014 iMac
i5-4690 @ 3.5 GHz
8 GB RAM
Guest Details
Ubuntu Desktop 20.04.1 Installer ISO
Problem
Whenever I boot with "-accel hvf -cpu host", the Ubuntu desktop installer will immediately crash with a kernel panic after the initial splash screen.
See the attached picture of the kernel panic for more details.
Steps to recreate
From https://www.jwillikers.com/posts/virtualize_ubuntu_desktop_on_macos_with_qemu/
1. Install QEMU with Homebrew.
$ brew install qemu
2. Create a qcow2 disk image to which to install.
$ qemu-img create -f qcow2 ubuntu2004.qcow2 60G
3. Download the ISO.
$ curl -L -o ubuntu-20.04.1-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso
4. Run the installer in QEMU.
$ qemu-system-x86_64 \
-accel hvf \
-cpu host \
-smp 2 \
-m 4G \
-usb \
-device usb-tablet \
-vga virtio \
-display default,show-cursor=on \
-device virtio-net,netdev=vmnic -netdev user,id=vmnic \
-audiodev coreaudio,id=snd0 \
-device ich9-intel-hda -device hda-output,audiodev=snd0 \
-cdrom ubuntu-20.04.1-desktop-amd64.iso \
-drive file=ubuntu2004.qcow2,if=virtio
Workaround
Emulating the CPU with "-cpu qemu64" does not result in a kernel panic.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1894836/+subscriptions
next prev parent reply other threads:[~2020-09-08 13:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 12:21 [Bug 1894836] [NEW] kernel panic using hvf with CPU passthrough Jordan Williams
2020-09-08 13:06 ` Jordan Williams [this message]
2020-11-14 3:43 ` [Bug 1894836] " Jessica Clarke
2020-11-17 22:11 ` Jordan Williams
2020-12-10 9:04 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=159957038849.19229.6729401013611415072.launchpad@gac.canonical.com \
--to=1894836@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.