VirtualBox

Changeset 78387 in vbox for trunk/src


Ignore:
Timestamp:
May 6, 2019 12:32:22 PM (6 years ago)
Author:
vboxsync
Message:

Main: bugref:8612: Fixed error during MacOS guest creation using GUI

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r78292 r78387  
    233233    }
    234234
    235     /* Liomit the AHCI port count if it's used because windows has trouble with
     235    /* Limit the AHCI port count if it's used because windows has trouble with
    236236       too many ports and other guest (OS X in particular) may take extra long
    237237       to boot: */
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r78352 r78387  
    1515915159                       ? settings::Hardware::LongMode_Enabled : settings::Hardware::LongMode_Disabled;
    1516015160
     15161    /* Let the OS type enable the X2APIC */
     15162    mHWData->mX2APIC = osType->i_recommendedX2APIC();
     15163
     15164    /* This one covers IOAPICEnabled. */
     15165    mBIOSSettings->i_applyDefaults(osType);
     15166
     15167    /* Initialize default record settings. */
     15168    mRecordingSettings->i_applyDefaults();
     15169
     15170    /* Initialize default BIOS settings here */
     15171    /* Hardware virtualization must be ON by default */
     15172    mHWData->mAPIC = true;
     15173    mHWData->mHWVirtExEnabled = true;
     15174
     15175    rc = osType->COMGETTER(RecommendedRAM)(&mHWData->mMemorySize);
     15176    if (FAILED(rc)) return rc;
     15177
     15178    rc = osType->COMGETTER(RecommendedGraphicsController)(&mHWData->mGraphicsControllerType);
     15179    if (FAILED(rc)) return rc;
     15180
     15181    rc = osType->COMGETTER(RecommendedVRAM)(&mHWData->mVRAMSize);
     15182    if (FAILED(rc)) return rc;
     15183
     15184    rc = osType->COMGETTER(Recommended2DVideoAcceleration)(&mHWData->mAccelerate2DVideoEnabled);
     15185    if (FAILED(rc)) return rc;
     15186
     15187    rc = osType->COMGETTER(Recommended3DAcceleration)(&mHWData->mAccelerate3DEnabled);
     15188    if (FAILED(rc)) return rc;
     15189
     15190    rc = osType->COMGETTER(RecommendedFirmware)(&mHWData->mFirmwareType);
     15191    if (FAILED(rc)) return rc;
     15192
     15193    rc = osType->COMGETTER(RecommendedPAE)(&mHWData->mPAEEnabled);
     15194    if (FAILED(rc)) return rc;
     15195
     15196    rc = osType->COMGETTER(RecommendedHPET)(&mHWData->mHPETEnabled);
     15197    if (FAILED(rc)) return rc;
     15198
     15199    BOOL mRTCUseUTC;
     15200    rc = osType->COMGETTER(RecommendedRTCUseUTC)(&mRTCUseUTC);
     15201    if (FAILED(rc)) return rc;
     15202
     15203    setRTCUseUTC(mRTCUseUTC);
     15204    if (FAILED(rc)) return rc;
     15205
     15206    ChipsetType_T enmChipsetType;
     15207    rc = osType->COMGETTER(RecommendedChipset)(&enmChipsetType);
     15208    if (FAILED(rc)) return rc;
     15209
     15210    rc = COMSETTER(ChipsetType)(enmChipsetType);
     15211    if (FAILED(rc)) return rc;
     15212
     15213    rc = osType->COMGETTER(RecommendedTFReset)(&mHWData->mTripleFaultReset);
     15214    if (FAILED(rc)) return rc;
     15215
     15216    size_t mnet = mNetworkAdapters.size(); NOREF(mnet);
    1516115217    /* Apply network adapters defaults */
    1516215218    for (ULONG slot = 0; slot < mNetworkAdapters.size(); ++slot)
     
    1517015226    for (ULONG slot = 0; slot < RT_ELEMENTS(mParallelPorts); ++slot)
    1517115227        mParallelPorts[slot]->i_applyDefaults();
    15172 
    15173 
    15174     /* Let the OS type enable the X2APIC */
    15175     mHWData->mX2APIC = osType->i_recommendedX2APIC();
    15176 
    15177     /* This one covers IOAPICEnabled. */
    15178     mBIOSSettings->i_applyDefaults(osType);
    15179 
    15180     /* Initialize default record settings. */
    15181     mRecordingSettings->i_applyDefaults();
    15182 
    15183     /* Initialize default BIOS settings here */
    15184     /* Hardware virtualization must be ON by default */
    15185     //mHWData->mAPIC = true;
    15186     //mHWData->mHWVirtExEnabled = true;
    15187 
    15188     rc = osType->COMGETTER(RecommendedRAM)(&mHWData->mMemorySize);
    15189     if (FAILED(rc)) return rc;
    15190 
    15191     rc = osType->COMGETTER(RecommendedGraphicsController)(&mHWData->mGraphicsControllerType);
    15192     if (FAILED(rc)) return rc;
    15193 
    15194     rc = osType->COMGETTER(RecommendedVRAM)(&mHWData->mVRAMSize);
    15195     if (FAILED(rc)) return rc;
    15196 
    15197     rc = osType->COMGETTER(Recommended2DVideoAcceleration)(&mHWData->mAccelerate2DVideoEnabled);
    15198     if (FAILED(rc)) return rc;
    15199 
    15200     rc = osType->COMGETTER(Recommended3DAcceleration)(&mHWData->mAccelerate3DEnabled);
    15201     if (FAILED(rc)) return rc;
    15202 
    15203     rc = osType->COMGETTER(RecommendedFirmware)(&mHWData->mFirmwareType);
    15204     if (FAILED(rc)) return rc;
    15205 
    15206     rc = osType->COMGETTER(RecommendedPAE)(&mHWData->mPAEEnabled);
    15207     if (FAILED(rc)) return rc;
    15208 
    15209     rc = osType->COMGETTER(RecommendedHPET)(&mHWData->mHPETEnabled);
    15210     if (FAILED(rc)) return rc;
    15211 
    15212     BOOL mRTCUseUTC;
    15213     rc = osType->COMGETTER(RecommendedRTCUseUTC)(&mRTCUseUTC);
    15214     if (FAILED(rc)) return rc;
    15215 
    15216     setRTCUseUTC(mRTCUseUTC);
    15217     if (FAILED(rc)) return rc;
    15218 
    15219     rc = osType->COMGETTER(RecommendedChipset)(&mHWData->mChipsetType);
    15220     if (FAILED(rc)) return rc;
    15221 
    15222     rc = osType->COMGETTER(RecommendedTFReset)(&mHWData->mTripleFaultReset);
    15223     if (FAILED(rc)) return rc;
    1522415228
    1522515229    /* Audio stuff. */
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