Discussion:
Cannot boot NetBSD under qemu-kvm
(too old to reply)
Julien Savard
2020-02-21 03:38:50 UTC
Permalink
Hi,
it seems that since my last fedora upgrade ( 30 -> 31 ) I cannot boot any
NetBSD Guest running on KVM-Qemu.
Actual version on Fedora 31 is qemu-kvm-4.1.1-1.
NetBSD 8.0/8.1 On HD hang on : "NetBSD/x86 ffsv2 Primary Bootstrap"
NetBSD 9.0 booting on CD(iso) hangs on "acpicpu1: at cpu1: ACPI CPU".
Booting with ACPI disabled ( boot -2) hangs on : "attimer0: attached to
pcppi0"
I tried on 2 different x86_64 hosts. One Intel ( Core 2) based and the
other AMD (Opteron) based.
Booting OpenBSD or Linux works wells Only NetBSD seems to be an issue.
Has anybody experienced this issue?
Ottavio Caruso
2020-02-21 07:55:09 UTC
Permalink
Post by Julien Savard
Hi,
it seems that since my last fedora upgrade ( 30 -> 31 ) I cannot boot any
NetBSD Guest running on KVM-Qemu.
Actual version on Fedora 31 is qemu-kvm-4.1.1-1.
NetBSD 8.0/8.1 On HD hang on : "NetBSD/x86 ffsv2 Primary Bootstrap"
NetBSD 9.0 booting on CD(iso) hangs on "acpicpu1: at cpu1: ACPI CPU".
Booting with ACPI disabled ( boot -2) hangs on : "attimer0: attached to
pcppi0"
I tried on 2 different x86_64 hosts. One Intel ( Core 2) based and the
other AMD (Opteron) based.
Booting OpenBSD or Linux works wells Only NetBSD seems to be an issue.
Has anybody experienced this issue?
What's your full command line?

This is mine:
qemu-system-x86_64 \
-drive if=virtio,file=/home/oc/VM/img/netbsd.image,index=0,media=disk \
-M q35,accel=kvm -m 350M -cpu host -smp $(nproc) \
-nic user,hostfwd=tcp::6665-:22,model=virtio-net-pci,ipv6=off -nographic

It is possible that you have to tweak the "M q35" parameter, if you
moved from a previous version of qemu.

"qemu-system-x86_64 -M help" will give you all the possible values.
--
Ottavio Caruso


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Julien Savard
2020-02-24 03:30:55 UTC
Permalink
Hi,
I'm running kvm with libvirt/vort-manager. However, machine type is :

<os>
<type arch="x86_64" machine="pc-i440fx-3.0">hvm</type>
<boot dev="hd"/>
</os>

Also tried with pc-i440fx-1.4 and pc-i440fx-4.1. Still the same.

Just to sure I've somewhat tried to boot one of my VM with more or less
your command and no libvirt ( qemu-system-x86_64 -drive
if=virtio,file=/var/lib/libvirt/images/nbqc1-distcc4_01.qcow2,index=0,media=disk
-M q35,accel=kvm -m 512M -cpu host )
Still hang at the same place ("NetBSD/x86 ffsv2 Primary Bootstrap")

On Fri, Feb 21, 2020 at 2:57 AM Ottavio Caruso <
Post by Ottavio Caruso
Post by Julien Savard
Hi,
it seems that since my last fedora upgrade ( 30 -> 31 ) I cannot boot any
NetBSD Guest running on KVM-Qemu.
Actual version on Fedora 31 is qemu-kvm-4.1.1-1.
NetBSD 8.0/8.1 On HD hang on : "NetBSD/x86 ffsv2 Primary Bootstrap"
NetBSD 9.0 booting on CD(iso) hangs on "acpicpu1: at cpu1: ACPI CPU".
Booting with ACPI disabled ( boot -2) hangs on : "attimer0: attached to
pcppi0"
I tried on 2 different x86_64 hosts. One Intel ( Core 2) based and the
other AMD (Opteron) based.
Booting OpenBSD or Linux works wells Only NetBSD seems to be an issue.
Has anybody experienced this issue?
What's your full command line?
qemu-system-x86_64 \
-drive if=virtio,file=/home/oc/VM/img/netbsd.image,index=0,media=disk \
-M q35,accel=kvm -m 350M -cpu host -smp $(nproc) \
-nic user,hostfwd=tcp::6665-:22,model=virtio-net-pci,ipv6=off -nographic
It is possible that you have to tweak the "M q35" parameter, if you
moved from a previous version of qemu.
"qemu-system-x86_64 -M help" will give you all the possible values.
--
Ottavio Caruso
Ottavio Caruso
2020-02-24 08:48:00 UTC
Permalink
Hi,
<os>
<type arch="x86_64" machine="p3.0">hvm</type>
<boot dev="hd"/>
</os>
Also tried with pc-i440fx-1.4 and pc-i440fx-4.1. Still the same.
Just to sure I've somewhat tried to boot one of my VM with more or less
your command and no libvirt ( qemu-system-x86_64 -drive
if=virtio,file=/var/lib/libvirt/images/nbqc1-distcc4_01.qcow2,index=0,media=disk
-M q35,accel=kvm -m 512M -cpu host )
Still hang at the same place ("NetBSD/x86 ffsv2 Primary Bootstrap")
(Please bottom post; it makes it easier for me to reply).

What was your previous version of qemu and what is the new one?

Try booting using the argument "-M c-i440fx-<qemu previous version".

So, for example, if your previous version was 3.0.0, you would boot with:

qemu-system-x86_64 \
-drive
if=virtio,file=/var/lib/libvirt/images/nbqc1-distcc4_01.qcow2,index=0,media=disk
-M pc-i440fx-3.0,accel=kvm -m 512M -cpu host

Also try "if=ide" instead of "if=virtio" or remove the machine type
altogether.

Failing that, try asking on irc (OFTC #qemu).
--
Ottavio Caruso


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Andrei M.
2020-02-23 21:49:05 UTC
Permalink
Hi,
it seems that since my last fedora upgrade ( 30 -> 31 ) I cannot boot any NetBSD Guest running on KVM-Qemu.
Actual version on Fedora 31 is qemu-kvm-4.1.1-1.
NetBSD 8.0/8.1 On HD hang on : "NetBSD/x86 ffsv2 Primary Bootstrap"
NetBSD 9.0 booting on CD(iso) hangs on "acpicpu1: at cpu1: ACPI CPU".
Booting with ACPI disabled ( boot -2) hangs on : "attimer0: attached to pcppi0"
I tried on 2 different x86_64 hosts. One Intel ( Core 2) based and the other AMD (Opteron) based.
Booting OpenBSD or Linux works wells Only NetBSD seems to be an issue.
Has anybody experienced this issue?
I've got the same problem, tried to boot NetBSD 9.0-STABLE (latest as
of 23.02.2002) via virt-manager/kvm and the installation froze on
"acpicpu0 at cpu0: ACPI CPU".
My system is Ubunto 16.04.4.
Here's the screenshot that I made of the output:
https://drive.google.com/open?id=115X4fpINsZ8tnPznWD5aqhhM7aikAtVA

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...