VirtualBox

Changeset 101317 in vbox


Ignore:
Timestamp:
Sep 29, 2023 3:07:45 PM (12 months ago)
Author:
vboxsync
Message:

Main/Unattended: Check for guest OS EFI requirement when preparing the Unattended Installer via Unattended::prepare() and refuse operation. Makes no sense yet to allow this, as EFI requires UDF remastering support for booting first. bugref:10516

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r101220 r101317  
    26152615    VBOXOSTYPE const enmMachineOSType = idxMachineOSType < Global::cOSTypes
    26162616                                      ? Global::sOSTypes[idxMachineOSType].osType : VBOXOSTYPE_Unknown;
    2617 
     2617    uint32_t const   osHint           = idxMachineOSType < Global::cOSTypes
     2618                                      ? Global::sOSTypes[idxMachineOSType].osHint : 0;
    26182619    /*
    26192620     * Check that the detected guest OS type for the ISO is compatible with
    2620      * that of the VM, boardly speaking.
     2621     * that of the VM, broadly speaking.
    26212622     */
    26222623    if (idxMachineOSType != idxIsoOSType)
     
    26272628                || (enmMachineOSType & VBOXOSTYPE_ArchitectureMask) != VBOXOSTYPE_x64))
    26282629            return setError(E_FAIL, tr("The supplied ISO file is incompatible with the guest OS type of the VM: CPU architecture mismatch"));
    2629 
    2630         /** @todo check BIOS/EFI requirement */
    2631     }
     2630    }
     2631
     2632    /* We don't support guest OSes w/ EFI, as that requires UDF remastering support we don't have yet. */
     2633    if (osHint & VBOXOSHINT_EFI)
     2634        return setError(E_FAIL, tr("The detected guest OS type requires EFI to boot and therefore is not supported yet"));
    26322635
    26332636    /*
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