Xen daemon fails to start after intalling xen-utils on Ubuntu Xenial 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xen (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Booted xen 4.6 dom0 and apt-get install xen-utils-4.6
ubuntu@bandera:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04
Codename: xenial
ubuntu@bandera:~$
ubuntu@bandera:~$
ubuntu@bandera:~$ uname -r
4.2.0+
During boot of xen 4.6 dom0, xen daemon fails to start.
[ OK ] Started LSB: Xenstore daemon.
Starting LSB: Xen daemons...
Starting Authenticate and Authorize Users to Run Privileged Tasks...
[ OK ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[ OK ] Started Accounts Service.
[ OK ] Started Container hypervisor based on LXC - boot time check.
[ 29.154842] random: nonblocking pool is initialized
[ OK ] Started LSB: Apache2 web server.
[FAILED] Failed to start LSB: Xen daemons.
See 'systemctl status xen.service' for details.
Starting Virtualization daemon...
Starting LSB: Wrapper to start/stop secondary xen domains...
systemctl status xen.service and journalctl -xe shows "Option xen-domid not supported for this target
root@bandera:~# systemctl status xen.service
[ 428.241986] simple_
? xen.service - LSB: Xen daemons
Loaded: loaded (/etc/init.d/xen; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2016-03-21 23:04:37 UTC; 14s ago
Docs: man:systemd-
Process: 5396 ExecStart=
Memory: 24.7M
CGroup: /system.
mq4653 /usr/lib/
Mar 21 23:04:36 bandera systemd[1]: Starting LSB: Xen daemons...
Mar 21 23:04:37 bandera xen[5396]: * Starting Xen daemons
Mar 21 23:04:37 bandera xen[5396]: Option xen-domid not supported for this target
Mar 21 23:04:37 bandera xen[5396]: ...fail!
Mar 21 23:04:37 bandera systemd[1]: xen.service: Control process exited, code=exited status =1
Mar 21 23:04:37 bandera systemd[1]: Failed to start LSB: Xen daemons.
Mar 21 23:04:37 bandera systemd[1]: xen.service: Unit entered failed state.
Mar 21 23:04:37 bandera systemd[1]: xen.service: Failed with result 'exit-code'.
root@bandera:~#
root@bandera:~# journalctl -xe
-- Subject: Unit xen.service has begun start-up
-- Defined-By: systemd
-- Support: http://
--
-- Unit xen.service has begun starting up.
Mar 21 23:46:26 bandera xen[5436]: * Starting Xen daemons
Mar 21 23:46:26 bandera xen[5436]: Option xen-domid not supported for this target
Mar 21 23:46:26 bandera xen[5436]: ...fail!
Mar 21 23:46:26 bandera systemd[1]: xen.service: Control process exited, code=exited status=1
Mar 21 23:46:26 bandera polkitd(
Mar 21 23:46:26 bandera systemd[1]: Failed to start LSB: Xen daemons.
-- Subject: Unit xen.service has failed
-- Defined-By: systemd
-- Support: http://
--
-- Unit xen.service has failed.
--
-- The result is failed.
Mar 21 23:46:26 bandera systemd[1]: xen.service: Unit entered failed state.
Mar 21 23:46:26 bandera systemd[1]: xen.service: Failed with result 'exit-code'.
Mar 21 23:46:32 bandera dhclient[5311]: DHCPDISCOVER on eth1 to 255.255.255.255
lines 1512-1534/1534 (END)
/proc/xen is properly mounted upon boot
root@bandera:~# mount
/dev/mmcblk0p2 on / type ext4 (rw,relatime,
devtmpfs on /dev type devtmpfs (rw,relatime,
sysfs on /sys type sysfs (rw,nosuid,
proc on /proc type proc (rw,nosuid,
securityfs on /sys/kernel/
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,
tmpfs on /run type tmpfs (rw,nosuid,
pfs on /run/lock type tmpfs (rw,nosuid,
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)
cgroup on /sys/fs/
pstore on /sys/fs/pstore type pstore (rw,nosuid,
cgroup on /sys/fs/
cgroup on /sys/fs/
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,
tmpfs on /run/lxcfs/
cpu on /run/lxcfs/
memory on /run/lxcfs/
hugetlb on /run/lxcfs/
name=systemd on /run/lxcfs/
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,
xenfs on /proc/xen type xenfs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,
Related xen startup scripts are there in /etc/init.d/ such as xencommons xendomains and xenstored
root@bandera:
README libvirt-guests rpcbind
acpid lvm2 rsync
apache2 lvm2-lvmetad rsyslog
apparmor lvm2-lvmpolld screen-cleanup
apport lxcfs sendsigs
atd lxd single
binfmt-support mdadm skeleton
bootmisc.sh mdadm-waitidle ssh
manager mountall-
cgproxy mountall.sh udev
checkfs.sh mountdevsubfs.sh ufw
checkroot-
checkroot.sh mountnfs-
console-setup mountnfs.sh umountnfs.sh
cron mysql umountroot
cryptdisks networking unattended-upgrades
cryptdisks-early ondemand urandom
dbus open-iscsi uuidd
ebtables plymouth virtlockd
halt plymouth-log virtlogd
hdparm postfix x11-common
hostname.sh procps xen
hwclock.sh qemu-guest-agent xen-watchdog
irqbalance qemu-kvm xencommons
kexec rc xendomains
kexec-load rc.local xendriverdomain
killprocs rcS xenstored
kmod reboot
libvirt-bin resolvconf
xl info shows
root@bandera:
host : bandera
release : 4.2.0+
version : #27 SMP PREEMPT Fri Mar 18 17:42:51 CDT 2016
machine : aarch64
nr_cpus : 1
max_cpu_id : 0
nr_nodes : 1
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 20
hw_caps : 00000000:
virt_caps :
total_memory : 16335
free_memory : 15100
sharing_
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 6
xen_extra : .0
xen_version : 4.6.0
xen_caps : xen-3.0-aarch64 xen-3.0-armv7l
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0x200000
xen_changeset : Fri Oct 16 20:25:40 2015 -0500 git:2995083-dirty
xen_commandline : \EFI\BOOT\xen console=adtuart loglvl=all noreboot acpi=force dom0_mem=1024M
cc_compiler : aarch64-
cc_compile_by : anjiandi
cc_compile_domain : qualcomm.com
cc_compile_date : Tue Mar 8 20:01:12 CST 2016
xend_config_format : 4
xl list shows dom0's name as (null)
root@bandera:~# xl list
Name ID Mem VCPUs State Time(s)
(null) 0 1024 1 r----- 35.4
root@bandera:~#
root@bandera:~#
If manually run xen-init-dom0 to set up Dom0 name, xl list will show Domain-0
root@bandera:/# ./usr/lib/
Done setting up Dom0
root@bandera:/# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1024 1 r----- 46.8
root@bandera:/#
Looking at /etc/init.
root@bandera:/# /etc/init.
It doesn't fall in the if ! `${bindir}
if ! `${bindir}
then
rm -f "$XENSTORED_
if [ -n "$XENSTORED" ] ; then
fi
# Wait for xenstored to actually come up, timing out after 30 seconds
# Exit if we timed out
if ! [ $time -lt $timeout ] ; then
fi
fi
xenstore-ls shows
root@bandera:/# ./usr/bin/
tool = ""
xenstored = ""
local = ""
domain = ""
0 = ""
domid = "0"
name = "Domain-0"
root@bandera:/#