Skip to content

Commit c4b8252

Browse files
author
laksith19
committed
add some proxmox docs
1 parent a06d43f commit c4b8252

1 file changed

Lines changed: 54 additions & 8 deletions

File tree

docs/staff-docs/nix/new-hosts.md

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,75 @@ when writing, go to nix options search, thoroughly look over all options availab
3131

3232

3333
## 2. New VM on Proxmox
34-
### General
3534

3635
- click create virtual machine
36+
- Make sure you have the Advanced box checked at the bottom to be able to see all the config options, when
37+
provisioning a new VM.
38+
- There is a very helpful "Help" button in the bottom left of the VM creation window that will take you to the
39+
appropriate page in the Proxmox docs that can provide really helpful information / context.
40+
- Things keep chaning and new tools and features are introduced fairly often, so if you think something in these
41+
docs need to be updated talk to a root staffer (the current SMs will be a good place to start).
42+
43+
### General
44+
45+
- Select a Node that has capacity for the about of CPU and RAM resources you wish to allocate.
3746
- choose VM name from my little pony (check LDAP and run dig to ensure host doesnt already exist!) (TODO link LDAP docs)
38-
- select start at boot
47+
- leave the resource pool empty (TODO: reconsider using this feature as more guests are migrated to proxmox)
48+
- select start at boot (order, delay and timeout can be left as is)
49+
- Add a Tag for the OS the VM is going to run (nix / debian) and the primary purpose of the VM (webhost, staffvm etc...)
3950

4051
### OS
4152

42-
- select nix ISO image
53+
- If you're going to be using a network PXE boot (TODO: set one up this would be real nice), select "Do not use any media".
54+
Otherwise select the storage where you uploaded / downloaded the ISO and the ISO image you want to boot from.
55+
- Leave the Type and Version as their default values (Linux / xxx Kernel)
4356

4457
### System
45-
46-
- graphic card: SPICE
58+
<!-- TODO @laksith19: Usually prefer SPICE / QXL but it seems like there's a bug in the Driver in the
59+
current lts kerne (6.12.40) that cause the guest displays to freeze up randomly and prevent reboots without
60+
using a hypervisor level reset (basically a power-cycle) which is not ideal. As we're probably never going to
61+
have graphical VMs, the graphics performance is not important and it's probably best to just stick to default.
62+
Leaving this TODO, in case it's worth re-visiting in the future. -->
63+
- graphic card: Default
4764
- machine: q35
4865
- SCSI Controller: VirtIO SCSI single
4966
- enable QEMU agent
5067
- BIOS: OVMF (UEFI)
51-
- EFI Storage: primary-zfs
68+
- EFI Storage: vmdata
5269
- de-select Pre-Enroll keys
70+
- de-select Add TPM (Unless you really know you need it)
5371

5472
### Disks
55-
- enable SSD emulation
56-
- storage: primary-zfs
73+
Most of these options are the default values enumarated for completion, **except for the ones in bold**
74+
- Bus/Device: SCSI 0
75+
- SCSI Controller: VirtIO SCSI single
76+
- Cache: Default (No cache) (This just means that the host page cache is not used and the performace will be similar
77+
to the VM having direct access to the disks. If you know what you're doing and think for the use case of the VM there's
78+
a better a option the [Performance Tweaks](https://pve.proxmox.com/wiki/Performance_Tweaks#Disk_Cache)
79+
section of the Proxmox Wiki is a really helpful guide.)
80+
- **Enable Discard**
81+
- Enable IO Thread
82+
- **Storage: vmdata**
83+
- **Disk size: xxGiB**: This space is thinly provisioned (or sparse) in ZFS and will not be used or reserved for the VM unless
84+
actually used by the VM. This allows us to be able to overprovision VM disks with additional capacity, but make sure you keep an
85+
eye the actual usage of the underlying storage pool (vmdata in this case).
86+
- Format: Raw disk image
87+
- **Enable SSD emulation**
88+
- Disable Read-only
89+
- Enable Backup
90+
- Disable Skip replication
91+
- Async IO: Default (io_uring) (TODO: Probably worth changing this to native when we eventually
92+
migrate to CEPH - [context](https://forum.proxmox.com/threads/proxmox-ve-7-2-benchmark-aio-native-io_uring-and-iothreads.116755/))
93+
94+
### CPU
95+
Ignore the advanced settings for this section the defaults are sufficient.
96+
- Sockets: 1
97+
- Cores: 2 (a generalized default suggestion that should work for most use cases).
98+
- Type: x86-64-v2-AES (Select the lowest compatible virtual QEMU CPU type in the cluster, this is important for live
99+
migrations to work. Technically setting this to host will give you maximum performance but you'll not be able to
100+
live migrate the VM from one host to another.)
101+
102+
### Memory
57103

58104
### Other Hardware
59105
- give at least 32GB mem!

0 commit comments

Comments
 (0)