[Pkg-xen-devel] Bug#903494: Bug#903494: xen-utils-common: xendomains script not working properly

Hans van Kranenburg hans at knorrie.org
Sun Feb 3 18:53:25 GMT 2019


tags 903494 + moreinfo
thanks

Hi Stefan,

On 7/10/18 8:23 PM, Stefan Kadow wrote:
> Package: xen-utils-common
> Version: 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
> Severity: normal
> 
> The xendomains script does not work properly on Xen dom0 shutdown and
> reboot.
> 
> When restarting or shutting down with XENDOMAINS_RESTORE=false and
> XENDOMAINS_SAVE="" the DomUs are destroyed and not shut down properly.

Can you always reproduce this? Can you share logging, e.g. from
/var/log/syslog, where messages should be about domUs getting shut down.

> Although the xendomains script works correctly if you stop it manually
> with "systemctl stop xendomains.service".

Ok, so it might be something in the shutdown sequence. Do your running
domUs depend on another service that could be shut down too early? E.g.
here is an example of such a problem:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826871

Again, can you show logging from the shutdown sequence?

> When configuring with saving/hibernating the domUs, the behaviour is
> more weird. Every time I change something in an xl.cfg script, I have to
> stop and start the xendomains.service at least once manually before
> it works correctly.

Can you be more specific? What kind of "somethings" are you changing?

> -- System Information:
> Debian Release: 9.4
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.9.0-6-amd64 (SMP w/8 CPU cores)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages xen-utils-common depends on:
> ii  lsb-base        9.20161125
> ii  python          2.7.13-2
> ii  ucf             3.0036
> ii  udev            232-25+deb9u3
> ii  xenstore-utils  4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
> 
> xen-utils-common recommends no packages.
> 
> xen-utils-common suggests no packages.
> 
> -- Configuration Files:
> /etc/default/xendomains changed:
> XENDOMAINS_SAVE=/var/lib/xen/save
> XENDOMAINS_RESTORE=true
> XENDOMAINS_AUTO=/etc/xen/auto
> XENDOMAINS_STOP_MAXWAIT=300
> 
> /etc/xen/xend-config.sxp changed:
> (vif-script vif-bridge)
> (dom0-min-mem 2048)
> (enable-dom0-ballooning no)
> (total_available_memory 0) 
> (dom0-cpus 8)
> (vncpasswd '')

By the way: this xend-related configuration file is not used by
anything, it's a leftover from the past that will be removed by the
packages in Debian Buster.

> /etc/xen/xl.conf changed:
> autoballoon=0

Hans



More information about the Pkg-xen-devel mailing list