Page tree
Skip to end of metadata
Go to start of metadata

The license-related information are now typically stored in ACPI tables, which can be accessed through sysfs. The ones important for Windows are:

  • /sys/firmware/acpi/tables/MSDM
  • /sys/firmware/acpi/tables/SLIC

These files can be directly copied to a suitable locations to be passed to the virtual machine.

Further, there are various system identification information provided trough SMBIOS, which on Linux can be obtained by the dmidecode command, like:

  • dmidecode -t 0
  • dmidecode -t 1
  • ...

Potentially relevant are fields of type 0–4.

For the QEMU virtual machine, all this information can be passed like:

qemu-system-x86_64 \
	-smbios "type=0,vendor=LENOVO,version=R07ET71W (2.11 ),date=09/26/2016,release=2.11" \
	-smbios "type=1,manufacturer=LENOVO,product=20FX0026MC,version=ThinkPad T460p,serial=XXXXXXXX,uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX,sku=LENOVO_MT_20FX_BU_Think_FM_ThinkPad T460p,family=ThinkPad T460p" \
	-smbios "type=2,manufacturer=LENOVO,product=20FX0026MC,version=SDK0J40705 WIN,serial=XXXXXXXXXXX" \
	-smbios "type=3,manufacturer=LENOVO,serial=XXXXXXXX" \
	-smbios "type=4,sock_pfx=U3E1,manufacturer=Intel(R) Corporation,version=Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz" \
	-acpitable file=path/to/MSDM \
	-acpitable file=path/to/SLIC \

With these parameters, Windows can be installed using the official installation media for appropriate version and the license should be automatically recognized and activated.

  • No labels