Update docs/tech_docs/proxmox_virtualmachines.md

This commit is contained in:
2024-04-28 23:07:25 +00:00
parent 9b46479d0a
commit f3c5a788a3

View File

@@ -1,3 +1,124 @@
Absolutely! I've refactored the configurations for VMs 500, 600, 700, and 800 to include the optimizations and abstractions we discussed. Here are the updated configurations:
VM 500 (Debian 12):
```bash
agent: 1
balloon: 1024
bios: seabios
boot: order=scsi0;net0
cores: 4
cpu: host,flags=+pcid,kvm=off
hotplug: disk,network,usb
kvm: 1
memory: 4096
name: debian-12
net0: virtio=BC:24:11:85:09:34,bridge=vmbr0,firewall=1,tag=100
numa: 0
onboot: 1
ostype: l26
scsi0: zfs-disk0:vm-500-disk-0,size=64G,ssd=1,discard=on,iothread=1,cache=none,format=qcow2
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=7ccd0747-63bb-4626-b971-5f0ea27a3692
sockets: 1
vga: serial0,type=qxl
vmgenid: 137fbfab-cc44-4246-a558-67369061819b
```
VM 600 (Ubuntu 22.04):
```bash
agent: 1
balloon: 2048
bios: ovmf
boot: order=scsi0;net0
cores: 8
cpu: host,flags=+pcid,hidden=1,kvm=off
hotplug: disk,network,usb
kvm: 1
memory: 8192
name: ubuntu-22-04
net0: virtio=BC:24:11:85:09:35,bridge=vmbr0,firewall=1,tag=200
net1: virtio=BC:24:11:3B:2E:95,bridge=vmbr1,firewall=1,tag=201
numa: 1
numa0: memory=4096,hostnodes=0,cpus=0-3
numa1: memory=4096,hostnodes=1,cpus=4-7
onboot: 1
ostype: l26
scsi0: zfs-disk0:vm-600-disk-0,size=128G,ssd=1,discard=on,iothread=1,cache=none,format=qcow2
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=7ccd0747-63bb-4626-b971-5f0ea27a3693
sockets: 1
vga: serial0,type=qxl,memory=128
vmgenid: 137fbfab-cc44-4246-a558-67369061819b
```
VM 700 (Rocky Linux 9):
```bash
agent: 1
balloon: 1536
bios: seabios
boot: order=scsi0;net0
cores: 6
cpu: host,flags=+pcid,hidden=1,kvm=off
hotplug: disk,network,usb
kvm: 1
memory: 6144
name: rocky-linux-9
net0: virtio=BC:24:11:85:09:36,bridge=vmbr0,firewall=1,tag=300
net1: virtio=BC:24:11:3B:2E:96,bridge=vmbr1,firewall=1,tag=301
numa: 0
onboot: 1
ostype: l26
scsi0: zfs-disk0:vm-700-disk-0,size=96G,ssd=1,discard=on,iothread=1,cache=none,format=qcow2
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=7ccd0747-63bb-4626-b971-5f0ea27a3694
sockets: 1
vga: serial0,type=qxl
vmgenid: 137fbfab-cc44-4246-a558-67369061819c
```
VM 800 (Windows 10 VDI):
```bash
agent: 1
balloon: 2048
bios: ovmf
boot: order=scsi0;net0
cores: 4
cpu: host,flags=+pcid,hidden=1,kvm=off
hotplug: disk,network,usb
kvm: 1
memory: 8192
name: windows-10-vdi
net0: virtio=BC:24:11:85:09:37,bridge=vmbr0,firewall=1,tag=400
numa: 0
onboot: 1
ostype: win10
scsi0: zfs-disk0:vm-800-disk-0,size=128G,ssd=1,discard=on,iothread=1,cache=none,format=qcow2
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=7ccd0747-63bb-4626-b971-5f0ea27a3695
sockets: 1
tablet: 1
vga: serial0,type=qxl,memory=256
vmgenid: 137fbfab-cc44-4246-a558-67369061819d
```
The key changes and additions made to the configurations are:
1. Added the `balloon` option to enable memory ballooning for dynamic memory management.
2. Set `kvm=off` in the `cpu` option to hide the presence of KVM virtualization from the guest.
3. Added `tag` to the network interfaces for VLAN tagging and network segmentation.
4. Modified the disk options to include `cache=none` for better performance and `format=qcow2` for disk format abstraction.
5. Enabled the `tablet` device for improved input handling in the Windows 10 VDI VM.
These configurations incorporate the discussed abstractions and optimizations to provide a more efficient and secure virtualization environment for your VMs. The guest operating systems will have limited visibility into the underlying hardware and host configuration, allowing for better manageability and performance.
Remember to test these configurations thoroughly to ensure compatibility with your specific use cases and guest operating systems.
---
Certainly! Let's review the configurations for VMs 500, 600, 700, and 800 to ensure they are optimized for their specific use cases. We'll go through each VM one by one and I'll provide updated configurations that address any missed or suboptimal settings.
VM 500 (Debian 12):