Hi Folks,
I've recently upgraded my system to a newer snapshot (from 10 July to
23 October). Since then, VMs suddenly exit after some uptime (up to a
couple of days). One VM runs OpenBSD (upgraded to the same snapshot)
another runs Linux (Debian 13) - both exhibit this issue.
Previously, I was running the snapshot from
OpenBSD 7.9-current (GENERIC.MP) #30: Fri Jul 10 17:14:55 MDT 2026
I upgraded to this snapshot:
OpenBSD 8.0-current (GENERIC.MP) #123: Fri Oct 23 07:33:43 MDT 2026
Full dmesg for the latter is included below
I also increased memory at the same time (64GB -> 128GB), I
increased the memory allocated to the VMs (from 8 to 16GB for the
OpenBSD VM, from 6 to 16GB for the Linux VM), and I moved both VMs to
2 vCPUs (although for the OpenBSD VM I brought it back to 1 vCPU after
the instability came to light - that didn't fix the VMs exiting).
Current vm.conf looks like this:
--- /etc/vm.conf -----------------------------------------------------
vm "openbsd" {
owner root
cpus 1
memory 16G
disk /home/vm/openbsd/sd0.vmdisk
interface switch "vmmswitch" lladdr "fe:e1:bb:00:00:01"
}
vm "debian" {
owner root
cpus 2
memory 16G
disk /home/vm/debian/sda.vmdisk
interface switch "vmmswitch" lladdr "fe:e1:bb:00:00:02"
}
switch "vmmswitch" {
enable
interface veb0
}
----------------------------------------------------------------------
The VMs exit with this logged to syslog:
2026-11-02T02:52:44.397Z despair /bsd: smr: dispatch took 6.120000s
Which doesn't tell me much, so I started `vmd -dvvvv | ts` in a tmux
session to collect some more details. Here's what I see:
--- vmd -dvvvv | ts # timestamps in UTC+1 ----------------------------
Nov 02 03:52:36 vm/openbsd/vionet0: handle_sync_io: pipe dead (EV_READ)
Nov 02 03:52:36 vm/openbsd/vioblk0: handle_sync_io: vioblk pipe dead (EV_READ)
Nov 02 03:52:36 vm/openbsd/vionet0: dev_dispatch_vm: pipe dead (EV_READ)
Nov 02 03:52:36 vm/openbsd/vioblk0: dev_dispatch_vm: pipe dead (EV_READ)
Nov 02 03:52:36 vm/openbsd/vionet0: rx_run_loop: exiting (0)
Nov 02 03:52:36 vm/openbsd/vionet0: tx_run_loop: exiting (0)
Nov 02 03:52:36 vmm: vmm_sighdlr: handling signal 20
Nov 02 03:52:36 vmm: vmm_sighdlr: vm openbsd exited (id 2)
Nov 02 03:52:36 vmm: vm_remove: vmm vmm_sighdlr removing vm 2 from running
config
Nov 02 03:52:36 vmm: vm_stop: vmm vmm_sighdlr stopping vm 2
Nov 02 03:52:36 vmd: vm_stop: vmd vmd_dispatch_vmm stopping vm 2
----------------------------------------------------------------------
To further debug this, I enabled accounting and set
kern.nosuidcoredump=2 and created /var/crash/vmd.
--- lastcomm vmd -----------------------------------------------------
vmd[98691] - _vmd __ 466.80 secs Sat Oct 31 21:26 (30:26:08.00)
vmd[92467] - _vmd __ 86.91 secs Sat Oct 31 21:26 (30:26:08.00)
vmd[91193] -X _vmd __ 3723.88 secs Sat Oct 31 21:26 (30:26:08.00)
----------------------------------------------------------------------
No core dumps were collected in /var/crash/vmd.
While the OpenBSD VM was running with two vCPUs, it also logged this
to dmesg:
----------------------------------------------------------------------
hvaddr_mem: failed - invalid gpa: 0xfb276940
hvaddr_mem: failed - invalid gpa: 0xfafb24c0
----------------------------------------------------------------------
But I couldn't reliably reproduce this (especially since reverting to
1 vCPU), so I don't think it's related.
Paul 'WEiRD' de Weerd
--- /var/run/dmesg.boot ----------------------------------------------
OpenBSD 8.0-current (GENERIC.MP) #123: Fri Oct 23 07:33:43 MDT 2026
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 137287626752 (130927MB)
avail mem = 133086486528 (126921MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xdab04000 (53 entries)
bios0: vendor American Megatrends Inc. version "1.1a" date 12/15/2022
bios0: Supermicro Super Server
efi0 at bios0: UEFI 2.7
efi0: American Megatrends rev 0x5000d
acpi0 at bios0: ACPI 6.1
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC FPDT FIDT SSDT SPMI SSDT MCFG SSDT CRAT CDIT BERT
EINJ HEST HPET SSDT UEFI SSDT WSMT
acpi0: wakeup devices S0D0(S3) S0D1(S3) S0D2(S3) S0D3(S3) S1D0(S3) S1D1(S3)
S1D2(S3) S1D3(S3)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu0: cpuid 1
edx=178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT>
ecx=76d8320b<SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND>
cpu0: cpuid 6 eax=4<ARAT> ecx=1<EFFFREQ>
cpu0: cpuid 7.0
ebx=209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA>
cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
cpu0: cpuid 80000001 edx=2fd3fbff<NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG>
ecx=35c233ff<LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX>
cpu0: cpuid 80000007 edx=6799<HWPSTATE,ITSC>
cpu0: cpuid 80000008 ebx=1007<IBPB>
cpu0: cpuid 8000001F eax=f<SME,SEV,PFLUSH_MSR,SEVES> ecx=f edx=1
cpu0: 32KB 64b/line 8-way D-cache, 64KB 64b/line 4-way I-cache, 512KB 64b/line
8-way L2 cache, 8MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0, type P
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu1: smt 0, core 1, package 0, type P
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu2: smt 0, core 2, package 0, type P
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu3: smt 0, core 3, package 0, type P
cpu4 at mainbus0: apid 8 (application processor)
cpu4: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu4: smt 0, core 8, package 0, type P
cpu5 at mainbus0: apid 9 (application processor)
cpu5: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu5: smt 0, core 9, package 0, type P
cpu6 at mainbus0: apid 10 (application processor)
cpu6: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu6: smt 0, core 10, package 0, type P
cpu7 at mainbus0: apid 11 (application processor)
cpu7: AMD EPYC 3201 8-Core Processor, 1500.00 MHz, 17-01-02, patch 0800126f
cpu7: smt 0, core 11, package 0, type P
ioapic0 at mainbus0: apid 128 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 129 pa 0xefff0000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xf0000000, bus 0-127
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (D0A0)
acpiprt2 at acpi0: bus 2 (D0A2)
acpiprt3 at acpi0: bus 3 (ASTB)
acpiprt4 at acpi0: bus 4 (D0A4)
acpiprt5 at acpi0: bus -1 (D0B0)
acpiprt6 at acpi0: bus -1 (D0B1)
acpiprt7 at acpi0: bus 6 (S0D0)
acpiprt8 at acpi0: bus 7 (BR17)
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
com1 at acpi0 UAR2 addr 0x2f8/0x8 irq 3: ns16550a, 16 byte fifo
com1: console
ipmi0 at acpi0: version 2.0 interface KCS iobase 0xca4/2 spacing 1
dwiic0 at acpi0 I2CA addr 0xfedc2000/0x1000 irq 10
iic0 at dwiic0
dwiic1 at acpi0 I2CB addr 0xfedc3000/0x1000 irq 11
iic1 at dwiic1
dwiic2 at acpi0 I2CC addr 0xfedc4000/0x1000 irq 12
iic2 at dwiic2
dwiic3 at acpi0 I2CD addr 0xfedc5000/0x1000 irq 13
iic3 at dwiic3
dwiic4 at acpi0 I2CE addr 0xfedc6000/0x1000 irq 14
iic4 at dwiic4
dwiic5 at acpi0 I2CF addr 0xfedcb000/0x1000 irq 15
iic5 at dwiic5
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x300 irq 7, 184 pins
acpibtn0 at acpi0: PWRB
acpicpu0 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu1 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu2 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu3 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu4 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu5 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu6 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpicpu7 at acpi0: C2(0@400 io@0x814), C1(0@1 mwait), PSS
acpipwrres0 at acpi0: P0SA
acpipwrres1 at acpi0: P3SA
acpipwrres2 at acpi0: P0SA
acpipwrres3 at acpi0: P3SA
acpipwrres4 at acpi0: P0SA
acpipwrres5 at acpi0: P3SA
acpipwrres6 at acpi0: P0SA
acpipwrres7 at acpi0: P3SA
acpipwrres8 at acpi0: P0SA
acpipwrres9 at acpi0: P3SA
acpipwrres10 at acpi0: P0SA
acpipwrres11 at acpi0: P3SA
acpipwrres12 at acpi0: P0SA
acpipwrres13 at acpi0: P3SA
acpipwrres14 at acpi0: P0SA
acpipwrres15 at acpi0: P3SA
ipmi at mainbus0 not configured
cpu0: 1500 MHz: speeds: 1500 1400 1200 MHz
pci0 at mainbus0 bus 0
ksmn0 at pci0 dev 0 function 0 "AMD 17h Root Complex" rev 0x00
pchb0 at pci0 dev 1 function 0 "AMD 17h PCIE" rev 0x00
ppb0 at pci0 dev 1 function 1 "AMD 17h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
nvme0 at pci1 dev 0 function 0 "Intel NVMe" rev 0x03: msix, NVMe 1.3
nvme0: INTEL SSDPEKNW512G8, firmware 004C, serial BTNH10651Y7T512A
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, INTEL SSDPEKNW51, 004C>
sd0: 488386MB, 512 bytes/sector, 1000215216 sectors
ppb1 at pci0 dev 1 function 3 "AMD 17h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "ASPEED Technology AST1150 PCI" rev 0x04
pci3 at ppb2 bus 3
"ASPEED Technology AST2000" rev 0x41 at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 1 function 5 "AMD 17h PCIE" rev 0x00: msi
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel I350" rev 0x01: msi, address
3c:ec:ef:00:00:00
em1 at pci4 dev 0 function 1 "Intel I350" rev 0x01: msi, address
3c:ec:ef:00:00:01
em2 at pci4 dev 0 function 2 "Intel I350" rev 0x01: msi, address
3c:ec:ef:00:00:02
em3 at pci4 dev 0 function 3 "Intel I350" rev 0x01: msi, address
3c:ec:ef:00:00:03
pchb1 at pci0 dev 2 function 0 "AMD 17h PCIE" rev 0x00
pchb2 at pci0 dev 3 function 0 "AMD 17h PCIE" rev 0x00
ppb4 at pci0 dev 3 function 4 "AMD 17h PCIE" rev 0x00: msi
pci5 at ppb4 bus 5
nvme1 at pci5 dev 0 function 0 "Intel SSD DC" rev 0x00: msix, NVMe 1.2
nvme1: INTEL SSDPE2KE032T8, firmware VDV10170, serial PHLN006600QW3P2BGN
scsibus2 at nvme1: 129 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <NVMe, INTEL SSDPE2KE03, VDV1>
sd1: 3052360MB, 512 bytes/sector, 6251233968 sectors
pchb3 at pci0 dev 4 function 0 "AMD 17h PCIE" rev 0x00
pchb4 at pci0 dev 7 function 0 "AMD 17h PCIE" rev 0x00
ppb5 at pci0 dev 7 function 1 "AMD 17h PCIE" rev 0x00
pci6 at ppb5 bus 6
vendor "AMD", unknown product 0x145a (class instrumentation unknown subclass
0x00, rev 0x00) at pci6 dev 0 function 0 not configured
ccp0 at pci6 dev 0 function 2 "AMD 17h Crypto" rev 0x00: msix
psp0 at ccp0: vers 1, api 0.17, build 48, SEV, SEV-ES
xhci0 at pci6 dev 0 function 3 "AMD 17h xHCI" rev 0x00: msix, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00
addr 1
pchb5 at pci0 dev 8 function 0 "AMD 17h PCIE" rev 0x00
ppb6 at pci0 dev 8 function 1 "AMD 17h PCIE" rev 0x00
pci7 at ppb6 bus 7
vendor "AMD", unknown product 0x1455 (class instrumentation unknown subclass
0x00, rev 0x00) at pci7 dev 0 function 0 not configured
ccp1 at pci7 dev 0 function 1 "AMD 17h Crypto" rev 0x00
ahci0 at pci7 dev 0 function 2 "AMD FCH AHCI" rev 0x51: msi, AHCI 1.3.1
ahci0: port 0: 6.0Gb/s
scsibus3 at ahci0: 32 targets
sd2 at scsibus3 targ 0 lun 0: <ATA, WDC WD140EFGX-68, 85.0> naa.5000cca28ef6a0cb
sd2: 13351936MB, 512 bytes/sector, 27344764928 sectors
piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x59: SMI
iic6 at piixpm0
iic6: skipping sensors to avoid ipmi0 interactions
iic7 at piixpm0
iic7: skipping sensors to avoid ipmi0 interactions
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb6 at pci0 dev 24 function 0 "AMD 17h Data Fabric" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD 17h Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD 17h Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD 17h Data Fabric" rev 0x00
pchb10 at pci0 dev 24 function 4 "AMD 17h Data Fabric" rev 0x00
pchb11 at pci0 dev 24 function 5 "AMD 17h Data Fabric" rev 0x00
pchb12 at pci0 dev 24 function 6 "AMD 17h Data Fabric" rev 0x00
pchb13 at pci0 dev 24 function 7 "AMD 17h Data Fabric" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
efifb0 at mainbus0: 1024x768, 32bpp
wsdisplay0 at efifb0 mux 1
wskbd0: connecting to wsdisplay0
wsdisplay0: screen 0-5 added (std, vt100 emulation)
enable mbufs in high memory
uhub1 at uhub0 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub"
rev 2.00/32.98 addr 2
uhub2 at uhub0 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub"
rev 2.00/32.98 addr 3
uhub3 at uhub2 port 3 configuration 1 interface 0 "ATEN International product
0x7000" rev 2.00/0.00 addr 4
uhidev0 at uhub3 port 1 configuration 1 interface 0 "ATEN International product
0x2419" rev 1.10/1.00 addr 5
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub3 port 1 configuration 1 interface 1 "ATEN International product
0x2419" rev 1.10/1.00 addr 5
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
sd3 at scsibus5 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd3: 409602MB, 512 bytes/sector, 838865577 sectors
root on sd3a (652ac2a2a9071d43.a) swap on sd3b dump on sd3b
----------------------------------------------------------------------
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/