User Tools

Site Tools


proxmox:virtual:portainer

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

Install Portainer

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
proxmox/virtual/portainer.txt · Last modified: by dirk