Notes on various ProxMox Configurations

Creating the Windows Template

Hardware:

Follow the best practices given https://pve.proxmox.com/wiki/Windows_2022_guest_best_practices for creating the VM. Weirdly enough, I couldn't get this to work for Windows 2022 Server, It did work for Windows 2019 Server. For a full reason why, see: ProxMoxWindows2022.

ProxMox Setup

Installed Windows 2019 with all the updates and Firefox. Then ran:

C:\Windows\System32\Sysprep\sysprep.exe /oobe /generalize /mode:vm /shutdown

Then I made it into a template.

Clone the template (not linked!!!) and now I have a machine that can be used for students!

Eventual setup to allow students to create machines

Take a look at http://retheesh.blogspot.com/2013/11/server-provisioning-de-provisioning-on.html

Problems

Warning 1 Subtrees have overcommitted pool target_size_bytes

For those who may come after me... I had the same problem and was able to fix it as follows. First run the command:

ceph osd pool autoscale-status

It gave:

POOL

SIZE

TARGET SIZE

RATE

RAW CAPACITY

RATIO

TARGET RATIO

EFFECTIVE RATIO

BIAS

PG_NUM

NEW PG_NUM

AUTOSCALE

PROFILE

device_health_metrics

36087k

blank

3.0

59616G

0.0000

blank

blank

1.0

1

blank

on

scale-up

CephPool

713.5G

20000G

3.0

59616G

1.0064

blank

blank

1.0

32

blank

on

scale-up

I noticed that if you take 59616, the raw capacity, and divide it by three (that's the number of replicas I have and the default value if I remember right), that's how much space you really have avaible. Divide that into the target size of 20,000G and you get the ratio of 1.0064. Hence the target size needs to be reduced. How much? 20000G/1.0064 should do the trick. I calculated mine based on what I know the raw disk space really is and came up with 19868G for target size. Changing that in the WebGUI->node->Ceph->pool, select pool name and edit, set target size to lower value calculated for your case and save. Be patient, it takes a few minutes for the system to catch up and remove the warning. For me it took about 5 minutes.

A second look at the status produced:

POOL|SIZE|TARGET SIZE|RATE|RAW CAPACITY|RATIO|TARGET RATIO|EFFECTIVE RATIO|BIAS|PG_NUM|NEW PG_NUM|AUTOSCALE|PROFILE ... CephPool|713.5G|19868G|3.0||59616G|0.9998|1.0|32|256|on|scale-up

and the warning is gone!

ProxMox (last edited 2023-05-21 16:00:36 by scot)