1
Misc
Spongy edited this page 2024-10-14 11:46:36 -04:00
Table of Contents
Contents
Arch Linux LXC
Initial 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/<id>
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
TrueNAS
Setup
Proxmox
Make sure container is privledged and has Container > Options > Features > NFS on
Arch
> pacman -S nfs-utils
vi /etc/fstab
<ip>:<share mntpoint> /data/media nfs defaults 0 0
Notes
all of my containers that access nfs shares have the PUID and PGID set to a user with write permissions on the nfs shares