On Thu, Nov 05, 2026 at 09:59:03AM +0100, Paul de Weerd wrote:
> On Thu, Nov 05, 2026 at 09:51:42AM +0100, Claudio Jeker wrote:
> | > --- 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
> | 
> | The error happend before. All the messages are because of a unclean
> | shutdown. So please send more context than just the last dozen line that
> | all happened in the same second.
> 
> Here's all the lines from before this specific instance of the exit:
> 
> [root@despair] # vmd -dvvvvv 2>&1 | ts
> Oct 31 21:26:37 vmd: startup
> Oct 31 21:26:37 vmd: psp_setup: failed to open /dev/psp
> Oct 31 21:26:37 vmd: vm_register: registering vm 1
> Oct 31 21:26:37 vmd: psp_setup: failed to open /dev/psp                       
>                                                                               
>            Sat31 [765/1785]
> Oct 31 21:26:37 vmd: vm_register: registering vm 1
> Oct 31 21:26:37 vmd: /etc/vm.conf:7: vm "undeadly" registered (disabled)
> Oct 31 21:26:37 vmd: vm_register: registering vm 2
> Oct 31 21:26:37 vmd: /etc/vm.conf:15: vm "openbsd" registered (enabled)
> Oct 31 21:26:37 vmd: vm_register: registering vm 3
> Oct 31 21:26:37 vmd: /etc/vm.conf:23: vm "debian" registered (enabled)
> Oct 31 21:26:37 vmd: /etc/vm.conf:28: switch "vmmswitch" registered
> Oct 31 21:26:37 vmd: vmd_configure: setting staggered start configuration to 
> parallelism: 8 and delay: 30
> Oct 31 21:26:37 vmd: vmd_configure: starting vms in staggered fashion
> Oct 31 21:26:37 vmd: start_vm_batch: starting batch of 8 vms
> Oct 31 21:26:37 vmd: start_vm_batch: not starting vm undeadly (disabled)
> Oct 31 21:26:37 vmd: vm_opentty: vm openbsd tty /dev/ttypl uid 0 gid 4 mode 
> 620
> Oct 31 21:26:37 vmd: vm_opentty: vm debian tty /dev/ttypm uid 0 gid 4 mode 620
> Oct 31 21:26:37 vmd: start_vm_batch: done starting vms
> Oct 31 21:26:37 agentx: config_getconfig: agentx retrieving config
> Oct 31 21:26:37 priv: config_getconfig: priv retrieving config
> Oct 31 21:26:37 control: config_getconfig: control retrieving config
> Oct 31 21:26:37 vmm: config_getconfig: vmm retrieving config
> Oct 31 21:26:37 vmm: vm_register: registering vm 2
> Oct 31 21:26:37 vmm: vm_register: registering vm 3
> Oct 31 21:26:37 vmd: vm_priv_ifconfig: interface tap0 description 
> vm2-if0-openbsd
> Oct 31 21:26:37 vmd: vm_priv_ifconfig: switch "vmmswitch" interface veb0 add 
> tap0
> Oct 31 21:26:37 vmd: started openbsd (vm 2) successfully, tty /dev/ttypl
> Oct 31 21:26:37 vm/openbsd: loadfile_bios: loaded BIOS image
> Oct 31 21:26:37 vm/openbsd: mmio_dev_add: added mmio handler for range 
> [0xf0000000 - 0xffbfffff]
> Oct 31 21:26:37 vm/openbsd: mmio_dev_add: added mmio handler for range 
> [0xfec00000 - 0xfec0ffff]
> Oct 31 21:26:37 vm/openbsd: mmio_dev_add: added mmio handler for range 
> [0xfee00000 - 0xfee00fff]
> Oct 31 21:26:37 vm/openbsd: acpi_init: initializing acpi tables
> Oct 31 21:26:37 vm/openbsd: acpi_init: DSDT loaded successfully (523 bytes)
> Oct 31 21:26:37 vm/openbsd: acpi_create_facs: writing FACS to efff4000
> Oct 31 21:26:37 vm/openbsd: acpi_create_fadt: creating FADT
> Oct 31 21:26:37 vm/openbsd: acpi_create_fadt: FADT size 268
> Oct 31 21:26:37 vm/openbsd: acpi_create_fadt: DSDT pointer 0xefff3000 / 0x0
> Oct 31 21:26:37 vm/openbsd: acpi_create_fadt: writing FADT to efff2000
> Oct 31 21:26:37 vm/openbsd: acpi_create_fadt: FADT creation complete
> Oct 31 21:26:37 vm/openbsd: acpi_init: FADT created pointing to DSDT
> Oct 31 21:26:37 vm/openbsd: acpi_create_madt: creating MADT
> Oct 31 21:26:37 vm/openbsd: acpi_create_madt: MADT size 64
> Oct 31 21:26:37 vm/openbsd: acpi_create_madt: computed MADT checksum 0x70
> Oct 31 21:26:37 vm/openbsd: acpi_create_madt: writing MADT to efff1000
> Oct 31 21:26:37 vm/openbsd: acpi_create_madt: MADT creation complete
> Oct 31 21:26:37 vm/openbsd: acpi_create_xsdt: creating XSDT
> Oct 31 21:26:37 vm/openbsd: acpi_create_xsdt: XSDT size 52
> Oct 31 21:26:37 vm/openbsd: acpi_create_xsdt: writing XSDT to efff0000
> Oct 31 21:26:37 vm/openbsd: acpi_create_xsdt: XSDT creation complete
> Oct 31 21:26:37 vm/openbsd: acpi_create_rsdp: creating RSDP
> Oct 31 21:26:37 vm/openbsd: acpi_create_xsdt: XSDT creation complete          
>                                                                               
>               Sat31 [720/1785]
> Oct 31 21:26:37 vm/openbsd: acpi_create_rsdp: creating RSDP
> Oct 31 21:26:37 vm/openbsd: acpi_create_rsdp: writing RSDP to 9d000
> Oct 31 21:26:37 vm/openbsd: acpi_create_rsdp: RSDP creation complete
> Oct 31 21:26:37 vm/openbsd: acpi_init: writing RSDP pointer 0x9d00 -> 0x40e
> Oct 31 21:26:37 vm/openbsd: pic_set_elcr: setting level triggered mode for 
> irq 3
> Oct 31 21:26:37 vm/openbsd: pic_set_elcr: setting level triggered mode for 
> irq 5
> Oct 31 21:26:37 vmd: vm_priv_ifconfig: interface tap1 description 
> vm3-if0-debian
> Oct 31 21:26:37 vmd: vm_priv_ifconfig: switch "vmmswitch" interface veb0 add 
> tap1
> Oct 31 21:26:37 vmd: started debian (vm 3) successfully, tty /dev/ttypm
> Oct 31 21:26:37 vm/debian: loadfile_bios: loaded BIOS image
> Oct 31 21:26:37 vm/debian: mmio_dev_add: added mmio handler for range 
> [0xf0000000 - 0xffbfffff]
> Oct 31 21:26:37 vm/debian: mmio_dev_add: added mmio handler for range 
> [0xfec00000 - 0xfec0ffff]
> Oct 31 21:26:37 vm/debian: mmio_dev_add: added mmio handler for range 
> [0xfee00000 - 0xfee00fff]
> Oct 31 21:26:37 vm/debian: acpi_init: initializing acpi tables
> Oct 31 21:26:37 vm/debian: acpi_init: DSDT loaded successfully (523 bytes)
> Oct 31 21:26:37 vm/debian: acpi_create_facs: writing FACS to efff4000
> Oct 31 21:26:37 vm/debian: acpi_create_fadt: creating FADT
> Oct 31 21:26:37 vm/debian: acpi_create_fadt: FADT size 268
> Oct 31 21:26:37 vm/debian: acpi_create_fadt: DSDT pointer 0xefff3000 / 0x0
> Oct 31 21:26:37 vm/debian: acpi_create_fadt: writing FADT to efff2000
> Oct 31 21:26:37 vm/debian: acpi_create_fadt: FADT creation complete
> Oct 31 21:26:37 vm/debian: acpi_init: FADT created pointing to DSDT
> Oct 31 21:26:37 vm/debian: acpi_create_madt: creating MADT
> Oct 31 21:26:37 vm/debian: acpi_create_madt: MADT size 72
> Oct 31 21:26:37 vm/debian: acpi_create_madt: computed MADT checksum 0x5c
> Oct 31 21:26:37 vm/debian: acpi_create_madt: writing MADT to efff1000
> Oct 31 21:26:37 vm/debian: acpi_create_madt: MADT creation complete
> Oct 31 21:26:37 vm/debian: acpi_create_xsdt: creating XSDT
> Oct 31 21:26:37 vm/debian: acpi_create_xsdt: XSDT size 52
> Oct 31 21:26:37 vm/debian: acpi_create_xsdt: writing XSDT to efff0000
> Oct 31 21:26:37 vm/debian: acpi_create_xsdt: XSDT creation complete
> Oct 31 21:26:37 vm/debian: acpi_create_rsdp: creating RSDP
> Oct 31 21:26:37 vm/debian: acpi_create_rsdp: writing RSDP to 9d000
> Oct 31 21:26:37 vm/debian: acpi_create_rsdp: RSDP creation complete
> Oct 31 21:26:37 vm/debian: acpi_init: writing RSDP pointer 0x9d00 -> 0x40e
> Oct 31 21:26:37 vm/debian: pic_set_elcr: setting level triggered mode for irq 
> 3
> Oct 31 21:26:37 vm/debian: pic_set_elcr: setting level triggered mode for irq 
> 5
> Oct 31 21:26:37 vm/openbsd: virtio_init: vm "openbsd" vio0 lladdr 
> fe:e1:bb:d1:ec:a3
> Oct 31 21:26:37 vm/openbsd: pic_set_elcr: setting level triggered mode for 
> irq 6
> Oct 31 21:26:37 vm/debian: virtio_init: vm "debian" vio0 lladdr 
> fe:e1:bb:d1:fa:01
> Oct 31 21:26:37 vm/openbsd: openbsd: launching vioblk0
> Oct 31 21:26:37 vm/debian: pic_set_elcr: setting level triggered mode for irq 
> 6
> Oct 31 21:26:37 vm/debian: debian: launching vioblk0
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: sending 'd' type device struct
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: sending vm message for 
> 'openbsd'
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: sending 'd' type device struct
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: sending vm message for 
> 'openbsd'                                                                     
>                          Sat31 [675/1785]
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: sending 'd' type device struct
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: sending vm message for 'debian'
> Oct 31 21:26:37 vm/debian/vioblk: vioblk_main: got viblk dev. num disk fds = 
> 1, sync fd = 16, async fd = 18, capacity = 0 seg_max = 126, vm fd = 3
> Oct 31 21:26:37 vm/openbsd/vioblk: vioblk_main: got viblk dev. num disk fds = 
> 1, sync fd = 16, async fd = 18, capacity = 0 seg_max = 126, vm fd = 3
> Oct 31 21:26:37 vm/debian/vioblk0: vioblk_main: initialized vioblk0 with raw 
> image (capacity=33554432)
> Oct 31 21:26:37 vm/openbsd/vioblk0: vioblk_main: initialized vioblk0 with raw 
> image (capacity=2516582400)
> Oct 31 21:26:37 vm/debian/vioblk0: vioblk_main: wiring in async vm event 
> handler (fd=18)
> Oct 31 21:26:37 vm/debian/vioblk0: vm_device_pipe: initializing 'd' device 
> pipe (fd=18)
> Oct 31 21:26:37 vm/debian/vioblk0: vioblk_main: wiring in sync channel 
> handler (fd=16)
> Oct 31 21:26:37 vm/debian/vioblk0: vioblk_main: telling vm debian device is 
> ready
> Oct 31 21:26:37 vm/openbsd/vioblk0: vioblk_main: wiring in async vm event 
> handler (fd=18)
> Oct 31 21:26:37 vm/openbsd/vioblk0: vm_device_pipe: initializing 'd' device 
> pipe (fd=18)
> Oct 31 21:26:37 vm/debian/vioblk0: vioblk_main: sending heartbeat
> Oct 31 21:26:37 vm/openbsd/vioblk0: vioblk_main: wiring in sync channel 
> handler (fd=16)
> Oct 31 21:26:37 vm/openbsd/vioblk0: vioblk_main: telling vm openbsd device is 
> ready
> Oct 31 21:26:37 vm/openbsd/vioblk0: vioblk_main: sending heartbeat
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: device reports ready via sync 
> channel
> Oct 31 21:26:37 vm/debian: vm_device_pipe: initializing 'd' device pipe 
> (fd=17)
> Oct 31 21:26:37 vm/debian: debian: launching vionet0
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: sending 'n' type device struct
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: sending vm message for 'debian'
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: device reports ready via sync 
> channel
> Oct 31 21:26:37 vm/openbsd: vm_device_pipe: initializing 'd' device pipe 
> (fd=17)
> Oct 31 21:26:37 vm/openbsd: openbsd: launching vionet0
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: sending 'n' type device struct
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: sending vm message for 
> 'openbsd'
> Oct 31 21:26:37 vm/debian/vionet: vionet_main: got vionet dev. tap fd = 8, 
> syncfd = 16, asyncfd = 19, vm fd = 3
> Oct 31 21:26:37 vm/openbsd/vionet: vionet_main: got vionet dev. tap fd = 8, 
> syncfd = 16, asyncfd = 19, vm fd = 3
> Oct 31 21:26:37 vm/debian/vionet0: vionet_main: wiring in async vm event 
> handler (fd=19)
> Oct 31 21:26:37 vm/debian/vionet0: vm_device_pipe: initializing 'n' device 
> pipe (fd=19)
> Oct 31 21:26:37 vm/debian/vionet0: vionet_main: wiring in sync channel 
> handler (fd=16)
> Oct 31 21:26:37 vm/debian/vionet0: vionet_main: telling vm debian device is 
> ready
> Oct 31 21:26:37 vm/debian/vionet0: vionet_main: sending async ready message
> Oct 31 21:26:37 vm/debian: virtio_dev_launch: device reports ready via sync 
> channel
> Oct 31 21:26:37 vm/debian: vm_device_pipe: initializing 'n' device pipe 
> (fd=18)
> Oct 31 21:26:37 vm/debian: pic_set_elcr: setting level triggered mode for irq 
> 7
> Oct 31 21:26:37 vm/debian: run_vm: starting 2 vcpu thread(s) for vm debian
> Oct 31 21:26:37 vm/debian: vcpu_reset: resetting vcpu 0
> Oct 31 21:26:37 vm/debian: vcpu_reset: resetting vcpu 1
> Oct 31 21:26:37 vm/openbsd/vionet0: vionet_main: wiring in async vm event 
> handler (fd=19)
> Oct 31 21:26:37 vm/openbsd/vionet0: vm_device_pipe: initializing 'n' device 
> pipe (fd=19)
> Oct 31 21:26:37 vm/openbsd/vionet0: vionet_main: wiring in sync channel 
> handler (fd=16)
> Oct 31 21:26:37 vm/openbsd/vionet0: vionet_main: telling vm openbsd device is 
> ready
> Oct 31 21:26:37 vm/openbsd/vionet0: vionet_main: sending async ready message
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: device reports ready via sync 
> channel
> Oct 31 21:26:37 vm/openbsd: vm_device_pipe: initializing 'n' device pipe 
> (fd=18)
> Oct 31 21:26:37 vm/openbsd: virtio_dev_launch: device reports ready via sync 
> channel                                                                       
>                Sat31 [630/1785]
> Oct 31 21:26:37 vm/openbsd: vm_device_pipe: initializing 'n' device pipe 
> (fd=18)
> Oct 31 21:26:37 vm/openbsd: pic_set_elcr: setting level triggered mode for 
> irq 7
> Oct 31 21:26:37 vm/openbsd: run_vm: starting 1 vcpu thread(s) for vm openbsd
> Oct 31 21:26:37 vm/openbsd: vcpu_reset: resetting vcpu 0
> Oct 31 21:26:37 vm/debian: run_vm: waiting on events for VM debian
> Oct 31 21:26:37 vm/debian: vcpu_exit_fw_cfg: selector 0x0000
> Oct 31 21:26:37 vm/debian: debian: received tap addr fe:e1:ba:de:a4:70 for 
> nic 0
> Oct 31 21:26:37 vm/debian: vcpu_exit_fw_cfg: selector 0x0001
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0019
> Oct 31 21:26:37 vm/debian: fw_cfg_file_dir: file directory with 4 files
> Oct 31 21:26:37 vm/debian:       36B 0020 etc/acpi/rsdp
> Oct 31 21:26:37 vm/openbsd: run_vm: waiting on events for VM openbsd
> Oct 31 21:26:37 vm/debian:      128B 0021 etc/table-loader
> Oct 31 21:26:37 vm/debian:      120B 0022 etc/e820
> Oct 31 21:26:37 vm/debian:        4B 0023 etc/screen-and-debug
> Oct 31 21:26:37 vm/debian: vcpu_exit_fw_cfg: selector 0x0022
> Oct 31 21:26:37 vm/debian: handle_dev_msg: device reports ready
> Oct 31 21:26:37 vm/debian: fw_cfg_select_file: accessing file etc/e820
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x000d
> Oct 31 21:26:37 vm/debian: fw_cfg_select: unhandled selector d
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x000f
> Oct 31 21:26:37 vm/debian: handle_dev_msg: device reports ready
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x8000
> Oct 31 21:26:37 vm/debian: fw_cfg_select: unhandled selector 8000
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x8001
> Oct 31 21:26:37 vm/debian: fw_cfg_select: unhandled selector 8001
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0019
> Oct 31 21:26:37 vm/debian: fw_cfg_file_dir: file directory with 4 files
> Oct 31 21:26:37 vm/debian:       36B 0020 etc/acpi/rsdp
> Oct 31 21:26:37 vm/debian:      128B 0021 etc/table-loader
> Oct 31 21:26:37 vm/debian:      120B 0022 etc/e820
> Oct 31 21:26:37 vm/debian:        4B 0023 etc/screen-and-debug
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0004
> Oct 31 21:26:37 vm/debian: i8259_write_datareg: master pic, reset IRQ vector 
> to 0x8
> Oct 31 21:26:37 vm/debian: i8259_write_datareg: slave pic, reset IRQ vector 
> to 0x70
> Oct 31 21:26:37 vm/debian/vionet0: dev_dispatch_vm: set hostmac
> Oct 31 21:26:37 vm/openbsd: openbsd: received tap addr fe:e1:ba:dd:04:1a for 
> nic 0
> Oct 31 21:26:37 vm/openbsd: vcpu_exit_fw_cfg: selector 0x0000
> Oct 31 21:26:37 vm/openbsd: handle_dev_msg: device reports ready
> Oct 31 21:26:37 vm/openbsd: vcpu_exit_fw_cfg: selector 0x0001
> Oct 31 21:26:37 vm/openbsd: handle_dev_msg: device reports ready
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0019
> Oct 31 21:26:37 vm/openbsd: fw_cfg_file_dir: file directory with 4 files
> Oct 31 21:26:37 vm/openbsd:       36B 0020 etc/acpi/rsdp
> Oct 31 21:26:37 vm/openbsd:      128B 0021 etc/table-loader
> Oct 31 21:26:37 vm/openbsd:      120B 0022 etc/e820
> Oct 31 21:26:37 vm/openbsd:      128B 0021 etc/table-loader                   
>                                                                               
>               Sat31 [585/1785]
> Oct 31 21:26:37 vm/openbsd:      120B 0022 etc/e820
> Oct 31 21:26:37 vm/openbsd:        4B 0023 etc/screen-and-debug
> Oct 31 21:26:37 vm/openbsd: vcpu_exit_fw_cfg: selector 0x0022
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select_file: accessing file etc/e820
> Oct 31 21:26:37 vm/openbsd/vionet0: dev_dispatch_vm: set hostmac
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x000d
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select: unhandled selector d
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x000f
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x8000
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select: unhandled selector 8000
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x8001
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select: unhandled selector 8001
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0019
> Oct 31 21:26:37 vm/openbsd: fw_cfg_file_dir: file directory with 4 files
> Oct 31 21:26:37 vm/openbsd:       36B 0020 etc/acpi/rsdp
> Oct 31 21:26:37 vm/openbsd:      128B 0021 etc/table-loader
> Oct 31 21:26:37 vm/openbsd:      120B 0022 etc/e820
> Oct 31 21:26:37 vm/openbsd:        4B 0023 etc/screen-and-debug
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0004
> Oct 31 21:26:37 vm/openbsd: i8259_write_datareg: master pic, reset IRQ vector 
> to 0x8
> Oct 31 21:26:37 vm/openbsd: i8259_write_datareg: slave pic, reset IRQ vector 
> to 0x70
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x000f
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0005
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0005
> Oct 31 21:26:37 vm/debian: vcpu_reset: resetting vcpu 1
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0021
> Oct 31 21:26:37 vm/debian: fw_cfg_select_file: accessing file etc/table-loader
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0020
> Oct 31 21:26:37 vm/debian: fw_cfg_select_file: accessing file etc/acpi/rsdp
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x000f
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0005
> Oct 31 21:26:37 vm/debian: fw_cfg_handle_dma: selector 0x0023
> Oct 31 21:26:37 vm/debian: fw_cfg_select_file: accessing file 
> etc/screen-and-debug
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0005
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0021
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select_file: accessing file 
> etc/table-loader
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0020
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select_file: accessing file etc/acpi/rsdp
> Oct 31 21:26:37 vm/openbsd: fw_cfg_handle_dma: selector 0x0023
> Oct 31 21:26:37 vm/openbsd: fw_cfg_select_file: accessing file 
> etc/screen-and-debug
> Oct 31 21:26:37 vm/debian: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:37 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:38 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:38 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:43 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:43 vm/openbsd: i8259_write_datareg: master pic, reset IRQ vector 
> to 0x20
> Oct 31 21:26:43 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200       
>                                                                               
>               Mon02 [540/1785]
> Oct 31 21:26:43 vm/openbsd: i8259_write_datareg: master pic, reset IRQ vector 
> to 0x20
> Oct 31 21:26:43 vm/openbsd: i8259_write_datareg: slave pic, reset IRQ vector 
> to 0x28
> Oct 31 21:26:45 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:46 vm/debian: i8259_write_datareg: master pic, reset IRQ vector 
> to 0x30
> Oct 31 21:26:46 vm/debian: i8259_write_datareg: slave pic, reset IRQ vector 
> to 0x38
> Oct 31 21:26:46 vm/debian: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:46 vm/debian: i8259_write_datareg: master pic, reset IRQ vector 
> to 0x30
> Oct 31 21:26:46 vm/debian: i8259_write_datareg: master pic: aeoi mode set
> Oct 31 21:26:46 vm/debian: i8259_write_datareg: slave pic, reset IRQ vector 
> to 0x38
> Oct 31 21:26:46 vm/debian: i8259_write_datareg: master pic: aeoi mode set
> Oct 31 21:26:46 vm/debian: vcpu_reset: resetting vcpu 1
> Oct 31 21:26:46 vmd: vmd_dispatch_vmm: running vm: 2, vm_state: 0x1
> Oct 31 21:26:46 vmd: vmd_dispatch_vmm: running vm: 3, vm_state: 0x1
> Oct 31 21:26:46 vmd: vmd_dispatch_vmm: vm: 1, vm_state: 0x2
> Oct 31 21:26:47 vm/debian: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:47 vm/debian: vcpu_process_com_data: guest reading com1 when not 
> ready
> Oct 31 21:26:47 vm/debian: vcpu_process_com_data: guest reading com1 when not 
> ready
> Oct 31 21:26:47 vm/debian: i8259_write_datareg: master pic: aeoi mode set
> Oct 31 21:26:47 vm/debian: vcpu_process_com_data: guest reading com1 when not 
> ready
> Oct 31 21:26:47 vm/debian: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:48 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:26:58 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Oct 31 21:27:01 vm/openbsd: vcpu_process_com_lcr: set baudrate = 115200
> Nov 01 04:37:03 vm/debian: rtc_fire1: RTC clock drift (6s), requesting guest 
> resync
> Nov 01 09:52:59 vmd: vmd_dispatch_vmm: running vm: 2, vm_state: 0x1
> Nov 01 09:52:59 vmd: vmd_dispatch_vmm: running vm: 3, vm_state: 0x1
> Nov 01 09:52:59 vmd: vmd_dispatch_vmm: vm: 1, vm_state: 0x2
> Nov 01 20:12:46 vmd: vmd_dispatch_vmm: running vm: 2, vm_state: 0x1
> Nov 01 20:12:46 vmd: vmd_dispatch_vmm: running vm: 3, vm_state: 0x1
> Nov 01 20:12:46 vmd: vmd_dispatch_vmm: vm: 1, vm_state: 0x2
> 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
> 

