gh

ProxMox Setup for VM

Mantainance

  1. Add Hardrives Configuring Storage in ProxMox using https://cf.christrees.com/ns/
  2. Add NAS container Turning Proxmox Into a Pretty Good NAS - youtube blog post
  3. Add Storage from catfreenas.gh.lan http://192.168.252.2/
    • Datacenter -> Storage -> Add -> NFS
    • tbd
    • tbd
    • tbd

Setup

  1. Setup ProxMox LearningLinuxTV 1/9
  2. Create First VM ProxMox LearningLinuxTV 2/9
    • pm01 -> local -> Content -> Upload - Create VM See Video
    • General See Video
      • Node: pm01
      • VM ID: 300
      • Name: ubuntu-19.10
    • OS See Video
      • Use CD: ISO image: ubuntu-19.10-live-server-amd64.iso
    • System no video this is new
      • Graphics: Default
      • SCSI Controller: VirtIO SCSI
    • Hard Disk See Video
      • Bus/Device: VirtIO Block
      • Storage: local-lvm
      • Disk size: 64 GiB
      • Cache: Default (No cache)
    • CPU See Video
      • Cores: 4
    • Memory See Video
      • Memory: 4096
    • Network See Video
      • Bridge: vmbr0
      • VLAN Tag: no VLAND
      • Model: VirtIO (paravirtualized)
      • MAC: auto - Boot Ubuntu Installer See Video
    • English
    • Your Name: radmin
    • Server Name: ratestweb - see#note
    • DHCP - Remove CD See Video - test SSH access See Video
  3. User Interface ProxMox LearningLinuxTV 3/9
  4. Container Setup ProxMox LearningLinuxTV 4/9
    • pm01 -> local -> Click “Template”
    • Click “ubuntu-19.10-standard” then Click “Download” - Create a Container See Video - Container vs VM See Video
    • Use Container when you can (Dynamic Share)
    • Container smaller footprint
    • Nesting Docker in a Container is not good
    • Use VM for Docker / K8s Host
  5. Create Template via CloudInit ProxMox LearningLinuxTV 5/9
    • sudo apt install cloud-init - Edit cloud.cfg See Video
    • sudo vi /etc/cloud/cloud.cfg
    • Go to: cloud_config_modules
      • Remove “snap stuff” 2 lines
      • Remove “ubuntu-advantage”
      • Remove “disable-ec2-metadata”
      • Remove “byobu”
    • Go to: cloud_final_modules
      • Remove snappy
      • Remove fan, lxd, puppet, chef, mcollective, salt-minion, rightscale_userdata - Talks about 18.04 MAC Address Issue See Video
    • REMOVE machine ID from VM
      • cat /etc/machine-id
      • sudo rm /etc/machine-id
      • sudo touch /etc/machine-id
    • soft link machine-id See Video
      • cat /var/lib/dbus/machine-id
      • sudo rm /var/lib/dbus/machine-id
      • sudo ln -s /etc/machine-id /var/lib/dbus/machine-id
      • ls -l /var/lib/dbus/mahcine-id
      • cat /etc/machine-id (should be an empty file)
      • sudo apt clean
      • sudo poweroff - Create Cloud Init Drive See Video
    • pm01 -> Hardware -> Add -> CloudInit Drive
    • Storage: local-lvm
    • pm01 -> Cloud-Init -> Edit
      • User: radmin
      • Password: see#note - Create Clone of Template See Video
    • Target Node: pm01
    • VM ID: 601
    • Name: ratestclone01
    • Mode: Full Clone
    • Repeat… should get machines
  6. Create Cluster ProxMox LearningLinuxTV 6/9
    • Click on “Datacenter”
    • Click on “Cluster” under “Summary”
    • Click “Create Cluster” -> Name: cat9clusterl
    • Click on “Join Information” -> “Copy Information”
    • Go to another node (pm02)
    • Click on “Datacenter”
    • Click on “Cluster” under “Summary”
    • Click “Join Cluster”
    • Paste in Info -> type in root pw of pm01 -> Click “Join”
    • Refresh GUI
    • Should have 3 nodes to do HA - Migrate a Container to other node See Video
    • Stop Container
    • Right Click on Container -> Migrate -> Select target node -> Click “Migrate”
    • You cannot Live migrate “Container” but you CAN LIVE migrate a VM - Live Migrate VM to other node See Video
  7. ProxMox LearningLinuxTV 7/9
  8. Upgrade Proxmox to 6.0 ProxMox LearningLinuxTV 8/9
  9. Updates on ProxMox with no VM Downtime ProxMox LearningLinuxTV 9/9

Extras

  1. Upgrading Proxmox VE to 6.0 See Video
  2. Installing Proxmox Virtual Enviroment Updates in a Cluster See Video
  3. Create custom Proxmox via CLI See Video