Hi everyone! I’m continuing to work with Proxmox and, in parallel, configuring containers. In this article I will step by step show how to install NextCloud in a Proxmox 8 VE LXC container: from downloading the Ubuntu 22.04 template to the first login to your own cloud.
A bit about containers in Proxmox
Proxmox allows you to create not only virtual machines but also containers. Moreover, containers are created based on OS templates: that is, a minimal version of the entire OS is brought up. This is more space-efficient and useful for resource control.
Of course, you can also put a container into Docker, but management through Proxmox in this case will be incomplete. Although you can, of course, install Portainer — we will cover that a little later.
Step 1. Download the container template
To create a container, we first need a template:
- Select the local storage local on our server.
- Go to the Container Templates section.
- Click the Templates button.
In the list, choose Ubuntu 22.04 and click Download:
After downloading the template will appear in our list (see the first screenshot).
Step 2. Create the LXC container
Next, click the top button to create a container:
![]()
The container creation wizard window will appear:
General settings
Fill in the Hostname and Password. We won’t use the hostname anywhere specific, so give it something that makes sense to you. The password will be needed to authenticate in the container’s console.
Click Next.
Template
Choose our template ubuntu 22.04:
Disk
Allocate 8 GB — this will be enough for the system:
CPU
Next, on the CPU tab, set Cores. I recommend at least 4 cores — this will be useful when processing photos. I have room, so I’ll allocate 8 cores.
Memory
The application will be fairly demanding on resources. I have 64 GB of memory on the server (and plan to upgrade to 128 later), so I allocate 8 GB for NextCloud. You could allocate at least 4 GB and the same amount of swap (SWAP):
Network
Set a static IP or use a DHCP server:
DNS and creation
In the DNS tab leave default — and create the container:
We get TASK OK:
Step 3. Enable FUSE
Select our container, go to Options and choose Edit → FUSE:
Here we need to enable FUSE and click OK:
FUSE (Filesystem in Userspace) — a free kernel module for Unix-like operating systems. It allows developers to create new types of filesystems that can be mounted by non-privileged users (primarily virtual file systems).
Step 4. Start the container and update the system
Start the container:
And login:
In the console enter:
apt update && apt upgrade -y
Step 5. Install NextCloud via snap
Now that the container is updated, it’s time to install the software we’ll use to install snap packages. Use:
apt install squashfuse snapd -y
Using the snap package manager, install NextCloud (if it didn’t start on the first try — run the command again):
snap install nextcloud
My first attempt to install NextCloud via snap looked like this:
Second attempt:
![]()
Step 6. Create a user in the system
Now we need to add a user to the system (I recommend doing this). Type:
adduser <username>
The system will ask you to enter a password twice — enter it. You may also provide additional information and at the end choose Y to confirm that everything is ok:

Add the user to the sudo group:
adduser <username> sudo
Step 7. Configure NextCloud
Create an administrator
Create NextCloud administrator (for username and password I used the same user created above):
nextcloud.manual-install <username> <password>
Add a trusted address
Now we need to tell NextCloud that we can trust a specific IP address (I added the server’s IP address — 192.168.1.111). You can see it with the command ip address.
Make sure the container is accessible via it:
nextcloud.occ config:system:set trusted_domains 1 --value=<ip address>
Instead of an IP you can add a domain tied to your address. You can bind a domain using DDNS services, or, having a public IP from your provider, bind your domain simply to it:
nextcloud.occ config:system:set trusted_domains 1 --value=example.com
Note: you cannot use both. So either the internal address or the domain.
Step 8. First login and setup
Open NextCloud in your browser:
Go to Files — and here I recommend deleting all the templates:
Go to Server Settings:
And configure everything as you wish. Good luck!
This article was first published on 12.07.2023 at openode.xyz; перенесена и обновлена 04.08.2026.



















