Introduction
This article describes the steps I took to set up a ProxMox instance and then installed NextCloudPi in a container.
About ProxMox
From the ProxMox website: “Proxmox Virtual Environment is a complete open-source platform for enterprise virtualization. With the built-in web interface you can easily manage VMs and containers, software-defined storage and networking, high-availability clustering, and multiple out-of-the-box tools using a single solution.”
About NextCloud
Installation
- Download ProxMox iso
- Flash the iso into a USB drive as a bootable drive
- I used EaseUS but it failed to install on the old Asus laptop with an error that it could not find the iso image
- I re-flashed using Balena Etcher, and then the installation was successful
- Plug the USB into the old Asus laptop
- Turn the laptop on, and press the key to get to the sartup options
- Select to boot from the USB
- Go through the installation process
- After installation, it showed the URL to use for accessing the ProxMox admin panel
- Go to that URL by using an internet browser (Chrome, FireFox, etc) from another computer on the local network
- Enter the login and password to get to the ProxMox control panel
Run the post-install helper script
Note: It can be dangerous to run a script from the internet. You might want to inspect the script before running it, and run them at your own risk. I did not write these scripts, and I do not accept any responsibility for what the scripts do.
- Open: ProxMox VE Helper Scripts
Expand Proxmox VE Tools and click on Proxmox VE Post Install
- Copy the command and paste as text into the ProxMox shell window and wait for it to finish (answering “yes” (y) to all options presented during the process):
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"
- Copy the command and paste as text into the ProxMox shell window and wait for it to finish (answering “yes” (y) to all options presented during the process):
Install NextCloudPi
On the ProxMox VE helper Scripts page from above, type NextCloud in the search box
Copy the command and paste as text into the ProxMox shell window and wait for it to finish (you may have to press yes to all the prompts):
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/nextcloudpi.sh)"
- Visit the URL for NextCloudPi to manage the NextCloud instance.
- Visit the NextCloud page and login as the admin username ncp and create user accounts for your users, including yourself.
Miscellaneous Setup
- Set up reverse proxy (via CloudFlare) so that I can access Nextcloud via the internet from anywhere
- Add firewall rules using FirewallD to allow the above reverse proxy to work
- Set up NextCloud and the NAS to backup NextCloud onto the NAS on a schedule
- Upgrade the ProxMox hard drive to a bigger hard drive and give more disk space to NextCloud