Skip to content

Troubleshooting

Tim Ohliger edited this page Feb 19, 2018 · 7 revisions

Root?

You can compile everything without being root, but you must be root to execute virsh commands.

sudo -i

Correct environment vars?

Be sure to source the set_environment.sh script.

# . <install-dir>/bin/set_environment.sh

Does libvirtd run?

Check if libvirtd runs, e.g., with pgrep -a libvirtd. Also, is the correct libvirtd executable running (in path <install-dir>)? In order to start libvirtd run:

# <install-dir>/bin/set_environment.sh -d

Or for more debug output:

# LIBVIRT_DEBUG=debug <install-dir>/sbin/libvirtd -l -p /var/run/libvirtd.pid -f <install-dir>/etc/libvirt/libvirtd-notls.conf 2>&1 | grep -Ev 'virEvent|virNet|virDomainGetJobInfo|virObjectUnref|virDomainObjDispose|virKeepAlive|virFileClose|virThread'

Correct kernel options?

Check if your kernel options conform https://criu.org/Linux_kernel:

# criu check
Looks good.

Correct container config?

Check if the config of the container is correct:

# cat <install-dir>/var/lib/lxc/<cont_name>/config

Especially, lxc.network.link = lxcbr0 should be lxc.network.link = br0.

Correct lxc version?

LXC 2.1 changed a lot of conifg keys. So, parsing the new format causes issues, e.g., when calling virsh list. See issue #2.

Added criu hax in lxc-config?

Criu might fail to dump the container with the following error in <install-dir>/var/lib/lxc/migrate_tmpfs/0/dump.log:

(01.799115) mnt:        148: 37:/3 @ ./dev/lxc/tty4
(01.799127) Error (criu/tty.c:2306): tty: Unable to find a master for /3

Then you have to add the following to the LXC config file (<install-dir>/var/lib/lxc/<cont_name>/config) (as per https://criu.org/LXC):

# hax for criu
lxc.console = none
lxc.tty = 0
lxc.cgroup.devices.deny = c 5:1 rwm