Am 13.08.23 um 17:38 schrieb Tobias Heider:
On Sun, Aug 13, 2023 at 08:33:54AM -0400, Andrew Cagney wrote:
Hi Andrew,

can you share the qemu cmd you are using in your tests?
I'd like to see if I can reproduce this.

Here's pretty much everything.  Thanks for looking at it.

Thank you, I managed to reproduce your crash.
I am not yet sure what the exact problem is but you could try using install73.img > instead of install73.iso. It looks like only the iso triggers the bug
for me.

-cdrom makes qemu add an ATA cdrom drive. This issue has nothing to do with the virtio scsi issue / fix from May.

The "wdc_atapi_start" here

>> --:-- ETAwdc_atapi_start: not ready, st = 50

also points to the problem being related to ATA.

You could try something like

-device virtio-scsi-pci,id=scsi
-drive file=install73.iso,format=raw,id=cdinst,if=none
-device scsi-cd,drive=cdinst

That depends on your seabios having support for virtio cdroms. Not sure if that is the default by now.

Or maybe try a SATA cdrom, but you would need to figure out the qemu options for that yourself.

Oh, and the exact qemu version you used may be interesting for people trying to debug this.

Cheers,
Stefan




virt-install \
--connect=qemu:///system \
  --check=path_in_use=off \
  --graphics=none \
  --virt-type=kvm \
  --noreboot \
  --console=pty,target_type=serial \
  --cpu=host-passthrough \
  --network=network:swandefault,model=virtio \
  --rng=type=random,device=/dev/random \
  --security=type=static,model=dac,label='1000:107',relabel=yes \
--vcpus=1 \
--memory=2048 \
--name=w.openbsd-base \
--os-variant=openbsd7.3 \
--disk=path=/home/libreswan/pool/w.openbsd-base.qcow2,size=10,bus=virtio,format=qcow2
\
--filesystem=target=pool,type=mount,accessmode=squash,source=/home/libreswan/pool
\
--cdrom=/home/libreswan/pool/w.openbsd-base.iso

base.conf which gets added to the iso looks like:

#install.conf file for OpenBSD
Terminal type? = com0
System hostname = openbsd
Which network interface do you wish to configure? = vio0
IPv4 address for = dhcp
DNS Domain name = testing.libreswan.org
Password for root account? =
$2a$12$YZ8bMn19IHPQpBoD6Xf/re/4pp2kbJtVkIl/Mc4G3WA96qyG7/6qW
Start sshd(8) by default = yes
Start ntpd(8) by default? = no
NTP server? (hostname or 'default') = default
Do you expect to run the X Window System? = no
Do you want the X Window System to be started by xdm(1)? = no
Which speed should com0 use? (or 'done') = 19200
What timezone are you in? = EST
Change the default console to com0? = yes
Setup a user? = no
Allow root ssh login = yes
Use (W)hole disk or (E)dit the MBR? = W
URL to autopartitioning template for disklabel? = file:/base.disk
Which disk is the root disk? = sd0
Use DUIDs rather than device names in fstab? = yes
Which disk do you wish to initialize? = done
Set name(s)? = all
Location of sets? = cd0
oPathname to the sets = 7.1/amd64
Directory does not contain SHA256.sig. Continue without verification? = yes

this is the console log, part way through pexpect feeds the VM
commands to start the installer:

cannot open cd0a:/etc/random.seed: No such file or directory
booting cd0a:/7.3/amd64/bsd.rd: 3973828+1655808+3882568+0+708608
[109+444720+297256]=0xa76648
entry point at 0xffffffff81001000
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2023 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.3-current (RAMDISK_CD) #1262: Sat Aug 12 11:54:24 MDT 2023
     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 2130542592 (2031MB)
