Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:lxc [2022/09/03 02:26] – [Unprivileged containers] darrontools:lxc [2024/10/24 00:19] (current) – [Setup] darron
Line 31: Line 31:
 ==systemd== ==systemd==
 <code> <code>
 +systemctl stop lxc-monitord.service
 +systemctl disable lxc-monitord.service
 +systemctl mask lxc-monitord.service
 systemctl disable lxc-net.service systemctl disable lxc-net.service
 systemctl disable lxc.service systemctl disable lxc.service
Line 38: Line 41:
  
 <code> <code>
-sed -i 's/LXC_AUTO="true"/LXC_AUTO="false"/ /etc/default/lxc +sed -i 's/LXC_AUTO="true"/LXC_AUTO="false"/g' /etc/default/lxc 
-sed -i 's/USE_LXC_BRIDGE="true"/USE_LXC_BRIDGE="false"/ /etc/default/lxc-net+sed -i 's/USE_LXC_BRIDGE="true"/USE_LXC_BRIDGE="false"/g' /etc/default/lxc-net
 </code> </code>
  
Line 152: Line 155:
 <code> <code>
 lxc-create -n terminator -t debian -- -r bullseye -a armhf lxc-create -n terminator -t debian -- -r bullseye -a armhf
 +</code>
 +
 +Install bookworm (32-bit)
 +
 +<code>
 +lxc-create -n cracker -t debian -- -r bookworm -a armhf
 </code> </code>
 === Configure === === Configure ===
Line 262: Line 271:
 Now we can start and stop the container, attach to it, etc. Now we can start and stop the container, attach to it, etc.
  
-===Runit init===+===Runit===
  
 Start container and login as root Start container and login as root
Line 274: Line 283:
 apt install runit-init apt install runit-init
 reboot reboot
 +</code>
 +
 +or 
 +
 +<code>
 +apt-get install runit runit-run runit-systemd
 </code> </code>
  
Line 282: Line 297:
 cd /etc/service cd /etc/service
 rm getty-tty* rm getty-tty*
 +</code>
 +
 +===Apt===
 +
 +<code>
 +sed -i 's/debian-security bookworm/debian-security bookworm-security/g' /etc/apt/sources.list
 </code> </code>