Skip to content

How to Debug

Niklas Eiling edited this page Jul 6, 2016 · 1 revision

Enable verbose Libvirt output:

export LIBVIRT_DEBUG=debug

In order to filter unrelevant output it might be helpful to run the migration using the following calls:

virsh migrate <container> lxctools+tcp://<dest-ip>/ --migrateuri <dest-ip> --live 2>&1 | grep -Ev 'virEvent|virNet|virDomainGetJobInfo|virObjectUnref|virDomainObjDispose|virKeepAlive|virFileClose|virThread'

Run Libvirtd in foreground:

libvirtd -l -f <libvirtd config>

(libvirtd config e.g. in <prefix>/etc/libvirt/libvirtd-notls.conf)

Criu dump files during migration are saved to <prefix>/var/lib/lxc/migrate_tmpfs. If criu returned an error during a migration it might be useful to look at the criu logs at <prefix>/var/lib/lxc/migrate_tmpfs/0/dump.log or <prefix>/var/lib/lxc/migrate_tmpfs/0/restore.log.

The orignal LXC config files and the LXC logs are located at <prefix>/var/lib/lxc/<container>/.

Clone this wiki locally