Created general/Arch Linux LXC Setup (markdown)

Spongy 2024-10-14 11:07:28 -04:00
parent 0abf45ec00
commit 9c7d83cb94

@ -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/<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
```