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