Skip to content

Proxmox 5.4

lhmerino edited this page Sep 10, 2019 · 18 revisions

Proxmox 5.4

Disk Image

  • Size: 50GB
  • Created July 14, 2019
  • Updated September 8, 2019

VM Template Recommendation:

  • RAM: 4096 MB
  • CPU: 2 cores + 2 threads

Container Management

  • Proxmox Documentation on containers
    • Section Container Images describes how to download a container template and create a container
      • Recommendation: Use a Long Term Support version
      • Storage parameter must be set when creating the container --storage local-lvm
    • Section Managing containers with pct describes how to interact with the container including configuring the container while its running.
  • Man pages for pct
    • Use this documentation to view all the possible actions and arguments with pct

OS Installation

Options for partitions:

  • swapsize: 0
  • maxroot: 10GB

OS Configuration

  • Change pve (proxmox) package from enterprise to no-subscription
  • Set hostname to "proxmox"
    • hostnamectl set-hostname proxmox
    • Changed /etc/hosts
    • Changed /etc/hostname
    • hostname proxmox
  • Force new password after first successful login
    • chage -d 0 root
  • Removal of SSH keys generated during installation
    • Deleted /root/.ssh/id_rsa; /root/.ssh/id_rsa.pub; /root/.ssh/authorized_keys
  • Change banner
    • Edit /usr/bin/pvebanner
  • Add banner contents to SSH
    • Added Banner /etc/issue to /etc/ssh/sshd_config
  • Install network tools
    • apt-get install net-tools
  • Install vim editor
    • apt-get install vim
  • Install git
    • apt-get install git
  • Install tmux and screen
    • apt-get install tmux screen
  • Configure network interfaces
    • Up to 5 network interfaces will be automatically configured to run DHCP
    • Bridge is set to be a static IP address 172.20.0.1 with no bridge ports (no connection to any of the outside network interfaces). For custom bridge configuration, visit this link
  • Add the following container templates by default into the disk image
    • Debian 9.0: pveam download local debian-9.0-standard_9.7-1_amd64.tar.gz
    • Ubuntu 16.04: pveam download local ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz
    • Ubuntu 18.04: pveam download local ubuntu-18.04-standard_18.04.1-1_amd64.tar.gz

Notes

  • Unfortunately, when there are no SSH keys, Proxmox decides to automatically create one during boot. The disk image, however, does not have any SSH keys by default. You can verify this by creating multiple Proxmox machines and seeing different SSH keys for each machine.

Updates

September 8, 2019

  • Updates / Upgrades
    • apt-get update && apt-get upgrade && apt-get dist-upgrade
  • Additional packages: tmux, screen and git
  • Additional templates: Ubuntu 16.04 and Ubuntu 18.04
Clone this wiki locally