ProxMox
Community Scripts
There is a lot of extremely helpful scripts for installing various things on ProxMox: https://community-scripts.github.io/ProxmoxVE/scripts.
Post-install
# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/post-pve-install.sh)"
UniFi
In ProxMox shell, run the community script:
# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/unifi.sh)"
Home Assistant
In ProxMox shell, run the community script:
# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/haos-vm.sh)"
See also a nice guide.
Running Docker Containers
In ProxMox shell, run the community script:
$ bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/docker-vm.sh)"
File Store
In ProxMox shell:
# lvcreate -V1T -T pve/data -n store
# mkfs.ext4 /dev/mapper/pve-store
# mkdir /mnt/store
# mount /dev/pve/store /mnt/store # does not persist
In /etc/fstab on ProxMox, add:
/dev/pve/store /mnt/store ext4 0 1
RAID File Store
I added a bunch of hard disks to my ProxMox box and created a BTRFS RAID; this is where I want to store my photographs and other media.
I perused:
If at some point I decide to add my RAID as srorage to ProxMox:
ProxMox shell commands for the record:
## get rid of the stale madm RAID membership metadata
# wipefs -af /dev/sdc
# wipefs -af /dev/sdd
## reboot for ProxMox to re-read disks metadata
## make the RAID filesystem
# mkfs.btrfs -draid1 -mraid1 /dev/sdc /dev/sdd -L "Big Data"
## get UUID etc.
# btrfs filesystem show /dev/sdc # or /sdd
## create mountpoint
# mkdir /mnt/data
## in /etc/fstab, add:
UUID=<UUID> /mnt/data btrfs defaults 0 1
# systemctl daemon-reload
## mount
# mount /mnt/data
PhotoPrism
Did not have much luck with this one, but…
In ProxMox shell, run the community script:
$ bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/photoprism.sh)"
Mount directory with the original photos in the PhotoPrism container:
# pct set <container id> -mp0 /mnt/store/Pictures/originals,mp=/opt/photoprism/photos/originals
Log in: admin/changeme
Library | Index All originals Complete Rescan START
Emby
Did not have much luck with this one, but…
In ProxMox shell, run the community script:
$ bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/emby.sh)"
Mount the file store in the Emby container:
# pct set <container id> -mp0 /mnt/store,mp=/mnt/store
Jellyfin
In ProxMox shell, run the community script:
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/jellyfin.sh)"
todo upgrade ProxMox to 9.x