VirtualBox

Changeset 18702 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2009 4:07:32 PM (16 years ago)
Author:
vboxsync
Message:

OVF: enable the I/O APIC on import of Windows machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r18685 r18702  
    18411841
    18421842    // rollback for errors:
    1843     // 1) a list of images that we created/imported
     1843    // a list of images that we created/imported
    18441844    list<MyHardDiskAttachment> llHardDiskAttachments;
    18451845    list< ComPtr<IHardDisk> > llHardDisksCreated;
     
    19221922            rc = pNewMachine->COMSETTER(VRAMSize)(vramVBox);
    19231923            if (FAILED(rc)) throw rc;
     1924
     1925            /* I/O APIC: so far we have no setting for this. Enable it if we
     1926              import a Windows VM because if if Windows was installed without IOAPIC,
     1927              it will not mind finding an one later on, but if Windows was installed
     1928              _with_ an IOAPIC, it will bluescreen if it's not found */
     1929            Bstr bstrFamilyId;
     1930            rc = osType->COMGETTER(FamilyId)(bstrFamilyId.asOutParam());
     1931            if (FAILED(rc)) throw rc;
     1932
     1933            Utf8Str strFamilyId(bstrFamilyId);
     1934            if (strFamilyId == "Windows")
     1935            {
     1936                ComPtr<IBIOSSettings> pBIOSSettings;
     1937                rc = pNewMachine->COMGETTER(BIOSSettings)(pBIOSSettings.asOutParam());
     1938                if (FAILED(rc)) throw rc;
     1939
     1940                rc = pBIOSSettings->COMSETTER(IOAPICEnabled)(TRUE);
     1941                if (FAILED(rc)) throw rc;
     1942            }
    19241943
    19251944            /* Audio Adapter */
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