avail mem = 2062016512 (1966MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf59a0 (9 entries)
bios0: vendor SeaBIOS version "1.16.2-1.fc38" date 04/01/2014
bios0: QEMU Standard PC (i440FX + PIIX, 1996)
acpi0 at bios0: ACPI 1.0
acpi0: tables DSDT FACP APIC WAET
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 9 3950X 16-Core Processor, 3500.43 MHz, 17-71-00
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,CPCTR,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,STIBP,SSBD,IBPB,STIBP,SSBD,VIRTSSBD,XSAVEOPT,XSAVEC,XGETBV1
cpu0: 64KB 64b/line 2-way D-cache, 64KB 64b/line 2-way I-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: apic clock running at 1000MHz
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
"ACPI0006" at acpi0 not configured
acpipci0 at acpi0 PCI0
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"QEMU0002" at acpi0 not configured
com0 at acpi0 COM1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
com0: console
acpicmos0 at acpi0
"ACPI0010" at acpi0 not configured
acpicpu at acpi0 not configured
pvbus0 at mainbus0: KVM
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
"Intel 82371SB ISA" rev 0x00 at pci0 dev 1 function 0 not configured
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 2.5+> removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 disabled (no drives)
"Intel 82371AB Power" rev 0x03 at pci0 dev 1 function 3 not configured
virtio0 at pci0 dev 2 function 0 vendor "Qumranet", unknown product
0x1009 rev 0x00
virtio0: no matching child driver; not configured
virtio1 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio1: address 52:54:00:38:8c:5d
virtio1: msix per-VQ
uhci0 at pci0 dev 4 function 0 "Intel 82801I USB" rev 0x03: apic 0 int 11
uhci1 at pci0 dev 4 function 1 "Intel 82801I USB" rev 0x03: apic 0 int 10
uhci2 at pci0 dev 4 function 2 "Intel 82801I USB" rev 0x03: apic 0 int 10
ehci0 at pci0 dev 4 function 7 "Intel 82801I USB" rev 0x03: apic 0 int 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
virtio2 at pci0 dev 5 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio2
scsibus1 at vioblk0: 1 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
sd0: 10240MB, 512 bytes/sector, 20971520 sectors
virtio2: msix per-VQ
virtio3 at pci0 dev 6 function 0 "Qumranet Virtio Memory Balloon" rev 0x00
virtio3: no matching child driver; not configured
virtio4 at pci0 dev 7 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio4
virtio4: msix per-VQ
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
isa0 at mainbus0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
softraid0 at root
scsibus2 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/amd64 7.3 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? sending S
S
expecting #
S
# sending mount /dev/cd0c /mnt
mount /dev/cd0c /mnt
expecting #
mount /dev/cd0c /mnt
# sending cp /mnt/base.conf /
cp /mnt/base.conf /
expecting #
cp /mnt/base.conf /
# sending cp /mnt/base.sh /
cp /mnt/base.sh /
expecting #
cp /mnt/base.sh /
# sending cp /mnt/base.disk /
cp /mnt/base.disk /
expecting #
cp /mnt/base.disk /
# sending umount /mnt
umount /mnt
expecting #
umount /mnt
# sending install -af /base.conf
install -af /base.conf
install -af /base.conf
Terminal type? [vt220] com0
System hostname? (short form, e.g. 'foo') openbsd

Available network interfaces are: vio0 vlan0.
Network interface to configure? (name, lladdr, '?', or 'done') [vio0] vio0
IPv4 address for vio0? (or 'autoconf' or 'none') [autoconf] dhcp
IPv6 address for vio0? (or 'autoconf' or 'none') [none] none
Available network interfaces are: vio0 vlan0.
Network interface to configure? (name, lladdr, '?', or 'done') [done] done
Using DNS domainname swandefault
Using DNS nameservers at 192.168.234.1

Password for root account? <provided>
Public ssh key for root account? [none] none
Start sshd(8) by default? [yes] yes
Change the default console to com0? [yes] yes
Available speeds are: 9600 19200 38400 57600 115200.
Which speed should com0 use? (or 'done') [115200] 115200
Setup a user? (enter a lower-case loginname, or 'no') [no] no
Since no user was setup, root logins via sshd(8) might be useful.
WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no] yes
What timezone are you in? ('?' for list) [EST] EST

Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0] sd0
No valid MBR or GPT.
Use (W)hole disk MBR, whole disk (G)PT or (E)dit? [whole] whole
Setting OpenBSD MBR partition to whole sd0...done.
URL to autopartitioning template for disklabel? [none] file:/base.disk
Fetching file:/base.disk
/dev/rsd0a: 9216.0MB in 18874304 sectors of 512 bytes
46 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/sd0a (77d18921d932542a.a) on /mnt type ffs (rw, asynchronous, local)

Let's install the sets!
Location of sets? (cd0 disk http nfs or 'done') [cd0] cd0
Pathname to the sets? (or 'done') [7.3/amd64] 7.3/amd64

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
     [X] bsd           [X] comp73.tgz    [X] xbase73.tgz   [X] xserv73.tgz
     [X] bsd.rd        [X] man73.tgz     [X] xshare73.tgz
     [X] base73.tgz    [X] game73.tgz    [X] xfont73.tgz
Set name(s)? (or 'abort' or 'done') [done] all
     [X] bsd           [X] comp73.tgz    [X] xbase73.tgz   [X] xserv73.tgz
     [X] bsd.rd        [X] man73.tgz     [X] xshare73.tgz
     [X] base73.tgz    [X] game73.tgz    [X] xfont73.tgz
Set name(s)? (or 'abort' or 'done') [done] done
Directory does not contain SHA256.sig. Continue without verification? [no] yes
Installing bsd          100% |**************************| 24708 KB    00:01
Installing bsd.rd       100% |**************************|  4550 KB    00:00
Installing base73.tgz     0% |                          |     0
--:-- ETAwdc_atapi_start: not ready, st = 50
Installing base73.tgz     1% |                          |  6656 KB
01:26 ETAfatal protection fault in supervisor mode
trap type 4 code 0 rip ffffffff81008c29 cs 8 rflags 10286 cr2
217f09000 cpl 6 rsp ffff800021749560
gsbase 0xffffffff81908ff0  kgsbase 0x0
panic: trap type 4, code=0, pc=ffffffff81008c29
syncing disks...15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15
15 15  giving up

dump to dev 17,1 not possible


Reply via email to