Mailing List Archive

Xen-4.15.0 + Debian10 -> systemd -> /run/xen/qemu-dom0.pid; please update the unit file accordingly
Hi,

on Debian GNU/Linux 10 (buster) with Xen-4.15.0 systemd throws out a error message:

from dmesg output:

---snip--8<---

systemd[1]: /lib/systemd/system/xen-qemu-dom0-disk-backend.service:10: PIDFile= references path below legacy directory /var/run/, updating /var/run/xe
n/qemu-dom0.pid ? /run/xen/qemu-dom0.pid; please update the unit file accordingly.

---snip--8<---


This patch should fix the error message...

--- /lib/systemd/system/xen-qemu-dom0-disk-backend.service 2021-04-23 13:29:37.124715108 +0200
+++ /lib/systemd/system/xen-qemu-dom0-disk-backend.service.patched 2021-04-23 13:26:51.351156801 +0200
@@ -8,14 +8,14 @@ ConditionPathExists=/proc/xen/capabiliti

 [Service]
 Type=simple
-PIDFile=/var/run/xen/qemu-dom0.pid
+PIDFile=/run/xen/qemu-dom0.pid
 ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
 ExecStartPre=/bin/mkdir -p /var/run/xen
 ExecStart=/usr/lib/xen/bin/qemu-system-i386 -xen-domid 0 \
        -xen-attach -name dom0 -nographic -M xenpv -daemonize \
        -monitor /dev/null -serial /dev/null -parallel /dev/null \
        -nodefaults -no-user-config \
-       -pidfile /var/run/xen/qemu-dom0.pid
+       -pidfile /run/xen/qemu-dom0.pid

 [Install]
 WantedBy=multi-user.target


---------------------------------------------------------------------------------------------

Machine Specs:

uname -a
Linux nanadag 5.10.9 #5.10.9 SMP Thu Feb 11 17:45:51 CET 2021 x86_64 GNU/Linux

sudo xl info
host                   : foohost
release                : 5.10.9
version                : #5.10.9 SMP Thu Feb 11 17:45:51 CET 2021
machine                : x86_64
nr_cpus                : 4
max_cpu_id             : 3
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 1
cpu_mhz                : 2397.615
hw_caps                : bfebfbff:0000e3bd:20100800:00000001:00000000:00000000:00000000:00000000
virt_caps              : pv hvm shadow
total_memory           : 7101
free_memory            : 128
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 15
xen_extra              : .0
xen_version            : 4.15.0
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit2
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          :
xen_commandline        : placeholder cpufreq=xen loglvl=all guest_loglvl=all com1=57600,8n1, console=com1,vga, cpuid_mask_xsave_eax=0, vpmu=1,dom0_mem=2048M,max:2048M dom0_max_vcpus=4 dom0_vcpus_pin,gnttab_max_frames=256
cc_compiler            : gcc (Debian 8.3.0-6) 8.3.0
cc_compile_by          : foouser
cc_compile_domain      : foodomain
cc_compile_date        : Fri Apr 23 10:26:44 CEST 2021
build_id               : 4fb57a3cecf30f5c6978603e753a5734a088ffa8
xend_config_format     : 4