How to install Nextcloud on Proxmox: LXC with snap, VM with AIO, or a helper script
Three ways to run Nextcloud on Proxmox VE 8 and 9, and which one to pick: a lightweight Ubuntu 24.04 LXC with the Nextcloud snap (step by step, including the nesting and FUSE settings it needs), a VM with the official All-in-One, or a community helper script.
Updated November 2026: rewritten for Proxmox VE 8 and 9 and Ubuntu 24.04 (the old version said "24.01", a typo). It now compares the three practical ways to run Nextcloud on Proxmox, adds the nesting setting the snap needs, first setup from the command line, HTTPS, a separate data disk, backups and common errors.
There are three practical ways to run Nextcloud on Proxmox, and they suit different people. This guide shows how to pick one, then walks through the lightest option step by step: an Ubuntu 24.04 LXC container with the official Nextcloud snap.
Short answer:
| Method | Good for | Effort |
|---|---|---|
| Ubuntu LXC + Nextcloud snap | Home use, a few users, low RAM | 15 minutes, this guide |
| VM + Nextcloud All-in-One (AIO) | Families and teams, Office and Talk included, the official method | 30 minutes, needs more RAM |
| Community helper script | Fastest start, you accept a third-party script | 5 minutes |
If you just want your own Dropbox replacement on a homelab box, start with LXC + snap. If you want Nextcloud Office, Talk with video calls and built-in backups, go straight to a VM with AIO.
Option 1: Ubuntu 24.04 LXC with the Nextcloud snap
The snap bundles Nextcloud, Apache, PHP, MySQL and Redis in one package and updates itself. Snaps don't work in an LXC container out of the box, though. The container needs two features enabled: nesting and FUSE.
Step 1: download the Ubuntu 24.04 template
On the Proxmox host shell:
pveam update
pveam available --section system | grep ubuntu-24.04
pveam download local ubuntu-24.04-standard_24.04-2_amd64.tar.zst
Use the exact file name that pveam available shows; the build number at the end changes. In the web UI the same thing is under your storage, CT Templates → Templates.
Step 2: create the container
In the web UI: Create CT, keep Unprivileged container ticked, pick the Ubuntu 24.04 template, then give it at least 2 cores, 4 GB RAM and 32 GB disk. Nextcloud runs with less, but previews and the database are happier with this.
Or from the shell, all in one command (change the ID, storage and bridge to match your host):
pct create 120 local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst \
--hostname nextcloud --cores 2 --memory 4096 --swap 1024 \
--rootfs local-lvm:32 --net0 name=eth0,bridge=vmbr0,ip=dhcp \
--unprivileged 1 --features nesting=1,fuse=1 --onboot 1
Step 3: enable nesting and FUSE
If you created the container in the web UI, enable the features now: container → Options → Features, tick Nesting and FUSE, click OK, then restart the container. Or on the host:
pct set 120 --features nesting=1,fuse=1
pct reboot 120

The old version of this guide only enabled FUSE. Nesting matters just as much: snapd needs it for its AppArmor confinement, and without it snaps fail to start. This is the combination confirmed working for the Nextcloud snap on the Proxmox forum.
Step 4: update Ubuntu and install snapd
Open the container console (or pct enter 120 on the host):
apt update && apt upgrade -y
apt install -y snapd squashfuse
squashfuse lets snapd mount snap images through FUSE inside the container. You're root in the container console, so no sudo is needed here.
Step 5: install Nextcloud
snap install nextcloud
The first snap install in a fresh container sometimes stops with an error while snapd restarts itself in the background. Wait a few seconds and run the same command again.
Step 6: create the admin user
You can finish setup in the browser at http://<container-ip>, or skip the wizard and do it from the shell:
nextcloud.manual-install admin 'a-long-strong-password'

