Some of the best Proxmox videos are a series provided by Jay LaCroix on the Learn Linux TV YouTube channel. I followed along with the videos on my own Proxmox server. There was so much good information that rather than take notes, I decided to work through the entire series then repeat while taking notes.
Virtual Machines (VMs)
When defining VM, discard (for ssd) and qemu agent should be checked
use scsi hard disk for Windows
cloud-init
sudo apt install qemu-guest-agent
sudo systemctl start qemu-guest-agent
sudo systemctl status qemu-guest-agent
sudo systemctl enable qemu-guest-agent
sudo systemctl s qemu-guest-agent
Windows VMs
For disk, use SCSI bus and cache write back and discard for ssd
Templates
When creating a template there needs to be some tidying up:
sudo apt clean
sudo apt autoremove
sudo rm /etc/ssh/ssh_host_*
sudo truncate -s 0 /etc/machine-id
verify that: /var/lib/dbus/machine-id -> /etc/machine-id
sudo apt install cloud-init
sudo poweroff
add Cloud-Init drive to template hardware
edit cloud-init to add user, password and SSH public key
clone CT template with Mode: Full Clone
cloud-init not available for containers
sudo dpkg-reconfigure openssh-server
change /etc/hosts
change /etc/hostname
Containers
Proxmox uses linux containers or LXCs (lex-see)
The user created in a container is root so you need to add your own user:
adduser lynn
usermod -aG sudo lynn
One limitation of containers is that live migration is not supported. The container must be stopped before migrating it to a different node.
Firewall
Command Line
qm list
qm start 101
qm stop 101
qm reboot 101
qm reset 101 (last resort)
qm stop 101 (last resort)
Ubuntu Server Template Checklist
install nano
install up.sh