NetBSD-Users archive

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

Re: QEMU HARDDISK broken



On Wed, 1 Apr 2026, Manaka wrote:

I'm trying to install NetBSD 11.99.5 on my VPS using netbsd-INSTALL.gz.

Even though the drive works fine with CentOS 6.9 and Ubuntu 18.04, I got this error:

sd0 at scsibus0 target 0 lun 0: <QEMU, QEMU HARDISK, 0.12> disk fixed
sd0: drive offline
sd0: async, 8-bit transfers, tagged queueing


Works under Qemu on Linux and NetBSd-HEAD:

```
NetBSD 11.99.5 (GENERIC) #0: Tue Mar 31 21:10:51 UTC 2026
	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
[...]
virtio0 at pci0 dev 2 function 0
virtio0: SCSI device (id 8, rev. 0x00)
vioscsi0 at virtio0: features: 0x10000000<INDIRECT_DESC>
virtio0: allocated 86016 byte for virtqueue 0 for control, size 256
virtio0: using 73728 byte (4608 entries) indirect descriptors
virtio0: allocated 86016 byte for virtqueue 1 for event, size 256
virtio0: using 73728 byte (4608 entries) indirect descriptors
virtio0: allocated 86016 byte for virtqueue 2 for request, size 256
virtio0: using 73728 byte (4608 entries) indirect descriptors
vioscsi0: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383
virtio0: config interrupting at msix0 vec 0
virtio0: queues interrupting at msix0 vec 1
scsibus0 at vioscsi0: 256 targets, 16384 luns per target
[...]
sd0 at scsibus0 target 0 lun 0: <QEMU, QEMU HARDDISK, 2.5+> disk fixed
sd0: 10240 MB, 16383 cyl, 16 head, 80 sec, 512 bytes/sect x 20971520 sectors
sd0: async, 8-bit transfers, tagged queueing
```

cmdline:

```
$ uname -a
Linux CoreBook 6.14.0-27-generic #27~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 17:38:49 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ kvm --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.14)
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

$ cat ~/tmp/qemu/qemu.sh #!/bin/sh

set -eu
cd ~/tmp/qemu
test -f netbsd.qcow2 || qemu-img create -f qcow2 netbsd.qcow2 10G
kvm -enable-kvm -machine ubuntu-q35,accel=kvm -device intel-iommu -m 4g \
        -cpu kvm64 -smp cpus=4,cores=2,threads=2 -bios /usr/share/ovmf/OVMF.fd \
        -device virtio-scsi-pci,id=scsi0 \
        -drive file=netbsd.qcow2,if=none,id=hd0 -device scsi-hd,drive=hd0,bus=scsi0.0 \
        -object rng-random,filename=/dev/urandom,id=viornd0 -device virtio-rng-pci,rng=viornd0 \
        -netdev user,id=net0,hostfwd=tcp::5555-:22 -device virtio-net-pci,netdev=net0 \
        -audiodev pipewire,id=snd0 -device AC97,audiodev=snd0 \
        "$@"
        # -drive file=netbsd.qcow2,if=none,id=hd0 -device virtio-blk-pci,drive=hd0 \
        # -virtfs local,path=/tmp,mount_tag=share,security_model=passthrough,id=share \
        # -device virtio-gpu OR -device virtio-vga \
        # -nographic -cdrom /tmp/NetBSD-10.1_STABLE-amd64.iso \

$
```

-RVP


Home | Main Index | Thread Index | Old Index