====== Install Portainer on Ubuntu as Proxmox Virtual Machine ====== ===== Proxmox Settings ===== * OS * Use CD/DVD disc image file (iso) * Storage: local * ISO image: select ubuntu iso (that you added to ISO section in Datacenter -> node name -> local (node name) -> ISO Images) * Type: Linux * Version: 6.x - 2.6 Kernel * System * Graphic card: Default * Machine: Default (i440fx) * BIOS: Default (SeaBIOS) * SCSI Controller: VirtIO SCSI single * Qemu Agent: UNCHECKED * Add TPM: UNCHECKED * Disks * Bus/Device: SCSI 0 * Storage: local-lvm * Disk size (GiB): 100 * CPU * Sockets: 1 * Cores: 4 * Type: host * Memory * 4096 * Ballooning Device: CHECKED * Network * Bridge: vmbr0 * Model: VirtIO (paravirtualized) * Confirm * Don't start vm after creation * Finish ===== Passthrough some stuff ===== * Datacenter -> Node name -> VM * Click Hardware * Click Add * PCI Device * Raw Device * Device: Select the Device you want to add based on its address * For Portainer, I added the 1TB nvme for appdata etc. (04:00) * All Functions: CHECKED * Click OK ===== Setup Ubuntu ===== * Start vm and go to console * Install Ubuntu with normal settings * Install OpenSSH server: YES * SSH into server * sudo apt update * sudo apt upgrade ===== Install Docker ===== * curl -faSL https://get.docker.com -o get-docker.sh * sudo sh ./get-docker.sh * link: https://docs.docker.com/engine/install/ubuntu/ ===== Install Portainer ===== * sudo docker volume create portainer_data * sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest * link: https://docs.portainer.io/start/install-ce/server/docker/linux ===== Setup Portainer ===== * portaineraddress:9443 * setup password * Add Containers! ===== Other ===== * mount drives for dockers to use by editing /etc/fstab and adding the two below (for my needs) * /dev/disk/by-uuid/6d9e10a7-bc8d-49c8-89ca-1b78be4c15e2 /mnt/nvme auto defaults 0 1 //10.23.79.4/plex /media/plex cifs credentials=/home/dirk/.dirksmbcred,file_mode=0777,dir_mode=0777 0 0 * create a .dirksmbcred file with your share user and pass info in your home directory. * username=dirk password=password