Wednesday, May 18, 2022

Adding motherboard information to Windows VM

This is really a note to self about how to add motherboard information to a Windows VM, so that OEM activation of Windows tied to the motherboard can be migrated when moving from bare metal to virtual machine.

I got the information from this thread in the Proxmox forum.

1. Get host system information by running:

dmidecode | grep -A8 'System Information'

Example output:
System Information
Manufacturer: LENOVO
Product Name: 11DA001UUS
Version: ThinkCentre M70t
Serial Number: AB0EGVXE
UUID: 1ab23c4f-8842-11eb-b3a5-c45526114300
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_11DA_BU_Think_FM_ThinkCentre M70t
Family: ThinkCentre M70t


2. Create slic_table cat file:

cat /sys/firmware/acpi/tables/SLIC > /YOUR-PATH-TO-SAVE-FILE/slic_table

slic_table file should now be at:
/YOUR-PATH-TO-FILE/slic_table

3. Edit VM (XXX.conf) file:
nano /etc/pve/qemu-server/<XXX>.conf
 
Add the following to the configuration and edit PATH-TO-FILE and fill in smbios1 with information from step 1.

args: -acpitable file=/PATH-TO-FILE/slic_table
smbios1: uuid=<UUID>,manufacturer=<manufacturer>,product=<prodcut>,serial=<serial>

Then, save the file and start the VM.

I will be testing this soon when I find time, I have a Dell Precision Tower 3620 that came with OEM activated Windows.

No comments: