Host
Create CT
pct create \
105 \
/mnt/pve/evo/template/cache/alpine-3.19-default_20240112_arm64.tar.xz \
--hostname syncthing \
--memory 512 \
--net0 name=eth0,bridge=vmbr0,firewall=1,gw=192.168.0.1,ip=192.168.0.105/24,hwaddr=DE:AD:DE:AD:01:05,type=veth,ip6=dhcp \
--storage localblock \
--rootfs local-lvm:2 \
--unprivileged 1 \
--ignore-unpack-errors \
--ostype alpine \
--password="123123123" \
--start 1
CT Conf
echo "mp0: /mnt/pve/evo/data,mp=/sync " >> /etc/pve/lxc/105.conf
echo "mp1: /mnt/pve/evo/onedrive,mp=/onedrive " >> /etc/pve/lxc/105.conf
echo "lxc.idmap: u 0 100000 1000" >> /etc/pve/lxc/105.conf
echo "lxc.idmap: g 0 100000 1000" >> /etc/pve/lxc/105.conf
echo "lxc.idmap: u 1000 1000 1" >> /etc/pve/lxc/105.conf
echo "lxc.idmap: g 1000 1000 1" >> /etc/pve/lxc/105.conf
echo "lxc.idmap: u 1001 101001 64535" >> /etc/pve/lxc/105.conf
echo "lxc.idmap: g 1001 101001 64535" >> /etc/pve/lxc/105.conf
Enter CT
pct enter 105
In CT
apk add syncthing
rc-update add sonarr # add to boot
nano /etc/init.d/syncthing
# Replace this line:
command_args="${SYNCTHING_ARGS:--no-browser}"
# With this
command_args="${SYNCTHING_ARGS:--no-browser --gui-address=0.0.0.0:8384}"