VirtualBox

Changeset 101418 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 12, 2023 1:07:17 AM (16 months ago)
Author:
vboxsync
Message:

Main: Added VM setting (AutoSerialNumGen) for enabling automatic VM serial number generation jiraref:VBP-238

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImplConfigX86.cpp

    r101381 r101418  
    15951595            hrc = firmwareSettings->COMGETTER(SMBIOSUuidLittleEndian)(&fUuidLe);                H();
    15961596            InsertConfigInteger(pBiosCfg,  "UuidLe",               fUuidLe);
     1597            BOOL fAutoSerialNumGen;
     1598            hrc = firmwareSettings->COMGETTER(AutoSerialNumGen)(&fAutoSerialNumGen);            H();
     1599            if (fAutoSerialNumGen)
     1600                InsertConfigString(pBiosCfg,  "DmiSystemSerial", "VirtualBox-<DmiSystemUuid>");
    15971601            InsertConfigNode(pBiosCfg,     "NetBoot", &pNetBootCfg);
    15981602            InsertConfigInteger(pBiosCfg,  "McfgBase",   uMcfgBase);
     
    16741678            hrc = firmwareSettings->COMGETTER(SMBIOSUuidLittleEndian)(&fUuidLe);                H();
    16751679
     1680            BOOL fAutoSerialNumGen;
     1681            hrc = firmwareSettings->COMGETTER(AutoSerialNumGen)(&fAutoSerialNumGen);            H();
     1682
    16761683            /* Get graphics mode settings */
    16771684            uint32_t u32GraphicsMode = UINT32_MAX;
     
    17371744            InsertConfigBytes(pCfg,    "UUID", &HardwareUuid,sizeof(HardwareUuid));
    17381745            InsertConfigInteger(pCfg,  "UuidLe",      fUuidLe);
     1746            if (fAutoSerialNumGen)
     1747                InsertConfigString(pCfg,  "DmiSystemSerial", "VirtualBox-<DmiSystemUuid>");
    17391748            InsertConfigInteger(pCfg,  "64BitEntry",  f64BitEntry); /* boolean */
    17401749            InsertConfigString(pCfg,   "NvramFile",   strNvram);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette