[Pkg-libvirt-maintainers] Bug#774237: more info

gustavo panizzo (gfa) gfa at zumbi.com.ar
Wed Jul 22 05:09:41 UTC 2015


I had to kill -9 the systemd pid 1 inside of the container to be able to
start it again

most of the tasks inside the container were alive, I kill them but for
systemd I had to kill -9


HOST
:/sys/fs/cgroup/systemd/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope$
ps -ef |grep 1625
root      1625     1  0 Jul19 ?        00:00:48 /lib/systemd/systemd
--system --deserialize 20
gfa      32597 27946  0 13:05 pts/4    00:00:00 grep --color=auto 1625

HOST
:/sys/fs/cgroup/systemd/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope$
sudo kill -9 1625

HOST
:/sys/fs/cgroup/systemd/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope$
cat tasks
cat: tasks: No such file or directory

HOST
:(1)/sys/fs/cgroup/systemd/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope$
cd

HOST $ cd -
cd: no such file or directory:
/sys/fs/cgroup/systemd/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope

HOST $ virsh start firefox
Domain firefox started


On 2015-07-22 12:47, gustavo panizzo (gfa) wrote:
> today i restarted libvirt and it happened again
> 
> the lxc domain it was running is named firefox
> 
> it runs firefox and thunderbird
> 
> 
> HOST $ ps -ef |grep -e firefox -e thunder
> gfa       4121  4120  4 Jul19 ?        03:09:04 firefox
> gfa      11081 11080  4 10:48 ?        00:05:16 thunderbird
> 
> HOST $ cat /proc/4121/cgroup
> 9:memory:/machine.slice/machine-lxc\x2dfirefox.scope
> 8:cpu,cpuacct:/machine.slice/machine-lxc\x2dfirefox.scope
> 7:freezer:/machine.slice/machine-lxc\x2dfirefox.scope
> 6:devices:/machine.slice/machine-lxc\x2dfirefox.scope
> 5:cpuset:/machine.slice/machine-lxc\x2dfirefox.scope
> 4:perf_event:/machine.slice/machine-lxc\x2dfirefox.scope
> 3:blkio:/machine.slice/machine-lxc\x2dfirefox.scope
> 2:net_cls,net_prio:/machine.slice/machine-lxc\x2dfirefox.scope
> 1:name=systemd:/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/user.slice/user-2000.slice/session-6.scope
> 
> 
> HOST $ cat /proc/11081/cgroup
> 9:memory:/machine.slice/machine-lxc\x2dfirefox.scope
> 8:cpu,cpuacct:/machine.slice/machine-lxc\x2dfirefox.scope
> 7:freezer:/machine.slice/machine-lxc\x2dfirefox.scope
> 6:devices:/machine.slice/machine-lxc\x2dfirefox.scope
> 5:cpuset:/machine.slice/machine-lxc\x2dfirefox.scope
> 4:perf_event:/machine.slice/machine-lxc\x2dfirefox.scope
> 3:blkio:/machine.slice/machine-lxc\x2dfirefox.scope
> 2:net_cls,net_prio:/machine.slice/machine-lxc\x2dfirefox.scope
> 1:name=systemd:/machine.slice/machine-lxc\x2dfirefox.scope/machine.slice/machine-lxc\x2dfirefox.scope/user.slice/user-2000.slice/session-235.scope
> 
> 
> 
> this are the latest log lines in /var/log/libvirt/lxc/firefox.log
> 
> 
> 2015-07-22 04:34:09.387+0000: 1616: error : virNetSocketReadWire:1520 :
> End of file while reading data: Input/output error
> 2015-07-22 04:34:10.061+0000: starting up
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> LIBVIRT_DEBUG=3 LIBVIRT_LOG_OUTPUTS=3:stderr
> /usr/lib/libvirt/libvirt_lxc --name firefox --console 22 --security=none
> --hands
> hake 25 --veth vnet1
> 2015-07-22 04:34:10.119+0000: 24876: info : libvirt version: 1.2.16,
> package: 2 (buildd 2015-06-05-10:38:41 babin)
> 2015-07-22 04:34:10.119+0000: 24876: error : virSystemdCreateMachine:294
> : Unit machine-lxc\x2dfirefox.scope already exists.
> Unit machine-lxc\x2dfirefox.scope already exists.
> 
> 
> should i submit this upstream?
> 
> 
> 
> 
> 
> version: 1.2.16-2
> 
> 

-- 
1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333

keybase: http://keybase.io/gfa



More information about the Pkg-libvirt-maintainers mailing list