NEXCLOUD VIA PROXMOX

 






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.

Proxmox web interface showing the 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 with helper script command pasted

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/nextcloud-vm.sh)"



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

Helper Scripts TUI confirmation 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.

Helper Scripts Advanced vs Default 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 VM ID and Machine Type selection

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.

Helper Scripts disk cache configuration options

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

Helper Scripts hostname and CPU Model settings

The default of 2 CPU cores is fine for most use cases. As for RAM, a minimum of 4096MB is recommended.

Helper Scripts CPU cores and RAM settings

Leave the bridge and MAC as default. Set a VLAN and Interface MTU if applicable and then select No to prevent the VM from starting after creation. Finally, select Yes to create the TurnKey Nextcloud VM.

Helper Scripts network settings and VM creation confirmation

By default two disks will be attached to the VM. 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 disk resize option

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

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

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

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

Debian Installer Guided LVM partitioning option

Make sure to select the correct disk. They may both be labeled SCSI1, so ensure you select the one with the larger size (20GB).

Debian Installer disk selection

When prompted to write changes, select Yes.

Debian Installer write changes confirmation

Set the volume size to max

Debian Installer volume group size set to max

Select Yes to write the changes to disk.

Debian Installer final partition write 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.

Debian Installer GRUB device selection with /dev/sda

When completed, reboot the system.

Debian Installer Finalize with Reboot option

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 and select Stop.

Proxmox right-click menu with Stop option

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

Proxmox Hardware tab with Detach button for installation media

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.

Proxmox VM Summary showing IP address

Enter the IP into the domain field

TurnKey Nextcloud Domain dialog with IP address

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 access URLs




RQ; changer adresse ip affiché  dans le fichier config.php  sur le chemin; /var/www/nextcloud/config/config.php
  










No comments:

Post a Comment

Networking Fundamentals Course

CISCO SYSTEMS                                                         in this blog we will learn together the different  layer 2 and 3 netwo...