How to install virtualbox bios uuid

I am trying to use my own Windows installation in VirtualBox, and since it has an OEM license, I need to reuse the BIOS UUID for activation.

Some system information:
OS: Arch Linux, kernel 4.1.6-1
Virtualbox: 5.0.4_OSEr102546

The device uses a raw vmdk disk, limited to 6 partitions, which were used for native Windows installation.

I already applied commands like modifyvm --hardwareuuid and setextradata for a lot of dmi data.

Relevant lines from config:

<ExtraData>
  ...
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiBoardLocInChass" value="Type2 - Board Chassis Location"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" value="Lancer 5A5"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiBoardSerial" value="string:1052326401165"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiBoardVendor" value="LENOVO"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiBoardVersion" value="31900058WIN"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiChassisSerial" value="YB10465037"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiChassisVendor" value="LENOVO"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiChassisVersion" value="Lenovo Z50-70"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiProcManufacturer" value="Intel(R) Corporation"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiProcVersion" value="Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" value="1abbb2fc-c938-11e4-a961-68f728a77e71"/>
  <ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/UUID" value="bytes:Gruy/Mk4EeSpYWj3KKd+cQ=="/><!-- UUID in BASE64 -->
</ExtraData>
<Hardware version="2" uuid="{1abbb2fc-c938-11e4-a961-68f728a77e71}">
  <CPU count="1" hotplug="false">
    <HardwareVirtEx enabled="true"/>
    <HardwareVirtExNestedPaging enabled="true"/>
    <HardwareVirtExVPID enabled="true"/>
    <HardwareVirtExUX enabled="true"/>
    <PAE enabled="true"/>
    <LongMode enabled="true"/>
    <HardwareVirtExLargePages enabled="false"/>
    <HardwareVirtForce enabled="false"/>
  </CPU>
  <Memory RAMSize="2560" PageFusion="false"/>
  <Firmware type="EFI"/>
  <HID Pointing="USBTablet" Keyboard="PS2Keyboard"/>
  <HPET enabled="false"/>
  <Chipset type="PIIX3"/>

Vboxmanage showvminfo returns this line:

Hardware UUID:   1abbb2fc-c938-11e4-a961-68f728a77e71

, , VirtualBox hardwareuuid, dmi DmiSystemUuid UUID ( , - base64 ).

, , VirtualBox - , UUID . ( ):

00:00:00.586671 ************************* CFGM dump *************************
00:00:00.586674 [/] (level 0)
00:00:00.586680   CSAMEnabled       <integer> = 0x0000000000000001 (1)
00:00:00.586683   CpuExecutionCap   <integer> = 0x0000000000000064 (100)
00:00:00.586686   EnablePAE         <integer> = 0x0000000000000001 (1)
00:00:00.586687   HMEnabled         <integer> = 0x0000000000000001 (1)
00:00:00.586689   MemBalloonSize    <integer> = 0x0000000000000000 (0)
00:00:00.586690   Name              <string>  = "Windows 8" (cb=10)
00:00:00.586692   NumCPUs           <integer> = 0x0000000000000001 (1)
00:00:00.586693   PATMEnabled       <integer> = 0x0000000000000001 (1)
00:00:00.586695   PageFusionAllowed <integer> = 0x0000000000000000 (0)
00:00:00.586696   RamHoleSize       <integer> = 0x0000000020000000 (536 870 912, 512 MB)
00:00:00.586699   RamSize           <integer> = 0x00000000a0000000 (2 684 354 560, 2 GB)
00:00:00.586701   RawR0Enabled      <integer> = 0x0000000000000001 (1)
00:00:00.586702   RawR3Enabled      <integer> = 0x0000000000000001 (1)
00:00:00.586704   TimerMillies      <integer> = 0x000000000000000a (10)
00:00:00.586705   UUID              <bytes>   = "fc b2 bb 1a 38 c9 e4 11 a9 61 68 f7 28 a7 7e 71" (cb=16)

, UUID. Windows 8, wmic, UUID: fcb2bb1a-38c9-e411-a961-68f728a77e71, 1abbb2fc-c938-11e4-a961-68f728a77e71.

, extradata root, :

<ExtraDataItem name="VBoxInternal/UUID" value="bytes:Gruy/Mk4EeSpYWj3KKd+cQ=="/>

, wmic , 'fc'. Windows .

, .

- , ?

+4
2

:

<ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" value="1abbb2fc-c938-11e4-a961-68f728a77e71"/>

, :

<ExtraDataItem name="VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" value="fcb2bb1a-38c9-e411-a961-68f728a77e71"/>
+1

, , UUID, ( https://forums.gentoo. org/viewtopic-t-1071844-start-0.html ( , Windows), - , ):

, , Windows , " " , , , :

  1. UUID
  2. , Windows
  3. UUID , Windows
  4. OEM- , SLIC .

: 1. UUID - , UUID . Linux , , blkid PARTUUID . 2. " " - , Windows\System32\winload.exe. , MS " ". ( , . , , , () " ". 3. , / SLIC Virtualbox VM. , , KVM/libvirt/virsh. 4. , VIrtualBox VBoxManage UUID, UUID . , VirtualBox ( , ), , () SATA IDE. VIrtualBox, virtio nvme, SOL . , -.

, HKLM\SYSTEM\HardwareConfig , , -, , " ". VIrtualBox, VirtualBox. ( Win 10 VM, Win 8 - , Win 8 , . " " " BIOS Dmi".

SATA, vnme - , ( ) UUID .

0

Source: https://habr.com/ru/post/1607989/


All Articles