userdoc:guest_lxc_container

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
Next revision Both sides next revision
userdoc:guest_lxc_container [2020/05/24 17:14]
mkeuter [Optional]
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
-# Define which cores (e.g. 0 to 3) are allowed to use comma separated (not the count of cores!)+# 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 lxc.cgroup.cpuset.cpus = 1,3
 </code> </code>
  
 \\  \\ 
  • userdoc/guest_lxc_container.txt
  • Last modified: 2023/06/15 09:03
  • by abelbeck