This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
docs:lxc [2013-11-19 00:59] glen Prerequisites |
docs:lxc [2013-11-19 15:43] glen [Vserver comparision] |
||
---|---|---|---|
Line 64: | Line 64: | ||
===== Vserver comparision ===== | ===== Vserver comparision ===== | ||
+ | When in Vserver, guest processes are not visible in host, then in LXC all guest processes are visible. Beware when running ''killall(1)'' commands on host. | ||
+ | |||
+ | Also, unfortunately ''/proc/PID/root'' points to ''/'' for LXC guests as well, so ''rc-scripts'' ''filter_chroot()'' can't differentiate between host and guest processes. | ||
+ | |||
+ | **Commands:** | ||
^ Vserver ^ LXC ^ Notes ^ | ^ Vserver ^ LXC ^ Notes ^ | ||
- | | vserver test enter | lxc-attach -n test -e | Use ''-e'' option with care, especially when restarting processess | | + | | vserver test enter | lxc-attach -n test -e | Use ''-e'' option with care, especially when restarting processes | |
| vserver test start | lxc-start -n test -d | | | vserver test start | lxc-start -n test -d | | ||
| vserver test stop | lxc-stop -n test | | | vserver test stop | lxc-stop -n test | | ||
| vserver-stat | %%lxc-ls --fancy --running%% | you need ''python3-lxc'' installed for this tool | | | vserver-stat | %%lxc-ls --fancy --running%% | you need ''python3-lxc'' installed for this tool | | ||
- | |||
===== Sample configs ===== | ===== Sample configs ===== | ||