Someone needs to fix the vmm_sighdlr to actually print the exit reason of
the process that exited. Something like the diff below may do the trick.

-- 
:wq Claudio

Index: vmm.c
===================================================================
RCS file: /cvs/src/usr.sbin/vmd/vmm.c,v
diff -u -p -r1.143 vmm.c
--- vmm.c       19 Sep 2026 17:21:52 -0000      1.143
+++ vmm.c       5 Nov 2026 09:20:13 -0000
@@ -326,7 +326,6 @@ vmm_sighdlr(int sig, short event, void *
        struct vmop_result vmr;
        struct vmd_vm *vm;
 
-       log_debug("%s: handling signal %d", __func__, sig);
        switch (sig) {
        case SIGCHLD:
                do {
@@ -346,20 +345,24 @@ vmm_sighdlr(int sig, short event, void *
                                        continue;
                                }
 
-                               if (WIFEXITED(status))
+                               if (WIFEXITED(status)) {
                                        ret = WEXITSTATUS(status);
-                               else if (WIFSIGNALED(status))
+                                       log_debug("vm %s (id %d) exited; "
+                                           "status %d", vm->vm_params.vmc_name,
+                                           vm->vm_vmid,  ret);
+                               } else if (WIFSIGNALED(status)) {
                                        ret = EIO;
+                                       log_warnx("vm %s (id %d) terminated; "
+                                           "signal %d", vm->vm_params.vmc_name,
+                                           vm->vm_vmid,  WTERMSIG(status));
+
+                               }
 
                                /* Don't reboot on pending shutdown */
                                if (ret == EAGAIN &&
                                    (vm->vm_state & VM_STATE_SHUTDOWN))
                                        ret = 0;
 
-                               log_debug("%s: vm %s exited (id %d)",
-                                   __func__, vm->vm_params.vmc_name,
-                                   vm->vm_vmid);
-
                                memset(&vmr, 0, sizeof(vmr));
                                vmr.vmr_result = ret;
                                vmr.vmr_id = vm->vm_vmid;
@@ -376,7 +379,7 @@ vmm_sighdlr(int sig, short event, void *
                } while (pid > 0 || (pid == -1 && errno == EINTR));
                break;
        default:
-               fatalx("unexpected signal");
+               fatalx("unexpected signal %d", sig);
        }
 }
 

Reply via email to