Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.42 KB

virtualbox-motherboard-cpu-id.md

File metadata and controls

73 lines (48 loc) · 1.42 KB

virtualbox motherboard cpu id

notes:

  • to make setextradata changes effective vm must restarted with a vm shutdown
  • getextradata don't report value if override not set with setextradata
  • setextradata simply set a registry into your .vbox file, this will not imply it will match with your config ( for example the hdd may use piix3ide instead of ahci controller )

motherboard

get motherboard id

from host shell

VBoxManage getextradata VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial"

from guest powershell

Get-CimInstance Win32_BaseBoard
Get-CimInstance Win32_BaseBoard | Select -ExpandProperty SerialNumber

set motherboard id

VBoxManage setextradata VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "SERIAL"

bios

get bios id

from host shell

VBoxManage getextradata VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" 

from guest powershell

wmic bios get serialnumber

set bios id

VBoxManage setextradata VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "SERIAL"

hard disk

get hard disk id

from host shell

VBoxManage getextradata VMNAME "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber"

from guest powershell

wmic diskdrive get serialnumber

set hard disk id

VBoxManage setextradata VMNAME "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "SERIAL"