Proxmox
https://shop.maurer-it.com/clientarea.php - My License
- Need to configure Proxmox vms to use less RAM for buffer cache
Quick Help
Machine ID Causing DHCP to give the same IP
vi /etc/netplan/... dhcp-identifier: mac truncate -s 0 /etc/machine-id rm /var/lib/dbus/machine-id ln -s /etc/machine-id /var/lib/dbus/machine-id
Disk Operations
- grow, expand, mount new disk operations
# resize the disk in pve console parted /dev/sda resizepart 3 quit reboot # PV pvresize /dev/sda3 lvresize --extents +100%FREE --resizefs /dev/mapper/ubuntu--vg-ubuntu--lv # X growpart /dev/xvdf 1 resize2fs /dev/xvdf1 # utils lsblk df -hT cat /proc/partitions # add disk lsblk pvs, vgs, lvs pvdisplay, vgdisplay, lvdisplay pvcreate /dev/sdb vgcreate vgname /dev/sdb lvcreate -L 100G -n mylogicalvolume vgname mkfs.ext4 /dev/myvolumegroup/mylogicalvolume mkdir /mnt/data mount /dev/myvolumegroup/mylogicalvolume /mnt/myvolume # add to /etc/fstab /dev/ubuntu-vg2/ubuntu-lv2 /mnt/data ext4 defaults 0 2
- First things to do - TechnoTim
Links
Network
Software Defined Network (SDN)
NFS
# replace on with options zfs set sharenfs=on rpool3/share/data cd /etc/exports.d zfs.exports
Samba SMB
# replace on with options zfs set sharesmb=on rpool3/share/data
VLAN
- Reduce MTU to account for tagging?
Storage
Private DNS
- Use pihole local DNS
Timemachine
- Not really usable due to chatty network requests
Trainings on YouTube
Article with good detail
Realtek 8125 Driver
- Get the driver
- See Linux section
- Instructions
cd r8125-9.005.01/ apt install build-essential apt install dkms dpkg -l |grep pve-kernel # get the latest version apt install pve-headers-5.4.106-1-pve ./autorun.sh- Get the driver
Terraform provider
GuestAgent
- Options → QEMU Guest Agent → Enable and reboot
apt-get install qemu-guest-agent yum install qemu-guest-agent systemctl enable qemu-guest-agent systemctl start qemu-guest-agent
Using Cloud Images
Install virt-customize
apt install libguestfs-tools
Create Template
export ID=8005 export DIST=noble # 24.04 # This image is QCOW format wget https://cloud-images.ubuntu.com/$DIST/current/${DIST}-server-cloudimg-amd64.img virt-customize -a ${DIST}-server-cloudimg-amd64.img --install qemu-guest-agent qm create $ID --memory 2048 --core 2 --name ubuntu-$DIST --net0 virtio,bridge=vmbr0 qm importdisk $ID ${DIST}-server-cloudimg-amd64.img local qm set $ID --scsihw virtio-scsi-pci --scsi0 local:${ID}/vm-${ID}-disk-0.raw qm set $ID --ide2 local:cloudinit qm set $ID --boot c --bootdisk scsi0 qm set $ID --serial0 socket --vga serial0 qm set $ID --agent enabled=1 virt-customize -a /var/lib/vz/images/$ID/vm-${ID}-disk-0.raw \ --truncate /etc/machine-id \ --delete /var/lib/dbus/machine-id qm set $ID --ipconfig0 ip=dhcp qm set $ID --sshkeys ./myron.pub # convert to template qm template $ID # create template # use it qm clone $ID 135 --name name_it --full