- Timestamp:
- Oct 27, 2023 3:11:34 PM (15 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ostypes.h
r101572 r101633 141 141 VBOXOSTYPE_Debian12_arm64 = 0x5530a, 142 142 VBOXOSTYPE_Debian_latest_x64 = VBOXOSTYPE_Debian12_x64, 143 VBOXOSTYPE_Debian_latest_arm64 = VBOXOSTYPE_Debian12_arm64, 143 144 VBOXOSTYPE_OpenSUSE = 0x56000, 144 145 VBOXOSTYPE_OpenSUSE_x64 = 0x56100, … … 228 229 VBOXOSTYPE_Ubuntu23_arm64 = 0x5C317, 229 230 VBOXOSTYPE_Ubuntu_latest_x64 = VBOXOSTYPE_Ubuntu23_x64, 231 VBOXOSTYPE_Ubuntu_latest_arm64 = VBOXOSTYPE_Ubuntu23_arm64, 230 232 VBOXOSTYPE_Xandros = 0x5D000, 231 233 VBOXOSTYPE_Xandros_x64 = 0x5D100, -
trunk/src/VBox/Main/src-server/UnattendedImpl.cpp
r101424 r101633 2055 2055 else if (pNtHdrs->FileHeader.Machine == IMAGE_FILE_MACHINE_AMD64) 2056 2056 mEnmOsType = (VBOXOSTYPE)((mEnmOsType & ~VBOXOSTYPE_ArchitectureMask) | VBOXOSTYPE_x64); 2057 else if (pNtHdrs->FileHeader.Machine == IMAGE_FILE_MACHINE_ARM64) 2058 mEnmOsType = (VBOXOSTYPE)((mEnmOsType & ~VBOXOSTYPE_ArchitectureMask) | VBOXOSTYPE_arm64); 2057 2059 else 2058 2060 AssertFailed(); … … 2632 2634 2633 2635 /* We don't support guest OSes w/ EFI, as that requires UDF remastering support we don't have yet. */ 2634 if (osHint & VBOXOSHINT_EFI) 2636 if ( (osHint & VBOXOSHINT_EFI) 2637 && (enmIsoOSType & VBOXOSTYPE_ArchitectureMask) != VBOXOSTYPE_arm64) 2635 2638 return setError(E_FAIL, tr("The detected guest OS type requires EFI to boot and therefore is not supported yet")); 2636 2639 … … 3949 3952 return S_OK; 3950 3953 3951 /* For now we don't support unattended installation for ARM guests. */3952 const VBOXOSTYPE enmArchitectureMasked = (VBOXOSTYPE)(mEnmOsType & VBOXOSTYPE_ArchitectureMask);3953 if ( enmArchitectureMasked == VBOXOSTYPE_arm323954 || enmArchitectureMasked == VBOXOSTYPE_arm64)3955 return S_OK;3956 3957 3954 const VBOXOSTYPE enmOsTypeMasked = (VBOXOSTYPE)(mEnmOsType & VBOXOSTYPE_OsTypeMask); 3958 3955 -
trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp
r101351 r101633 78 78 else 79 79 { 80 if (enmDetectedOSType >= VBOXOSTYPE_Debian && enmDetectedOSType <= VBOXOSTYPE_Debian_latest_x64) 80 if ( enmDetectedOSType >= VBOXOSTYPE_Debian 81 && ( enmDetectedOSType <= VBOXOSTYPE_Debian_latest_x64 82 || enmDetectedOSType <= VBOXOSTYPE_Debian_latest_arm64)) 81 83 pUinstaller = new UnattendedDebianInstaller(pParent); 82 84 else if (enmDetectedOSType >= VBOXOSTYPE_Ubuntu && enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_x64) … … 1287 1289 /* Set timeouts to 4 seconds. */ 1288 1290 std::vector<size_t> vecLineNumbers = pEditor->findTemplate("set timeout", RTCString::CaseInsensitive); 1289 for (size_t i = 0; i < vecLineNumbers.size(); ++i) 1290 if (pEditor->getContentOfLine(vecLineNumbers[i]).startsWithWord("set timeout", RTCString::CaseInsensitive)) 1291 { 1292 HRESULT hrc = pEditor->setContentOfLine(vecLineNumbers.at(i), "set timeout=4"); 1293 if (FAILED(hrc)) 1294 return hrc; 1295 } 1291 if (vecLineNumbers.size() > 0) 1292 { 1293 for (size_t i = 0; i < vecLineNumbers.size(); ++i) 1294 if (pEditor->getContentOfLine(vecLineNumbers[i]).startsWithWord("set timeout", RTCString::CaseInsensitive)) 1295 { 1296 HRESULT hrc = pEditor->setContentOfLine(vecLineNumbers.at(i), "set timeout=4"); 1297 if (FAILED(hrc)) 1298 return hrc; 1299 } 1300 } 1301 else 1302 { 1303 /* Append timeout if not set (happens with arm64 iso images at least). */ 1304 HRESULT hrc = pEditor->appendLine("set timeout=4"); 1305 if (FAILED(hrc)) 1306 return hrc; 1307 } 1296 1308 1297 1309 /* Modify kernel lines assuming that they starts with 'linux' keyword and 2nd word is the kernel command.*
Note:
See TracChangeset
for help on using the changeset viewer.