nextcloud / vm

💻☁📦 The Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4). Community developed and maintained.
https://download.nextcloudvm.com
GNU General Public License v3.0
1.32k stars 663 forks source link

Nextcloud VM updated TrueNAS documentation #2671

Closed aaaskew closed 2 months ago

aaaskew commented 2 months ago

Steps To Reproduce

The TrueNAS documentation provided (https://docs.hanssonit.se/s/W6fMouPiqQz3_Mog/virtual-machines-vm/d/W6fMquPiqQz3_Moi/nextcloud-vm-first-setup-instructions) is for TrueNAS Core on FreeBSD. There is now also TrueNAS Scale on Linux. The existing instructions where based on old 40GiB OVA which was BIOS based. Both TrueNAS Core and Scale support UEFI so I suggest replacing the TrueNAS instructions with the following which are simpler.

I have tried the unpack and correction on both systems.

Note the need for the /etc/exports.d directory required as a lock file is created by ZFS in that directory when doing a zfs mount -a.

Expected Result

Updated documentation for TrueNAS

Actual Result

Existing instructions out-of-date

Screenshots, Videos, or Pastebins

No response

Additional Context

  1. Change to a temporary directory on TrueNAS with enough room to download and extract the Nextcloud image
cd /tmp
mkdir nextcloud
cd nextcloud
  1. Download 100GB Proxmox VE nextcloud.vma.zst file
curl -L -o nextcloud.vma.zst 'https://download.kafit.se/s/YmPiD362tBjxKTL/download?path=%2F29.0.1%20-%20HUB%208&files=vzdump-qemu-999-2024_05_28-18_54_20.vma.zst'
  1. Uncompress image
zstd -d nextcloud.vma.zst
  1. Obtain vma extractor from https://github.com/jancc/vma-extractor
curl -L -o 1.1.1.tar.gz 'https://github.com/jancc/vma-extractor/archive/refs/tags/1.1.1.tar.gz'
  1. Uncompress extractor
tar zxf 1.1.1.tar.gz
  1. Extract hard disk images
./vma-extractor-1.1.1/vma.py nextcloud.vma image
  1. Create zvols

Set the Zvol names to Nextcloud-disk0 / Nextcloud-disk1 Set the Size for these zvols to 60 GiB / 100 GiB

  1. Copy data into volumes. Destination directory dependent on pool name where the zvols are created.
sudo dd if=image/drive-scsi0 of=/dev/zvol/tank/vms/Nextcloud-disk0 bs=1M
sudo dd if=image/drive-scsi1 of=/dev/zvol/tank/vms/Nextcloud-disk1 bs=1M
  1. Optionally snapshot the zvols before install to be able to get back to fresh images

  2. Optionally delete temporary files

cd /tmp
rm -rf nextcloud
  1. Create a Nextcloud VM
  1. Add the second disk
  1. Start VM and connect to display

  2. Login and correct system

Build Version

29

Environment

By downloading the VM

Environment Details

No response

enoch85 commented 2 months ago

Thanks a ton! Uploaded now. :+1: :1st_place_medal: