Install Nextcloud on Debian LXC via Snap
Hi, I had several problems with my Nextcloud installs. So I decided today that I'll try the Snap Package. There are some tweaks to do, in order to run Snapd on LXC. But I'll walk you trough this.
I assume you already have a working Debian LXC container.
Prepare the Container
first, SSH into your Proxmox Server and edit your LXC Containers config
vim /etc/pve/lxc/CONTAINER_NUMBER.conf
First, make sure you have fuse=1, enabled, then add the last 3 lines from
below
arch: amd64
features: fuse=1,nesting=1
hostname: Nextcloud
memory: 1024
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.178.1,hwaddr=BC:24:11:95:70:D6,ip=192.168.178.103/24,type=veth
ostype: debian
rootfs: local-lvm:vm-103-disk-0,size=100G
swap: 512
unprivileged: 1
lxc.mount.entry: /dev/fuse dev/fuse none bind,create=file,optional
lxc.mount.entry: /sys/kernel/security sys/kernel/security none bind,optional 0 0
lxc.mount.auto: cgroup:rw
Then you are ready to start the Container
You have to install apparmor and apparmor-utils
sudo apt install apparmor apparmor-utils
Then
sudo systemctl enable apparmor
Now reboot.
Final Step:
snap install nextcloud
No comments to display
No comments to display