Set Baseboard Serial Number for a windows guest on proxmox

Ramo026

Member
Sep 14, 2023
6
1
8
Hello everyone.
( First sorry for my English )
I am using proxmox v7.4-15
I have a windows server and I am running a licensed program which needs ( BIOS serial - Baseboard Serial and Processor serial ) numbers in order to work
So in the /etc/pve/qemu-servers I have set the BIOS serial and it works just fine and I can verify that by wmic bios get serialnumber command in windows powershell.
But I have problem with baseboard serial number which I can't find a way to set it in proxmox ( I can verify that the Baseboard SN in not there by wmic baseboard get serialnumber command in windows powershell)

Here you can see my qemu-server .conf file

Screenshot_20240612_073512.png

I have figured out that the win32_baseboard CIMInstance under root/cmv2 class is responsible to store the baseboard's information.

here you can see the Win32_Bios CIMInstance is working fine with the guest

Screenshot_20240612_105127.png
 
Last edited:
After some research I figured out that CIMInstance Classes like win32_baseboard and win32_bios read their information from host dmidecode
so I needed to pass dmidecode to the guest, in my case : win32_bios reads dmidecode -t 1 and win32_baseboard reads dmidecode -t 2. So all I needed to do for set win32_baseboard values in the guest was to add a args to vm.conf file by the command :
Code:
root@pve:~#qm set <VmID> --args "-smibios type=2,serial=zaqwsxcde"

103conf file.png

windows11 - getinstance baseboard.png
 
Last edited:
  • Like
Reactions: B.Otto
For anyone coming here and trying the above command, smibios should be smbios.
Code:
root@pve:~#qm set <VmID> --args "-smbios type=2,serial=zaqwsxcde"
 
  • Like
Reactions: Ramo026