NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cannot boot NetBSD under qemu-kvm



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 <ottavio2006-usenet2012%yahoo.com@localhost> wrote:
On 21/02/2020 03:38, Julien Savard wrote:
> 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



Home | Main Index | Thread Index | Old Index