Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
userdoc:guest_lxc_container [2020/05/17 09:04]
abelbeck [Pi-hole Container Example]
userdoc:guest_lxc_container [2020/05/31 15:09]
abelbeck [Quick Start Guide]
Line 22: Line 22:
   lxc-attach debian10   lxc-attach debian10
     passwd     passwd
 +    apt update
     apt install openssh-server iputils-ping curl     apt install openssh-server iputils-ping curl
     ...     ...
Line 79: Line 80:
 # Container specific configuration # Container specific configuration
 lxc.tty.max = 0 lxc.tty.max = 0
 +#​lxc.cgroup.memory.limit_in_bytes = 1024M
 +#​lxc.cgroup.cpuset.cpus = 1,3
 lxc.rootfs.path = dir:/​var/​lib/​lxc/​debian10/​rootfs lxc.rootfs.path = dir:/​var/​lib/​lxc/​debian10/​rootfs
 lxc.uts.name = debian10 lxc.uts.name = debian10
Line 173: Line 176:
   lxc-attach pi-hole   lxc-attach pi-hole
     passwd     passwd
 +    apt update
     apt install openssh-server iputils-ping curl     apt install openssh-server iputils-ping curl
     ...     ...
Line 223: Line 227:
  
   lxc-attach lynx   lxc-attach lynx
 +    apt update
     apt install lynx ca-certificates fping     apt install lynx ca-certificates fping
     exit     exit
Line 277: Line 282:
 lxc.cgroup.memory.limit_in_bytes = 512M lxc.cgroup.memory.limit_in_bytes = 512M
 #​lxc.cgroup.cpu.shares = 256 #​lxc.cgroup.cpu.shares = 256
-lxc.cgroup.cpuset.cpus = 1+# Define which actual cores (e.g. 0 to 3) are allowed to use - comma separated (it's NOT the count of cores!) 
 +lxc.cgroup.cpuset.cpus = 1,3
 </​code>​ </​code>​
  
 \\  \\