Index | Thread | Search

From:
Alexander Bluhm <bluhm@openbsd.org>
Subject:
Re: fix reboot of alpine linux guests in vmd
To:
Dave Voutila <dv@sisu.io>
Cc:
tech@openbsd.org, mlarkin@openbsd.org
Date:
Tue, 13 Jan 2026 18:57:04 +0100

Download raw body.

Thread
On Tue, Jan 13, 2026 at 10:35:02AM -0500, Dave Voutila wrote:
> Alexander Bluhm <alexander.bluhm@gmx.net> writes:
> Hmm, this looks like it terminates instead?
> 
> Did it terminate like this without the diff?

Without the diff my Linux VM also terminates.

lt63:~# reboot
lt63:~#  * Stopping tcpbench ... [ ok ]
 * Stopping sshd ... [ ok ]
 * Saving random number generator seed ... * Seeding 256 bits and crediting
 * Saving 256 bits of creditable seed for next boot
 [ ok ]
 * Stopping NTP Server ... [ ok ]
 * Stopping iperf3 ... [ ok ]
 * Stopping busybox crond ... [ ok ]
 * Stopping busybox syslog ... [ ok ]
 * Unmounting loop devices
 * Unmounting filesystems
 *   Unmounting /tmp ... [ ok ]
 *   Unmounting /boot ... [ ok ]
 * Deactivating swap devices ... [ ok ]
 * Setting hardware clock using the system clock [UTC] ... [ ok ]
 * Stopping busybox mdev ... [ ok ]
 * Terminating remaining processes ...[   94.916160] reboot: Restarting system

vm/lt63: vcpu_process_com_data: guest reading com1 when not ready
vm/lt63: virtio_shutdown: waiting on device pid 74497
vm/lt63: virtio_dispatch_dev: pipe dead (EV_READ)
vm/lt63/vionet0: tx_run_loop: exiting (0)
vm/lt63/vionet0: rx_run_loop: exiting (0)
vm/lt63/vionet1: rx_run_loop: exiting (0)
vm/lt63/vionet1: tx_run_loop: exiting (0)
vm/lt63: virtio_shutdown: device for pid 74497 is stopped
vm/lt63: virtio_shutdown: waiting on device pid 81707
vm/lt63: virtio_shutdown: device for pid 81707 is stopped
vm/lt63: virtio_shutdown: waiting on device pid 29799
vm/lt63: virtio_shutdown: device for pid 29799 is stopped
vmm: vmm_sighdlr: handling signal 20
vmm: vmm_sighdlr: terminated vm lt63 (id 4)
vmm: vm_remove: vmm vmm_sighdlr removing vm 4 from running config
vmm: vm_stop: vmm vmm_sighdlr stopping vm 4
vmd: vm_stop: vmd vmd_dispatch_vmm stopping vm 4

> How much memory do you assign to this guest? I strongly suspect the
> culprit is still how we define memory regions and my diff only fixes it
> for specific sizes.

vm "lt63" {
        owner lt63:vmm
        boot device disk
        cdrom "/home/alpine-virt-3.20.2-x86_64.iso"
        disk "/home/lt63/disk.qcow2"
        memory 4G
        interface tap3 {
                lladdr fe:e1:bb:d1:07:2c
                switch "testnet"
        }
        interface tap9 { switch "netlinkright" }
}

On disk a Alpine Linux 3.22.2 is installed.

bluhm