I use lxc-mocker in docker container, everything is ok.

Just if the package did not install in advance, then next command will hang in web:

lxc-create -t ubuntu -n test_lava -- --release xenial --mirror http://mirror.bytemark.co.uk/debian --packages systemd,systemd-sysv --arch amd64

I enter the container, see:

root@df67cf292479:/# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 17:20 pts/0    00:00:00 /usr/bin/python3 /usr/bin/lava-slave --level DEBUG --log-file - --master tcp://192.168.1.10:5556 --socket-a
root         8     0  0 17:20 pts/1    00:00:00 /bin/bash
root        13     1  0 17:20 pts/0    00:00:00 lava-run [job: 837]
root        19    13  0 17:20 pts/0    00:00:00 /bin/bash /usr/bin/lxc-create -q -t ubuntu -n test_lava -- --release xenial --mirror http://mirror.bytemark.c
root       261    19  1 17:20 pts/0    00:00:00 apt-get -q install -y systemd systemd-sysv
root       473     8  0 17:21 pts/1    00:00:00 ps -ef

Seems "apt-get install" hang, but if I pre-install the systemd,etc, then everything will ok, the lxc-create will not hang. The same for lxc-attach mocker etc, all will hang if do "apt-get install" & no pakcage preinstall.

Please suggest, thanks.