If you plan to open Nextcloud by a name like cloud.example.com, add it to the trusted domains, or Nextcloud shows "Access through untrusted domain":
nextcloud.occ config:system:set trusted_domains 1 --value=cloud.example.com
Step 7: turn on HTTPS
If the domain points to your public IP and ports 80 and 443 are forwarded to the container, the snap can get and renew a Let's Encrypt certificate by itself:
nextcloud.enable-https lets-encrypt
For LAN-only use, nextcloud.enable-https self-signed works too (browsers will warn). If you already run a reverse proxy like Caddy in front of your services, leave HTTPS off in the snap and let the proxy handle it, as in my Caddy reverse proxy setup. Then tell Nextcloud about the proxy:
nextcloud.occ config:system:set trusted_proxies 0 --value=192.168.1.10
nextcloud.occ config:system:set overwriteprotocol --value=https
Use your proxy's IP instead of 192.168.1.10.
Optional: keep the data on a separate disk
By default the snap stores files under /var/snap/nextcloud/common/nextcloud/data inside the container disk. To put user files on a bigger pool, add a mount point and give the snap access to it. Do this before Step 6, while Nextcloud isn't set up yet.
On the Proxmox host (example with a ZFS dataset):
mkdir -p /tank/nextcloud-data
chown 100000:100000 /tank/nextcloud-data
pct set 120 -mp0 /tank/nextcloud-data,mp=/mnt/ncdata
Why 100000: root inside an unprivileged container is UID 100000 on the host. In the container:
snap connect nextcloud:removable-media
The snap only accepts data directories under /mnt or /media, and only after you connect the removable-media interface. Then set 'directory' => '/mnt/ncdata/data' in /var/snap/nextcloud/current/nextcloud/config/autoconfig.php and run nextcloud.manual-install.
Updates and backups
The snap updates itself, including major Nextcloud versions when they reach the stable channel. To stay on one major version, switch to a version channel, for example snap refresh nextcloud --channel=33/stable.
For backups, the simplest is a Proxmox backup job for the container (Datacenter → Backup) in snapshot mode. The snap also has nextcloud.export, which writes the database, config and data into one folder you can copy off the box.
Option 2: a VM with Nextcloud All-in-One
Nextcloud AIO is the official installation method. It runs Nextcloud, Office, Talk, the high-performance backend for files and a backup tool as Docker containers and manages updates for all of them. AIO can run in an LXC container, but it's designed for a VM or bare metal, and people on the Nextcloud forum regularly report odd problems when they run it in LXC. In a VM it just works.
- Create a VM in Proxmox with Ubuntu Server 24.04 or Debian 13: 4 cores, 8 GB RAM and a disk sized for your files.
- Install Docker with the official repository. My Docker install script for Ubuntu does it in one command.
- Start the AIO master container:
sudo docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest
- Open
https://<vm-ip>:8080(accept the self-signed certificate), note the passphrase it shows, enter your domain, and let AIO start the containers.
AIO needs a domain that points to the VM, because it sets up HTTPS for it. If another reverse proxy already owns ports 80 and 443 on your network, follow the reverse proxy section of the AIO readme instead of publishing port 80.
Option 3: a community helper script
The Proxmox VE community scripts (the project that continued tteck's scripts) include Nextcloud containers you create with one command on the host. They're quick, but they're third-party scripts running as root on your Proxmox host. Open the script on GitHub and read what it does before you pipe it into bash, and check how it handles updates, because you'll maintain whatever it installs.
Common problems
| Problem | Fix |
|---|---|
snap install fails with "system does not fully support snapd" or a squashfs mount error |
Nesting or FUSE isn't enabled on the container, or the container wasn't restarted after enabling them. Also install squashfuse |
First snap install nextcloud fails, second works |
Normal on a fresh container: snapd restarts itself. Just retry |
| "Access through untrusted domain" | Add the domain or IP with nextcloud.occ config:system:set trusted_domains 1 --value=... |
| Let's Encrypt fails | DNS doesn't point to your public IP, or ports 80/443 aren't forwarded to the container |
| Redirect loops or wrong links behind a reverse proxy | Set trusted_proxies and overwriteprotocol as shown above, and keep HTTPS off in the snap |
| Container got a new IP | Give it a static IP or a DHCP reservation. If you change the Proxmox host IP itself, see how to change the Proxmox IP address |
My take
For one person or a family that mostly syncs files and photos, the LXC + snap route is the least work to keep running: one container, small footprint, updates handled by snap. Once you want Nextcloud Office, Talk or several users relying on it daily, move to a VM with AIO, because that's the setup Nextcloud tests and supports. I'd skip running AIO inside LXC: it can work, but when something breaks you're on your own.
FAQ
Should I install Nextcloud in an LXC container or a VM on Proxmox?
LXC uses less RAM and starts faster, and the Nextcloud snap works well in an unprivileged Ubuntu container with nesting and FUSE enabled. A VM gives full isolation and is the supported environment for Nextcloud All-in-One, which includes Office, Talk and backups. Small home setups: LXC. Anything people depend on: VM.
Why does snap not work in my Proxmox container?
Snaps need the container features nesting=1 and fuse=1. Enable both under Options → Features (or pct set <id> --features nesting=1,fuse=1), restart the container, install squashfuse, and try again.
What are the minimum resources for Nextcloud on Proxmox?
For the snap in LXC, 2 cores and 2 GB RAM work for one or two users. 4 GB is more comfortable. For a VM with AIO, plan on 4 cores and 8 GB RAM if you enable Office and Talk.
Is there an Ubuntu 24.01?
No. Ubuntu LTS releases come out in April, so the current LTS versions are 24.04 and 26.04. The old version of this article had a typo.
How do I update Nextcloud installed with snap?
You don't have to do anything: snap refreshes it automatically. Run snap refresh nextcloud to update right away, or switch to a version channel like 33/stable to avoid jumping to a new major version.