Back to Blog
tutorialIntermediate10 min read

Nextcloud Helper Script

This wiki covers how to install Nextcloud using Proxmox VE Helper Scripts.

Proxmox - Install Nextcloud via Helper Scripts

Overview

This wiki covers how to install Nextcloud using Proxmox VE Helper Scripts. There are multiple ways in which Nextcloud can be installed, but this wiki will focus on using the Proxmox VE Helper Scripts. There will be resource recommendations throughout the wiki, but ultimately the resources allocated to the VM will depend on your use case.

Install Nextcloud via Proxmox VE Helper Scripts

Open the Shell for your Proxmox server by clicking the Shell button in the top right corner of the Proxmox web interface.

Proxmox web interface top bar showing the Shell button in the top right corner
Proxmox Shell Button

Next, navigate to the Proxmox VE Helper-Scripts Nextcloud VM page, and copy the command to install the Nextcloud VM.

Paste the command into the Proxmox shell and press Enter to execute it. This will start the installation process for the Nextcloud VM. Use TAB to move between sections, the arrow keys to move between selections, space bar to select, and Enter to confirm your choices.

Proxmox shell terminal showing the helper script install command pasted and ready to execute
Proxmox VE Helper Script Install Command

You should see the Proxmox VE Helper-Scripts interface load, asking to proceed. Press Enter to continue.

Helper Scripts TUI displaying a confirmation prompt to proceed with installation
Helper Script Proceed Prompt

Although you can use the default settings, I recommend selecting Advanced to adjust the resources allocated to the VM to best suit your needs. For a single user instance without many apps, the default settings may be sufficient, but for a multi-user instance or if you plan to install many apps, it is recommended to adjust the resources accordingly.

Helper Scripts TUI showing Advanced vs Default settings option
Helper Script Advanced Settings Option

The next step is to set the Virtual Machine ID. The default is fine or set it to your preference. Next, select the Machine Type. I prefer q35 for better hardware compatibility, but i440fx is also a good choice.

Helper Scripts TUI showing VM ID and Machine Type selection with q35 and i440fx options
Helper Script VM ID and Machine Type

Choose whether you want no disk cache (default) or you want to enable Write Through. If using an SSD, it may be worth enabling Write Through as it will reduce the risk of data loss. However, there can be a significant performance cost. I have used both, and with an SSD I did not notice any difference in performance, so I typically enable Write Through.

Helper Scripts TUI showing disk cache configuration with no cache and Write Through options
Helper Script Disk Cache Setting

Set the hostname to your preferred hostname or leave it as the default. For the CPU Model, select host for better performance.

Helper Scripts TUI showing hostname input and CPU Model set to host
Helper Script Hostname and CPU Model

The default of 2 CPU cores is fine for most use cases. As for RAM, a minimum of 4096MB is recommended, increase it if you can spare a bit more and lots of apps will be installed.

Helper Scripts TUI showing CPU cores set to 2 and RAM set to 4096MB
Helper Script CPU Cores and RAM

Leave the bridge and MAC as default. Set a VLAN and Interface MTU if applicable (default is blank) and then select No to prevent the VM from starting after creation. Finally, select Yes to create the TurnKey Nextcloud VM. Once the VM is created, it will be listed in the Proxmox web interface.

Helper Scripts TUI showing network settings and VM creation confirmation
Helper Script Network and VM Creation

By default two disks will be attached to the VM:

  1. SCSI0: 12G Disk where Nextcloud will be installed
  2. SCSI1: 800M Disk for the installation media

It is recommended to adjust the Nextcloud OS disk to at least 20GB. To do this, click on the VM in the Proxmox web interface and select Hardware. Then, select the SCSI0 disk, click Disk Action and then click Resize.

Proxmox Hardware tab with SCSI0 disk selected and Disk Action Resize option highlighted
Proxmox VM Disk Resize Action

Note that you will be entering the size increment, so for 20GB enter 8GB (12+8GB = 20GB). Click Resize disk to confirm.

Proxmox disk resize dialog showing size increment field
Proxmox Disk Resize Dialog

Now that the disk has been resized, the VM can be started by selecting the Console tab and then clicking Start Now.

Proxmox Console tab with Start Now button
Proxmox VM Console Start Now

The installation media will load, select Install to hard disk to begin the installation process.

TurnKey Linux boot menu with Install to hard disk option highlighted
TurnKey Linux Install to Hard Disk

Select Guided - use entire disk and set up LVM to continue.

Debian Installer showing Guided LVM partitioning option selected
Debian Installer Guided LVM Partitioning

Make sure to select the correct disk. They may both be labeled SCSI1, so ensure you select the one with the larger size (20GB). This is usually the one labeled sda. Click Ok to continue.

Debian Installer disk selection showing SCSI1 devices with sda as the correct choice
Debian Installer Disk Selection

When prompted to write changes, select Yes.

Debian Installer write changes to disk confirmation with Yes selected
Debian Installer Write Changes Confirmation

Set the volume size to max

Debian Installer volume group size input with max entered
Debian Installer LVM Volume Size Max

Select Yes to write the changes to disk.

Debian Installer final partition write confirmation with Yes selected
Debian Installer Write Partitions Confirmation

The data will be copied to the disk. When prompted to install the GRUB bootloader, select No. On the next screen, ensure that /dev/sda is selected and click Ok. Note that there may be a /dev/sda1 option, but this is not correct.

Debian Installer GRUB device selection with /dev/sda highlighted
Debian Installer GRUB Boot Loader Device Selection

When completed, reboot the system. You will be prompted to press ENTER to continue the reboot process.

Debian Installer Finalize Install with Reboot system option highlighted
Debian Installer Reboot Prompt

Usually the Qemu Agent will not work, so a force Shutdown will be necessary so the installation media can be removed. Right click on the VM in the Proxmox web interface and select Stop. Overrule active shutdown tasks can be left unchecked. Click Yes to confirm.

Proxmox right-click context menu with Stop option on the Nextcloud VM
Proxmox VM Right-Click Stop

Once the VM is shut down, select the Hardware tab, then select the SCSI1 disk, and click Detach. Click Yes to confirm.

Proxmox Hardware tab with SCSI1 installation media disk and Detach button highlighted
Proxmox VM Hardware Detach Installation Disk

This disk should now be removed from the VM. Now navigate back to the console and click Start Now to start the VM. TurnKey Linux Nextcloud will load, and the Nextcloud configuration page will be displayed. There will be multiple prompts to create passwords. It is recommended to save the passwords in case you need them in the future.

When prompted to set the domain for Nextcloud, identify the IP address for the Nextcloud instance, type it in and press enter. This can be found on the summary page of the VM in the Proxmox web interface (You can safely switch between the Console and Summary tabs to get the IP address).

Proxmox VM Summary showing IP address 192.168.69.78 highlighted
Proxmox VM Summary IP Address

Enter the IP into the domain field

TurnKey Nextcloud Domain dialog with IP address entered
TurnKey Nextcloud Domain Configuration

Skip creation of an API key and optionally set an Email. Install the security updates before proceeding. Then reboot the system. Once the system reboots, a prompt will display the IPs for the web interface.

TurnKey Nextcloud Appliance Services summary showing all access URLs and ports
TurnKey Nextcloud Appliance Services Summary

Nextcloud is now installed and running! It is highly recommended to check out the following topics which cover important areas for new Nextcloud installations:

  1. Post Install Steps
  2. Email Server
  3. Adding Additional Storage
  4. Installing Nextcloud Office