Skip to main content

Nextcloud - Helper Script

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.

Shell

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.

Install Command

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

Proceed

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.

Advanced

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.

Machine

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.

Cache

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

CPU

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.

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.

VM

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.

Resize

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

Size

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

Start

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

Install

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

LVM

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..

SDA

When prompted to write changes, select Yes.

Write

Set the volume size to max

Max

Select Yes to write the changes to disk.

Confirm

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.

GRUB

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

Reboot

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.

Stop

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

Detach

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).

IP

Enter the IP into the domain field

Domain

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.

Web

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

  1. Post Install Steps
  2. Email Server (coming soon)
  3. Adding Additional storage (coming soon)
  4. Installing Nextcloud Office (coming soon)