From fd894cbbfb2dbae0d6ebf38d5df00e738514520a Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 25 Feb 2020 11:24:23 +0100 Subject: [PATCH] cleanup lxc --- distros/arch/lxc.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/distros/arch/lxc.md b/distros/arch/lxc.md index 064b0cd..03b00e7 100644 --- a/distros/arch/lxc.md +++ b/distros/arch/lxc.md @@ -1,8 +1,22 @@ -This is an untested mess. +# Distro Specifics -# Required +Arch dependencies: `arch-install-scripts` `dnsmasq` -> sudo pacman -S lxc arch-install-scripts dnsmasq +# Basic Setup + +Make and start a linux container called 'playtime': + +> # lxc-create -n playtime -t download + +> # lxc-ls --fancy + +> # lxc-start playtime + +Attach it: + +> # lxc-attach playtime + +# Networking Place the following in /etc/default/lxc-net to configure the network: @@ -58,7 +72,7 @@ file for the lxcbr0 Then start the lxc NAT: -> sudo systemctl start lxc-net +> sudo systemctl restart lxc-net > sudo systemctl restart NetworkManager