← All guides

Nextcloud All-in-One on Proxmox: a VM behind Tailscale, no open ports

Nextcloud is the most complete self-hosted replacement for Google Drive, with calendar, contacts and photo upload on top. All-in-One (AIO) is the official way to install it, and it is opinionated: one mastercontainer creates and updates all the others. We ran it in a VM, where Docker behaves exactly as on a normal server. AIO can also run in an LXC container, but its documentation notes that the backup container then needs FUSE enabled in the container settings.

Instead of opening ports on the router, we put it behind Tailscale Serve, which AIO's own documentation recommends for private access. We ran every step on 2026-11-28 in a throwaway Proxmox VM (Debian 13, AIO 15.1.1, Nextcloud Hub 26 / 35.0.3) and deleted it afterwards. Two things did not work out of the box; both are below, with what we did.

Step 1: a Debian 13 VM from the cloud image

  1. We used Debian's official cloud image instead of an installer ISO: a 342 MB download, then Proxmox imports it as the VM disk and cloud-init sets the user, SSH key and network.
  2. Size: 2 cores, 4 GB of RAM, 40 GB disk on our SSD pool. That is enough for Nextcloud without an office suite. Plan more RAM if you want Talk or an office suite.
  3. On first boot cloud-init runs its own apt jobs. Wait for cloud-init status --wait before you install anything, or apt fails with a lock error, as it did for us.

On the Proxmox host

cd /var/lib/vz/template && mkdir -p qcow && cd qcow
curl -fLO https://cloud.debian.org/images/cloud/trixie/latest/debian-13-genericcloud-amd64.qcow2

qm create 195 --name nextcloud --memory 4096 --cores 2 --cpu host \
  --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-single --ostype l26
qm set 195 --scsi0 Samsung-500-gb:0,import-from=/var/lib/vz/template/qcow/debian-13-genericcloud-amd64.qcow2,iothread=1,discard=on
qm resize 195 scsi0 40G
qm set 195 --ide2 Samsung-500-gb:cloudinit --boot order=scsi0 \
  --serial0 socket --vga serial0 --ciuser debian \
  --sshkeys /root/.ssh/id_ed25519.pub --ipconfig0 ip=dhcp
qm start 195
# use your own storage name instead of Samsung-500-gb

Step 2: Docker and Tailscale inside the VM

  1. Debian 13's docker.io package (Docker 26.1) ran AIO without problems.
  2. Install Tailscale from its apt repository and log the VM in. The VM gets a name like nextcloud.<tailnet>.ts.net, which becomes your Nextcloud address. See our Tailscale guide for the details and for turning on HTTPS certificates in your tailnet.

Inside the VM

sudo cloud-init status --wait
sudo apt-get update && sudo apt-get install -y docker.io curl

curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.noarmor.gpg | \
  sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.tailscale-keyring.list | \
  sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update && sudo apt-get install -y tailscale
sudo tailscale up --hostname=nextcloud     # open the printed URL and approve

Step 3: start AIO in reverse-proxy mode

  1. AIO normally wants ports 80 and 443 and gets its own certificate. Behind a reverse proxy you tell it to put its Apache on another port instead: we used 11000, bound to 127.0.0.1 so only the VM itself can reach it.
  2. Then Tailscale Serve becomes the reverse proxy: it takes HTTPS on the tailnet name, with a real certificate, and forwards to 127.0.0.1:11000.
  3. Our first try used SKIP_DOMAIN_VALIDATION=false, and AIO refused the domain. The reason: the VM resolves the ts.net name, but the AIO containers use Docker's own DNS, which does not know tailnet names. Starting the mastercontainer again with SKIP_DOMAIN_VALIDATION=true, using the same volume, fixed it.

The commands we ended with

sudo docker run -d --init --sig-proxy=false \
  --name nextcloud-aio-mastercontainer --restart always \
  --publish 8080:8080 \
  --env APACHE_PORT=11000 \
  --env APACHE_IP_BINDING=127.0.0.1 \
  --env APACHE_ADDITIONAL_NETWORK= \
  --env SKIP_DOMAIN_VALIDATION=true \
  --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
  --volume /var/run/docker.sock:/var/run/docker.sock:ro \
  ghcr.io/nextcloud-releases/all-in-one:latest

sudo tailscale serve --bg 11000
# -> https://nextcloud.<tailnet>.ts.net  proxy  http://127.0.0.1:11000

Step 4: the AIO interface

  1. Open https://<vm-lan-ip>:8080. The certificate there is self-signed, so the browser warns once. AIO shows a passphrase: write it down, it is the only way back into this interface.
  2. Log in with the passphrase and enter your ts.net name as the domain.
  3. Before you click Download and start containers, look at the optional containers. In 15.1.1 the office suite (Nextcloud Office powered by Euro-Office), Talk, Whiteboard and Imaginary were on by default. We switched off the office suite, Talk and Whiteboard to keep the VM small, kept Imaginary (photo previews) and clicked Save changes first. The changes are not saved automatically.
  4. Download and start took about 4 to 5 minutes. AIO then shows the initial admin user and password, and a button to open Nextcloud.

What we measured (2026-11-28, AIO 15.1.1, Nextcloud 35.0.3)

  • RAM: about 475 MB for all seven containers right after install, about 0.9 GB after the first login and a 100 MB upload (Nextcloud 409 MB, Imaginary 203 MB, Apache 143 MB, the rest under 70 MB each). The 4 GB VM showed 1.3 GB in use.
  • Disk: 2.1 GB of container images, 4.9 GB used on the VM disk before real data.
  • Install time: about 5 minutes from Download and start to a working login.
  • Over the tailnet from another container on the same host: a 100 MB WebDAV upload took 3.6 seconds (about 29 MB/s), the download 3.3 seconds. The status page answered in 0.5 seconds.
  • Real HTTPS on the ts.net name, with an HSTS header, and no port open on the router.

Warnings you will see, and what they mean

  • Cron last run 56 years ago: only on a brand-new install. AIO runs background jobs every 5 minutes; ours had run 5 minutes after install and the warning goes away.
  • Data directory protected and JavaScript modules / source maps could not be checked: these checks need Nextcloud to connect to its own address. Behind Tailscale Serve the Nextcloud container cannot reach its own ts.net name, so the checks cannot run. We tried giving a container Tailscale's DNS server; the name resolved, but the HTTPS connection to the VM's own tailnet address still failed. We left it as a known limitation of this setup.
  • The AIO domain check fails unless you set SKIP_DOMAIN_VALIDATION=true, for the same DNS reason.

Before you put real data in

  • Set up AIO's built-in backup (BorgBackup) to a different disk or a remote repository. Nextcloud holds the only copy of whatever you upload.
  • Turn on the extras you actually want one at a time and watch memory. An office suite and Talk are the heavy ones.
  • If you also want public share links for people outside your tailnet, Tailscale Serve is not enough: that needs Tailscale Funnel, a domain with open ports, or another tunnel. We only tested private access.
  • Keep the VM updated, and update Nextcloud from the AIO interface, not by pulling images by hand.

Nextcloud or Syncthing?

They solve different problems. Syncthing keeps the same folder on every device, with no server in the middle, and is tiny. Nextcloud is a server you log in to: files you can browse from a phone without storing them all, share links, calendar and contacts.

If you only need your folders identical on two or three computers, Syncthing is simpler and lighter. If you want a Google Drive replacement for a household, Nextcloud is the one.

Apps in this guide

More guides

Get new guides by email

One short email when we publish a new guide or add apps. No spam, unsubscribe any time.

Browse all apps →Read the weekly notes →