rc-service xenqemu status * status: stopped
gpu5:/var/log# uname -a
Linux gpu5.int.autonlab.org 5.15.94-0-lts #1-Alpine SMP Thu, 16 Feb 2023 21:49:19 +0000 x86_64 Linux
gpu5:/var/log# apk info|grep xen
xen-libs
xen
xen-hypervisor
xen-qemu
xen-doc
gpu5:/var/log# rc-status|grep xen
xenstored [ started ]
xenconsoled [ crashed ]
xenqemu [ crashed ]
I am having a hard time with Xen Dom0 fresh installation. The only thing that I see is this in the log files
Feb 20 18:32:13 gpu5 daemon.info init: process '/sbin/getty -L 0 hvc0 vt100' (pid 5648) exited. Scheduling for restart
Sure enough a working Dom0 has this
xen1:/dev# ls -l /dev/hv*
crw--w---- 1 root root 229, 0 Feb 20 15:30 /dev/hvc0
crw-rw---- 1 root root 229, 1 Feb 20 15:30 /dev/hvc1
crw-rw---- 1 root root 229, 2 Feb 20 15:30 /dev/hvc2
crw-rw---- 1 root root 229, 3 Feb 20 15:30 /dev/hvc3
crw-rw---- 1 root root 229, 4 Feb 20 15:30 /dev/hvc4
crw-rw---- 1 root root 229, 5 Feb 20 15:30 /dev/hvc5
crw-rw---- 1 root root 229, 6 Feb 20 15:30 /dev/hvc6
crw-rw---- 1 root root 229, 7 Feb 20 15:30 /dev/hvc7
while the one which keeps crashing on the boot has this
gpu5:/dev# ls -l /dev/hv*
ls: /dev/hv*: No such file or directory
So it indeed looks like mkinitrd didn't not create '/dev/hvc0' console device inside initrd.
I was able to fix missing hvc terminal device by editing '/etc/inittab' file. This exposed by real problem which is 'xenstored' crash. Please see below
Feb 20 21:12:38 gpu5 user.debug : Will stop /usr/lib/xen/bin/qemu-system-i386
Feb 20 21:12:38 gpu5 daemon.err /etc/init.d/xenqemu[15539]: start-stop-daemon: no matching processes found
Feb 20 21:12:38 gpu5 user.debug : Will stop /usr/sbin/xenconsoled
Feb 20 21:12:38 gpu5 user.debug : Will stop PID 5489
Feb 20 21:12:38 gpu5 daemon.err /etc/init.d/xenconsoled[15561]: start-stop-daemon: no matching processes found
Feb 20 21:12:38 gpu5 user.debug : Will stop /usr/sbin/sshd
Feb 20 21:12:38 gpu5 user.debug : Will stop PID 4598
Feb 20 21:12:38 gpu5 user.debug : Sending signal 15 to PID 4598
Feb 20 21:12:38 gpu5 auth.info sshd[4598]: Received signal 15; terminating.
Feb 20 21:12:38 gpu5 user.debug : Will stop /usr/sbin/ntpd
Feb 20 21:12:38 gpu5 user.debug : Will stop PID 4557
Feb 20 21:12:38 gpu5 user.debug : Sending signal 15 to PID 4557
Feb 20 21:12:38 gpu5 daemon.warn /etc/init.d/xenstored[15665]: Xenstore can not be stopped
Feb 20 21:12:38 gpu5 user.debug : Will stop /usr/sbin/crond
Feb 20 21:12:38 gpu5 user.debug : Will stop PID 4498