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/16 21:32]
abelbeck [Destroy All Containers]
userdoc:guest_lxc_container [2020/05/24 17:16]
mkeuter [Optional]
Line 163: Line 163:
 Pi-hole is a perfect example to use with AstLinux within a LXC.  Begin as with the "Quick Start Guide" but use the name ''pi-hole''. Pi-hole is a perfect example to use with AstLinux within a LXC.  Begin as with the "Quick Start Guide" but use the name ''pi-hole''.
  
-__Enable Pi-hole LXC:__ +First, it is assumed the ''lxcbr0'' interface is setup per the above **Quick Start Guide** -> Enable LXC Support.
-\\ +
- +
-  * Define ''LXC_BRIDGE0'' in ''user.conf'' using a physical or VLAN interface +
-  * Assign ''lxcbr0'' to an internal interface in the **Network tab** +
-  * Reboot+
  
 Then from the CLI: Then from the CLI:
Line 282: Line 277:
 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>
  
 \\  \\ 
  • userdoc/guest_lxc_container.txt
  • Last modified: 2023/06/15 09:03
  • by abelbeck