From 9c7d83cb9486bfcfd574badb4ee7735010e5a7ac Mon Sep 17 00:00:00 2001 From: Spongy <98784369+sppongy@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:07:28 -0400 Subject: [PATCH] Created general/Arch Linux LXC Setup (markdown) --- general-Arch-Linux-LXC-Setup.md | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 general-Arch-Linux-LXC-Setup.md diff --git a/general-Arch-Linux-LXC-Setup.md b/general-Arch-Linux-LXC-Setup.md new file mode 100644 index 0000000..bb2e3e7 --- /dev/null +++ b/general-Arch-Linux-LXC-Setup.md @@ -0,0 +1,40 @@ +## Initial Arch Linux LXC setup +``` +> pacman-key --init +> pacman-key --populate archlinux +> pacman-key --refresh-keyss.pool.sks-keyservers.net + +> pacman -Sy archlinux-keyring + +> pacman -S --needed git base-devel docker docker-compose neovim + +## user setup +> useradd -m -G wheel admin +> passwd admin + +## uncomment wheel line +> visudo + +> pacman -Syu +> reboot + +start and enable docker +``` + +## Troubleshooting + +### if getting shim error with docker containers + +in proxmox: datacenter > nodes > pve > shell + +``` +> vi /etc/pve/lxc/ +``` +add +``` +lxc.apparmor.profile: unconfined +lxc.cap.drop: +lxc.cgroup2.devices.allow: c 10:200 rwm +lxc.mount.entry: /dev/net dev/net none bind,create=dir +lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file +``` \ No newline at end of file