VirtualBox

source: vbox/trunk/src/VBox/Main/src-all/Global.cpp@ 101369

Last change on this file since 101369 was 101369, checked in by vboxsync, 14 months ago

Main/Global.cpp: Move the macros for compose the x64/x86/arm64/arm32 guest OS IDs to the VirtualBox API header so the GUI and others can make use of them as well. bugref:10384

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 67.3 KB
Line 
1/* $Id: Global.cpp 101369 2023-10-06 01:22:15Z vboxsync $ */
2/** @file
3 * VirtualBox COM global definitions
4 *
5 * NOTE: This file is part of both VBoxC.dll and VBoxSVC.exe.
6 */
7
8/*
9 * Copyright (C) 2008-2023 Oracle and/or its affiliates.
10 *
11 * This file is part of VirtualBox base platform packages, as
12 * available from https://www.virtualbox.org.
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation, in version 3 of the
17 * License.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see <https://www.gnu.org/licenses>.
26 *
27 * SPDX-License-Identifier: GPL-3.0-only
28 */
29
30#include "Global.h"
31#include "StringifyEnums.h"
32
33#include <iprt/assert.h>
34#include <iprt/string.h>
35#include <iprt/errcore.h>
36
37#include "VBoxNls.h"
38
39DECLARE_TRANSLATION_CONTEXT(GlobalCtx);
40
41
42#define VBOX_OSTYPE_X86(a_OStype) VBOXOSTYPE_ ## a_OStype
43#define VBOX_OSTYPE_X64(a_OStype) VBOXOSTYPE_ ## a_OStype ## _x64
44#define VBOX_OSTYPE_ARM32(a_OStype) VBOXOSTYPE_ ## a_OStype ## _arm32
45#define VBOX_OSTYPE_ARM64(a_OStype) VBOXOSTYPE_ ## a_OStype ## _arm64
46
47/* static */
48const Global::OSType Global::sOSTypes[] =
49{
50 /* NOTE1: we assume that unknown is always the first two entries!
51 * NOTE2: please use powers of 2 when specifying the size of harddisks since
52 * '2GB' looks better than '1.95GB' (= 2000MB)
53 * NOTE3: if you add new guest OS types please check if the code in
54 * Machine::getEffectiveParavirtProvider and Console::i_configConstructorInner
55 * are still covering the relevant cases.
56 * NOTE4: platform support: always define all guest OS types w/o guarding new / different platform architectures
57 * with own #defines. If (and how) guest OS types will be reported is decided by the actual Main
58 * implementations(s).
59 */
60 { "Other", "Other", "", GUEST_OS_ID_STR_X86("Other"), "Other/Unknown",
61 VBOXOSTYPE_Unknown, VBOXOSHINT_NONE,
62 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
63 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
64
65 { "Other", "Other", "", GUEST_OS_ID_STR_X64("Other"), "Other/Unknown (64-bit)",
66 VBOXOSTYPE_Unknown_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_PAE | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC,
67 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
68 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
69
70 { "Other", "Other", "", GUEST_OS_ID_STR_A64("Other"), "Other/Unknown (ARM 64-bit)",
71 VBOXOSTYPE_Unknown_arm64, VBOXOSHINT_64BIT | VBOXOSHINT_EFI,
72 1, 1024, 128, 2 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_VirtioSCSI, StorageBus_VirtioSCSI,
73 StorageControllerType_VirtioSCSI, StorageBus_VirtioSCSI, ChipsetType_ARMv8Virtual, IommuType_None, AudioControllerType_VirtioSound, AudioCodecType_Null },
74
75 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows31"), "Windows 3.1",
76 VBOXOSTYPE_Win31, VBOXOSHINT_FLOPPY,
77 1, 32, 4, 1 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
78 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
79
80 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows95"), "Windows 95",
81 VBOXOSTYPE_Win95, VBOXOSHINT_FLOPPY,
82 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
83 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
84
85 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows98"), "Windows 98",
86 VBOXOSTYPE_Win98, VBOXOSHINT_FLOPPY,
87 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
88 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
89
90 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("WindowsMe"), "Windows ME",
91 VBOXOSTYPE_WinMe, VBOXOSHINT_FLOPPY | VBOXOSHINT_USBTABLET,
92 1, 128, 4, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
93 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
94
95 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("WindowsNT3x"), "Windows NT 3.x",
96 VBOXOSTYPE_WinNT3x, VBOXOSHINT_NOUSB | VBOXOSHINT_FLOPPY,
97 1, 64, 8, _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_BusLogic, StorageBus_SCSI,
98 StorageControllerType_BusLogic, StorageBus_SCSI, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
99
100 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("WindowsNT4"), "Windows NT 4",
101 VBOXOSTYPE_WinNT4, VBOXOSHINT_NOUSB,
102 1, 128, 16, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
103 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
104
105 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows2000"), "Windows 2000",
106 VBOXOSTYPE_Win2k, VBOXOSHINT_USBTABLET,
107 1, 168, 16, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
108 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
109
110 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("WindowsXP"), "Windows XP (32-bit)",
111 VBOXOSTYPE_WinXP, VBOXOSHINT_USBTABLET,
112 1, 192, 16, 10 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82543GC, 0, StorageControllerType_PIIX4, StorageBus_IDE,
113 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
114
115 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("WindowsXP"), "Windows XP (64-bit)",
116 VBOXOSTYPE_WinXP_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET,
117 1, 512, 16, 10 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
118 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
119
120 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows2003"), "Windows 2003 (32-bit)",
121 VBOXOSTYPE_Win2k3, VBOXOSHINT_USBTABLET,
122 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82543GC, 0, StorageControllerType_PIIX4, StorageBus_IDE,
123 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
124
125 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows2003"), "Windows 2003 (64-bit)",
126 VBOXOSTYPE_Win2k3_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET,
127 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
128 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
129
130 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("WindowsVista"), "Windows Vista (32-bit)",
131 VBOXOSTYPE_WinVista, VBOXOSHINT_USBTABLET | VBOXOSHINT_WDDM_GRAPHICS,
132 1, 512, 16, 25 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
133 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
134
135 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("WindowsVista"), "Windows Vista (64-bit)",
136 VBOXOSTYPE_WinVista_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_WDDM_GRAPHICS,
137 1, 512, 16, 25 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
138 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
139
140 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows2008"), "Windows 2008 (32-bit)",
141 VBOXOSTYPE_Win2k8, VBOXOSHINT_USBTABLET | VBOXOSHINT_WDDM_GRAPHICS,
142 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
143 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
144
145 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows2008"), "Windows 2008 (64-bit)",
146 VBOXOSTYPE_Win2k8_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_WDDM_GRAPHICS,
147 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
148 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
149
150 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows7"), "Windows 7 (32-bit)",
151 VBOXOSTYPE_Win7, VBOXOSHINT_USBTABLET | VBOXOSHINT_WDDM_GRAPHICS,
152 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
153 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
154
155 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows7"), "Windows 7 (64-bit)",
156 VBOXOSTYPE_Win7_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_WDDM_GRAPHICS,
157 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
158 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
159
160 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows8"), "Windows 8 (32-bit)",
161 VBOXOSTYPE_Win8, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X86_PAE | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
162 1, 1024, 128, 40 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
163 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
164
165 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows8"), "Windows 8 (64-bit)",
166 VBOXOSTYPE_Win8_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
167 1, 2048, 128, 40 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
168 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
169
170 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows81"), "Windows 8.1 (32-bit)",
171 VBOXOSTYPE_Win81, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X86_PAE | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
172 1, 1024, 128, 40 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
173 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
174
175 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows81"), "Windows 8.1 (64-bit)",
176 VBOXOSTYPE_Win81_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
177 1, 2048, 128, 40 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
178 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
179
180 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows2012"), "Windows 2012 (64-bit)",
181 VBOXOSTYPE_Win2k12_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
182 1, 2048, 128, 50 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
183 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
184
185 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("Windows10"), "Windows 10 (32-bit)",
186 VBOXOSTYPE_Win10, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X86_PAE | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
187 1, 1024, 128, 50 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
188 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
189
190 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows10"), "Windows 10 (64-bit)",
191 VBOXOSTYPE_Win10_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
192 1, 2048, 128, 50 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
193 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
194
195 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows2016"), "Windows 2016 (64-bit)",
196 VBOXOSTYPE_Win2k16_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
197 1, 2048, 128, 50 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
198 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
199
200 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows2019"), "Windows 2019 (64-bit)",
201 VBOXOSTYPE_Win2k19_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
202 1, 2048, 128, 50 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
203 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
204
205 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows11"), "Windows 11 (64-bit)",
206 VBOXOSTYPE_Win11_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_EFI_SECUREBOOT | VBOXOSHINT_TPM2 | VBOXOSHINT_WDDM_GRAPHICS,
207 2, 4096, 128, 80 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
208 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
209
210 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("Windows2022"), "Windows 2022 (64-bit)",
211 VBOXOSTYPE_Win2k22_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3 | VBOXOSHINT_WDDM_GRAPHICS,
212 1, 2048, 128, 50 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
213 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
214
215 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X86("WindowsNT"), "Other Windows (32-bit)",
216 VBOXOSTYPE_WinNT, VBOXOSHINT_NONE,
217 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
218 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
219
220 { "Windows", "Microsoft Windows", "", GUEST_OS_ID_STR_X64("WindowsNT"), "Other Windows (64-bit)",
221 VBOXOSTYPE_WinNT_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_PAE | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET,
222 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
223 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
224
225#define VBOX_LINUX_OSHINTS_A_X86 (VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X86_X2APIC | VBOXOSHINT_X86_PAE)
226#define VBOX_LINUX_OSHINTS_A_X64 (VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X86_X2APIC | VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC)
227#define VBOX_LINUX_OSHINTS_A_ARM64 (VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_EFI | VBOXOSHINT_64BIT)
228
229#define VBOX_LINUX_OSHINTS_B_X86 (VBOXOSHINT_RTCUTC | VBOXOSHINT_X86_PAE | VBOXOSHINT_X86_X2APIC)
230#define VBOX_LINUX_OSHINTS_B_X64 (VBOXOSHINT_RTCUTC | VBOXOSHINT_X86_PAE | VBOXOSHINT_X86_X2APIC | VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC)
231
232#define VBOX_LINUX_OSHINTS_C_X86 (VBOXOSHINT_RTCUTC | VBOXOSHINT_X86_X2APIC | VBOXOSHINT_X86_PAE)
233#define VBOX_LINUX_OSHINTS_C_X64 (VBOXOSHINT_RTCUTC | VBOXOSHINT_X86_X2APIC | VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC)
234
235#define VBOX_LINUX_OSHINTS_D_X86 (VBOXOSHINT_RTCUTC | VBOXOSHINT_X86_PAE)
236#define VBOX_LINUX_OSHINTS_D_X64 (VBOXOSHINT_RTCUTC | VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC)
237
238#define VBOX_LINUX_SUBTYPE_TEMPLATE_X86(a_szVariant, a_Id, a_Description, a_OStype, a_OSHint, a_Memory, a_Vram, a_Diskspace, \
239 a_NetworkAdapter, a_HDStorageController, a_HDStorageBusType) \
240 { "Linux", "Linux", a_szVariant, GUEST_OS_ID_STR_X86(#a_Id), a_Description, VBOX_OSTYPE_X86(a_OStype), a_OSHint, \
241 1, a_Memory, a_Vram, a_Diskspace * _1G64, GraphicsControllerType_VMSVGA, a_NetworkAdapter, 0, StorageControllerType_PIIX4, StorageBus_IDE, \
242 a_HDStorageController, a_HDStorageBusType, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 }
243
244#define VBOX_LINUX_SUBTYPE_TEMPLATE_X64(a_szVariant, a_Id, a_Description, a_OStype, a_OSHint, a_Memory, a_Vram, a_Diskspace, \
245 a_NetworkAdapter, a_HDStorageController, a_HDStorageBusType) \
246 { "Linux", "Linux", a_szVariant, GUEST_OS_ID_STR_X64(#a_Id), a_Description, VBOX_OSTYPE_X64(a_OStype), a_OSHint, \
247 1, a_Memory, a_Vram, a_Diskspace * _1G64, GraphicsControllerType_VMSVGA, a_NetworkAdapter, 0, StorageControllerType_PIIX4, StorageBus_IDE, \
248 a_HDStorageController, a_HDStorageBusType, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 }
249
250#define VBOX_LINUX_SUBTYPE_TEMPLATE_ARM64(a_szVariant, a_Id, a_Description, a_OStype, a_OSHint, a_Memory, a_Vram, a_Diskspace, \
251 a_NetworkAdapter, a_HDStorageController, a_HDStorageBusType) \
252 { "Linux", "Linux", a_szVariant, GUEST_OS_ID_STR_A64(#a_Id), a_Description, VBOX_OSTYPE_ARM64(a_OStype), a_OSHint, \
253 1, a_Memory, a_Vram, a_Diskspace * _1G64, GraphicsControllerType_VMSVGA, a_NetworkAdapter, 0, StorageControllerType_VirtioSCSI, StorageBus_VirtioSCSI, \
254 a_HDStorageController, a_HDStorageBusType, ChipsetType_ARMv8Virtual, IommuType_None, AudioControllerType_VirtioSound, AudioCodecType_Null }
255
256/* Linux x86 32-bit sub-type template defaulting to 1 CPU with USB-tablet-mouse/VMSVGA/Intel-Pro1000/PIIX4+IDE DVD/AHCI+SATA disk/AC97 */
257#define VBOX_LINUX_SUBTYPE_A_X86(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
258 VBOX_LINUX_SUBTYPE_TEMPLATE_X86(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_A_X86, a_Memory, a_Vram, a_Diskspace, \
259 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
260
261/* Linux x86 64-bit sub-type template defaulting to 1 CPU with USB-tablet-mouse/VMSVGA/Intel-Pro1000/PIIX4+IDE DVD/AHCI+SATA disk/AC97 */
262#define VBOX_LINUX_SUBTYPE_A_X64(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
263 VBOX_LINUX_SUBTYPE_TEMPLATE_X64(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_A_X64, a_Memory, a_Vram, a_Diskspace, \
264 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
265
266#define VBOX_LINUX_SUBTYPE_A_A64(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
267 VBOX_LINUX_SUBTYPE_TEMPLATE_ARM64(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_A_ARM64, a_Memory, a_Vram, a_Diskspace, \
268 NetworkAdapterType_I82540EM, StorageControllerType_VirtioSCSI, StorageBus_VirtioSCSI)
269
270#define VBOX_LINUX_SUBTYPE_A_WITH_OSTYPE_X86(a_szVariant, a_Id, a_Description, a_OStype, a_Memory, a_Vram, a_Diskspace) \
271 VBOX_LINUX_SUBTYPE_TEMPLATE_X86(a_szVariant, a_Id, a_Description, a_OStype, VBOX_LINUX_OSHINTS_A_X86, a_Memory, a_Vram, a_Diskspace, \
272 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
273
274#define VBOX_LINUX_SUBTYPE_A_WITH_OSTYPE_X64(a_szVariant, a_Id, a_Description, a_OStype, a_Memory, a_Vram, a_Diskspace) \
275 VBOX_LINUX_SUBTYPE_TEMPLATE_X64(a_szVariant, a_Id, a_Description, a_OStype, VBOX_LINUX_OSHINTS_A_X64, a_Memory, a_Vram, a_Diskspace, \
276 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
277
278/* Linux x86 32-bit sub-type template defaulting to 1 CPU with PS/2-mouse/PAE-NX/VMSVGA/Intel-Pro1000/PIIX4+IDE DVD/AHCI+SATA disk/AC97 */
279#define VBOX_LINUX_SUBTYPE_B_X86(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
280 VBOX_LINUX_SUBTYPE_TEMPLATE_X86(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_B_X86, a_Memory, a_Vram, a_Diskspace, \
281 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
282
283/* Linux 64-bit sub-type template defaulting to 1 CPU with PS/2-mouse/PAE-NX/VMSVGA/Intel-Pro1000/PIIX4+IDE DVD/AHCI+SATA disk/AC97 */
284#define VBOX_LINUX_SUBTYPE_B_X64(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
285 VBOX_LINUX_SUBTYPE_TEMPLATE_X64(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_B_X64, a_Memory, a_Vram, a_Diskspace, \
286 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
287
288/* Linux 32-bit sub-type template defaulting to 1 CPU with PS/2-mouse/VMSVGA/Intel-Pro1000/PIIX4+IDE DVD/AHCI+SATA disk/AC97 */
289#define VBOX_LINUX_SUBTYPE_C_X86(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
290 VBOX_LINUX_SUBTYPE_TEMPLATE_X86(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_C_X86, a_Memory, a_Vram, a_Diskspace, \
291 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
292
293/* Linux 64-bit sub-type template defaulting to 1 CPU with PS/2-mouse/VMSVGA/Intel-Pro1000/PIIX4+IDE DVD/AHCI+SATA disk/AC97 */
294#define VBOX_LINUX_SUBTYPE_C_X64(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
295 VBOX_LINUX_SUBTYPE_TEMPLATE_X64(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_C_X64, a_Memory, a_Vram, a_Diskspace, \
296 NetworkAdapterType_I82540EM, StorageControllerType_IntelAhci, StorageBus_SATA)
297
298/* Linux 32-bit sub-type template defaulting to 1 CPU with PS/2-mouse/VMSVGA/PCnet-FASTIII/PIIX4+IDE DVD/PIIX4+IDE disk/AC97 */
299#define VBOX_LINUX_SUBTYPE_D_X86(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
300 VBOX_LINUX_SUBTYPE_TEMPLATE_X86(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_D_X86, a_Memory, a_Vram, a_Diskspace, \
301 NetworkAdapterType_Am79C973, StorageControllerType_PIIX4, StorageBus_IDE)
302
303/* Linux 64-bit sub-type template defaulting to 1 CPU with PS/2-mouse/VMSVGA/PCnet-FASTIII/PIIX4+IDE DVD/PIIX4+IDE disk/AC97 */
304#define VBOX_LINUX_SUBTYPE_D_X64(a_szVariant, a_Id, a_Description, a_Memory, a_Vram, a_Diskspace) \
305 VBOX_LINUX_SUBTYPE_TEMPLATE_X64(a_szVariant, a_Id, a_Description, a_Id, VBOX_LINUX_OSHINTS_D_X64, a_Memory, a_Vram, a_Diskspace, \
306 NetworkAdapterType_I82540EM, StorageControllerType_PIIX4, StorageBus_IDE)
307
308 VBOX_LINUX_SUBTYPE_D_X86("Linux 2.2", Linux22, "Linux 2.2 (32-bit)", 64, 4, 2),
309 VBOX_LINUX_SUBTYPE_D_X86("Linux 2.4", Linux24, "Linux 2.4 (32-bit)", 128, 16, 2),
310 VBOX_LINUX_SUBTYPE_D_X64("Linux 2.4", Linux24, "Linux 2.4 (64-bit)", 1024, 16, 4),
311 VBOX_LINUX_SUBTYPE_A_X86("Linux 2.6", Linux26, "Linux 2.6 / 3.x / 4.x / 5.x (32-bit)", 1024, 16, 8),
312 VBOX_LINUX_SUBTYPE_A_X64("Linux 2.6", Linux26, "Linux 2.6 / 3.x / 4.x / 5.x (64-bit)", 1024, 16, 8),
313
314 VBOX_LINUX_SUBTYPE_A_X86("ArchLinux", ArchLinux, "Arch Linux (32-bit)", 1024, 16, 8),
315 VBOX_LINUX_SUBTYPE_A_X64("ArchLinux", ArchLinux, "Arch Linux (64-bit)", 1024, 16, 8),
316 VBOX_LINUX_SUBTYPE_A_A64("ArchLinux", ArchLinux, "Arch Linux (64-bit)", 1024, 128, 8),
317
318 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian, "Debian (32-bit)", 2048, 16, 20),
319 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian, "Debian (64-bit)", 2048, 16, 20),
320 VBOX_LINUX_SUBTYPE_A_A64("Debian", Debian, "Debian (64-bit)", 2048, 128, 20), /** @todo r=bird: "Debian (ARM 64-bit)"? */
321 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian31, "Debian 3.1 Sarge (32-bit)", 1024, 16, 8), // 32-bit only
322 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian4, "Debian 4.0 Etch (32-bit)", 1024, 16, 8),
323 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian4, "Debian 4.0 Etch (64-bit)", 1024, 16, 8),
324 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian5, "Debian 5.0 Lenny (32-bit)", 1024, 16, 8),
325 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian5, "Debian 5.0 Lenny (64-bit)", 1024, 16, 8),
326 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian6, "Debian 6.0 Squeeze (32-bit)", 1024, 16, 8),
327 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian6, "Debian 6.0 Squeeze (64-bit)", 1024, 16, 8),
328 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian7, "Debian 7 Wheezy (32-bit)", 2048, 16, 20),
329 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian7, "Debian 7 Wheezy (64-bit)", 2048, 16, 20),
330 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian8, "Debian 8 Jessie (32-bit)", 2048, 16, 20),
331 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian8, "Debian 8 Jessie (64-bit)", 2048, 16, 20),
332 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian9, "Debian 9 Stretch (32-bit)", 2048, 16, 20),
333 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian9, "Debian 9 Stretch (64-bit)", 2048, 16, 20),
334 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian10, "Debian 10 Buster (32-bit)", 2048, 16, 20),
335 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian10, "Debian 10 Buster (64-bit)", 2048, 16, 20),
336 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian11, "Debian 11 Bullseye (32-bit)", 2048, 16, 20),
337 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian11, "Debian 11 Bullseye (64-bit)", 2048, 16, 20),
338 VBOX_LINUX_SUBTYPE_A_X86("Debian", Debian12, "Debian 12 Bookworm (32-bit)", 2048, 16, 20),
339 VBOX_LINUX_SUBTYPE_A_X64("Debian", Debian12, "Debian 12 Bookworm (64-bit)", 2048, 16, 20),
340
341 /** @todo rename VBOXOSTYPE entries to Fedora to avoid this? */
342 VBOX_LINUX_SUBTYPE_A_WITH_OSTYPE_X86("Fedora", Fedora, "Fedora (32-bit)", FedoraCore, 2048, 16, 15),
343 VBOX_LINUX_SUBTYPE_A_WITH_OSTYPE_X64("Fedora", Fedora, "Fedora (64-bit)", FedoraCore, 2048, 16, 15),
344
345 VBOX_LINUX_SUBTYPE_A_X86("Gentoo", Gentoo, "Gentoo (32-bit)", 1024, 16, 8),
346 VBOX_LINUX_SUBTYPE_A_X64("Gentoo", Gentoo, "Gentoo (64-bit)", 1024, 16, 8),
347
348 VBOX_LINUX_SUBTYPE_A_X86("Mandriva", Mandriva, "Mandriva (32-bit)", 1024, 16, 8),
349 VBOX_LINUX_SUBTYPE_A_X64("Mandriva", Mandriva, "Mandriva (64-bit)", 1024, 16, 8),
350 VBOX_LINUX_SUBTYPE_A_X86("Mandriva", OpenMandriva_Lx, "OpenMandriva Lx (32-bit)", 2048, 16, 10),
351 VBOX_LINUX_SUBTYPE_A_X64("Mandriva", OpenMandriva_Lx, "OpenMandriva Lx (64-bit)", 2048, 16, 10),
352 VBOX_LINUX_SUBTYPE_A_X86("PCLinuxOS", PCLinuxOS, "PCLinuxOS / PCLOS (32-bit)", 2048, 16, 10),
353 VBOX_LINUX_SUBTYPE_A_X64("PCLinuxOS", PCLinuxOS, "PCLinuxOS / PCLOS (64-bit)", 2048, 16, 10),
354 VBOX_LINUX_SUBTYPE_A_X86("Mageia", Mageia, "Mageia (32-bit)", 2048, 16, 10),
355 VBOX_LINUX_SUBTYPE_A_X64("Mageia", Mageia, "Mageia (64-bit)", 2048, 16, 10),
356
357 VBOX_LINUX_SUBTYPE_B_X86("Oracle Linux", Oracle, "Oracle Linux (32-bit)", 2048, 16, 20),
358 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle, "Oracle Linux (64-bit)", 2048, 16, 20),
359 VBOX_LINUX_SUBTYPE_B_X86("Oracle Linux", Oracle4, "Oracle Linux 4.x (32-bit)", 1024, 16, 8),
360 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle4, "Oracle Linux 4.x (64-bit)", 1024, 16, 8),
361 VBOX_LINUX_SUBTYPE_B_X86("Oracle Linux", Oracle5, "Oracle Linux 5.x (32-bit)", 1024, 16, 8),
362 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle5, "Oracle Linux 5.x (64-bit)", 1024, 16, 8),
363 VBOX_LINUX_SUBTYPE_B_X86("Oracle Linux", Oracle6, "Oracle Linux 6.x (32-bit)", 2048, 16, 10),
364 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle6, "Oracle Linux 6.x (64-bit)", 2048, 16, 10),
365 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle7, "Oracle Linux 7.x (64-bit)", 2048, 16, 20), // 64-bit only
366 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle8, "Oracle Linux 8.x (64-bit)", 2048, 16, 20), // 64-bit only
367 VBOX_LINUX_SUBTYPE_B_X64("Oracle Linux", Oracle9, "Oracle Linux 9.x (64-bit)", 2048, 16, 20), // 64-bit only
368
369 VBOX_LINUX_SUBTYPE_B_X86("Red Hat", RedHat, "Red Hat (32-bit)", 2048, 16, 20),
370 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat, "Red Hat (64-bit)", 2048, 16, 20),
371 VBOX_LINUX_SUBTYPE_B_X86("Red Hat", RedHat3, "Red Hat 3.x (32-bit)", 1024, 16, 8),
372 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat3, "Red Hat 3.x (64-bit)", 1024, 16, 8),
373 VBOX_LINUX_SUBTYPE_B_X86("Red Hat", RedHat4, "Red Hat 4.x (32-bit)", 1024, 16, 8),
374 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat4, "Red Hat 4.x (64-bit)", 1024, 16, 8),
375 VBOX_LINUX_SUBTYPE_B_X86("Red Hat", RedHat5, "Red Hat 5.x (32-bit)", 1024, 16, 8),
376 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat5, "Red Hat 5.x (64-bit)", 1024, 16, 8),
377 VBOX_LINUX_SUBTYPE_B_X86("Red Hat", RedHat6, "Red Hat 6.x (32-bit)", 1024, 16, 10),
378 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat6, "Red Hat 6.x (64-bit)", 1024, 16, 10),
379 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat7, "Red Hat 7.x (64-bit)", 2048, 16, 20), // 64-bit only
380 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat8, "Red Hat 8.x (64-bit)", 2048, 16, 20), // 64-bit only
381 VBOX_LINUX_SUBTYPE_B_X64("Red Hat", RedHat9, "Red Hat 9.x (64-bit)", 2048, 16, 20), // 64-bit only
382
383 VBOX_LINUX_SUBTYPE_A_X86("openSUSE", OpenSUSE, "openSUSE (32-bit)", 1024, 16, 8),
384 VBOX_LINUX_SUBTYPE_A_X64("openSUSE", OpenSUSE, "openSUSE (64-bit)", 1024, 16, 8),
385 VBOX_LINUX_SUBTYPE_A_X64("openSUSE", OpenSUSE_Leap, "openSUSE Leap (64-bit)", 2048, 16, 8), // 64-bit only
386 VBOX_LINUX_SUBTYPE_A_X86("openSUSE", OpenSUSE_Tumbleweed, "openSUSE Tumbleweed (32-bit)", 2048, 16, 8),
387 VBOX_LINUX_SUBTYPE_A_X64("openSUSE", OpenSUSE_Tumbleweed, "openSUSE Tumbleweed (64-bit)", 2048, 16, 8),
388 VBOX_LINUX_SUBTYPE_A_X86("SUSE", SUSE_LE, "SUSE Linux Enterprise (32-bit)", 2048, 16, 8),
389 VBOX_LINUX_SUBTYPE_A_X64("SUSE", SUSE_LE, "SUSE Linux Enterprise (64-bit)", 2048, 16, 8),
390
391 VBOX_LINUX_SUBTYPE_A_X86("TurboLinux", Turbolinux, "Turbolinux (32-bit)", 384, 16, 8),
392 VBOX_LINUX_SUBTYPE_A_X64("TurboLinux", Turbolinux, "Turbolinux (64-bit)", 384, 16, 8),
393
394 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu, "Ubuntu (32-bit)", 2048, 16, 25),
395 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu, "Ubuntu (64-bit)", 2048, 16, 25),
396 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu10_LTS, "Ubuntu 10.04 LTS (Lucid Lynx) (32-bit)", 256, 16, 3),
397 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu10_LTS, "Ubuntu 10.04 LTS (Lucid Lynx) (64-bit)", 256, 16, 3),
398 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu10, "Ubuntu 10.10 (Maverick Meerkat) (32-bit)", 256, 16, 3),
399 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu10, "Ubuntu 10.10 (Maverick Meerkat) (64-bit)", 256, 16, 3),
400 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu11, "Ubuntu 11.04 (Natty Narwhal) / 11.10 (Oneiric Ocelot) (32-bit)", 384, 16, 5),
401 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu11, "Ubuntu 11.04 (Natty Narwhal) / 11.10 (Oneiric Ocelot) (64-bit)", 384, 16, 5),
402 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu12_LTS, "Ubuntu 12.04 LTS (Precise Pangolin) (32-bit)", 768, 16, 5),
403 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu12_LTS, "Ubuntu 12.04 LTS (Precise Pangolin) (64-bit)", 768, 16, 5),
404 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu12, "Ubuntu 12.10 (Quantal Quetzal) (32-bit)", 768, 16, 5),
405 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu12, "Ubuntu 12.10 (Quantal Quetzal) (64-bit)", 768, 16, 5),
406 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu13, "Ubuntu 13.04 (Raring Ringtail) / 13.10 (Saucy Salamander) (32-bit)", 768, 16, 5),
407 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu13, "Ubuntu 13.04 (Raring Ringtail) / 13.10 (Saucy Salamander) (64-bit)", 768, 16, 5),
408 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu14_LTS, "Ubuntu 14.04 LTS (Trusty Tahr) (32-bit)", 1536, 16, 7),
409 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu14_LTS, "Ubuntu 14.04 LTS (Trusty Tahr) (64-bit)", 1536, 16, 7),
410 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu14, "Ubuntu 14.10 (Utopic Unicorn) (32-bit)", 1536, 16, 7),
411 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu14, "Ubuntu 14.10 (Utopic Unicorn) (64-bit)", 1536, 16, 7),
412 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu15, "Ubuntu 15.04 (Vivid Vervet) / 15.10 (Wily Werewolf) (32-bit)", 1536, 16, 7),
413 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu15, "Ubuntu 15.04 (Vivid Vervet) / 15.10 (Wily Werewolf) (64-bit)", 1536, 16, 7),
414 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu16_LTS, "Ubuntu 16.04 LTS (Xenial Xerus) (32-bit)", 1536, 16, 10),
415 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu16_LTS, "Ubuntu 16.04 LTS (Xenial Xerus) (64-bit)", 1536, 16, 10),
416 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu16, "Ubuntu 16.10 (Yakkety Yak) (32-bit)", 1536, 16, 10),
417 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu16, "Ubuntu 16.10 (Yakkety Yak) (64-bit)", 1536, 16, 10),
418 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu17, "Ubuntu 17.04 (Zesty Zapus) / 17.10 (Artful Aardvark) (32-bit)", 1536, 16, 10),
419 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu17, "Ubuntu 17.04 (Zesty Zapus) / 17.10 (Artful Aardvark) (64-bit)", 1536, 16, 10),
420 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu18_LTS, "Ubuntu 18.04 LTS (Bionic Beaver) (32-bit)", 2048, 16, 25),
421 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu18_LTS, "Ubuntu 18.04 LTS (Bionic Beaver) (64-bit)", 2048, 16, 25),
422 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu18, "Ubuntu 18.10 (Cosmic Cuttlefish) (32-bit)", 2048, 16, 25),
423 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu18, "Ubuntu 18.10 (Cosmic Cuttlefish) (64-bit)", 2048, 16, 25),
424 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Ubuntu19, "Ubuntu 19.04 (Disco Dingo) / 19.10 (Eoan Ermine) (32-bit)", 2048, 16, 25),
425 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu19, "Ubuntu 19.04 (Disco Dingo) / 19.10 (Eoan Ermine) (64-bit)", 2048, 16, 25),
426 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu20_LTS, "Ubuntu 20.04 LTS (Focal Fossa) (64-bit)", 2048, 16, 25), // 64-bit only
427 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu20, "Ubuntu 20.10 (Groovy Gorilla) (64-bit)", 2048, 16, 25), // 64-bit only
428 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu21, "Ubuntu 21.04 (Hirsute Hippo) / 21.10 (Impish Indri) (64-bit)", 2048, 16, 25), // 64-bit only
429 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu22_LTS, "Ubuntu 22.04 LTS (Jammy Jellyfish) (64-bit)", 2048, 16, 25), // 64-bit only
430 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu22, "Ubuntu 22.10 (Kinetic Kudu) (64-bit)", 2048, 16, 25), // 64-bit only
431 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Ubuntu23, "Ubuntu 23.04 (Lunar Lobster) (64-bit)", 2048, 16, 25), // 64-bit only
432 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Lubuntu, "Lubuntu (32-bit)", 1024, 16, 10),
433 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Lubuntu, "Lubuntu (64-bit)", 1024, 16, 10),
434 VBOX_LINUX_SUBTYPE_A_X86("Ubuntu", Xubuntu, "Xubuntu (32-bit)", 1024, 16, 10),
435 VBOX_LINUX_SUBTYPE_A_X64("Ubuntu", Xubuntu, "Xubuntu (64-bit)", 1024, 16, 10),
436
437 VBOX_LINUX_SUBTYPE_C_X86("Xandros", Xandros, "Xandros (32-bit)", 1024, 16, 8),
438 VBOX_LINUX_SUBTYPE_C_X64("Xandros", Xandros, "Xandros (64-bit)", 1024, 16, 8),
439
440 VBOX_LINUX_SUBTYPE_A_X86("Other Linux", Linux, "Other Linux (32-bit)", 256, 16, 8),
441 VBOX_LINUX_SUBTYPE_B_X64("Other Linux", Linux, "Other Linux (64-bit)", 512, 16, 8),
442
443 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X86("Solaris"), "Oracle Solaris 10 5/09 and earlier (32-bit)",
444 VBOXOSTYPE_Solaris, VBOXOSHINT_NONE,
445 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
446 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
447
448 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X64("Solaris"), "Oracle Solaris 10 5/09 and earlier (64-bit)",
449 VBOXOSTYPE_Solaris_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC,
450 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
451 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
452
453 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X86("Solaris10U8_or_later"), "Oracle Solaris 10 10/09 and later (32-bit)",
454 VBOXOSTYPE_Solaris10U8_or_later, VBOXOSHINT_USBTABLET,
455 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
456 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
457
458 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X64("Solaris10U8_or_later"), "Oracle Solaris 10 10/09 and later (64-bit)",
459 VBOXOSTYPE_Solaris10U8_or_later_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET,
460 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
461 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
462
463 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X64("Solaris11"), "Oracle Solaris 11 (64-bit)",
464 VBOXOSTYPE_Solaris11_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_RTCUTC,
465 1, 4096, 16, 32 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
466 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
467
468 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X86("OpenSolaris"), "OpenSolaris / Illumos / OpenIndiana (32-bit)",
469 VBOXOSTYPE_OpenSolaris, VBOXOSHINT_USBTABLET,
470 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
471 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
472
473 { "Solaris", "Solaris", "", GUEST_OS_ID_STR_X64("OpenSolaris"), "OpenSolaris / Illumos / OpenIndiana (64-bit)",
474 VBOXOSTYPE_OpenSolaris_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_USBTABLET,
475 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
476 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
477
478 { "BSD", "BSD", "FreeBSD", GUEST_OS_ID_STR_X86("FreeBSD"), "FreeBSD (32-bit)",
479 VBOXOSTYPE_FreeBSD, VBOXOSHINT_NONE,
480 1, 1024, 16, 2 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
481 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
482
483 { "BSD", "BSD", "FreeBSD", GUEST_OS_ID_STR_X64("FreeBSD"), "FreeBSD (64-bit)",
484 VBOXOSTYPE_FreeBSD_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC,
485 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
486 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
487
488 { "BSD", "BSD", "OpenBSD", GUEST_OS_ID_STR_X86("OpenBSD"), "OpenBSD (32-bit)",
489 VBOXOSTYPE_OpenBSD, VBOXOSHINT_X86_HWVIRTEX,
490 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
491 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
492
493 { "BSD", "BSD", "OpenBSD", GUEST_OS_ID_STR_X64("OpenBSD"), "OpenBSD (64-bit)",
494 VBOXOSTYPE_OpenBSD_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC,
495 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
496 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
497
498 { "BSD", "BSD", "NetBSD", GUEST_OS_ID_STR_X86("NetBSD"), "NetBSD (32-bit)",
499 VBOXOSTYPE_NetBSD, VBOXOSHINT_RTCUTC,
500 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
501 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
502
503 { "BSD", "BSD", "NetBSD", GUEST_OS_ID_STR_X64("NetBSD"), "NetBSD (64-bit)",
504 VBOXOSTYPE_NetBSD_x64, VBOXOSHINT_64BIT | VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_RTCUTC,
505 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
506 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
507
508 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS21x"), "OS/2 1.x",
509 VBOXOSTYPE_OS21x, VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB | VBOXOSHINT_TFRESET,
510 1, 8, 4, 500 * _1M, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
511 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
512
513 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS2Warp3"), "OS/2 Warp 3",
514 VBOXOSTYPE_OS2Warp3, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY,
515 1, 48, 4, 1 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
516 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
517
518 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS2Warp4"), "OS/2 Warp 4",
519 VBOXOSTYPE_OS2Warp4, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY,
520 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
521 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
522
523 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS2Warp45"), "OS/2 Warp 4.5",
524 VBOXOSTYPE_OS2Warp45, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY,
525 1, 128, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
526 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
527
528 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS2eCS"), "eComStation",
529 VBOXOSTYPE_ECS, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY,
530 1, 256, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
531 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
532
533 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS2ArcaOS"), "ArcaOS",
534 VBOXOSTYPE_ArcaOS, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY,
535 1, 1024, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 1, StorageControllerType_PIIX4, StorageBus_IDE,
536 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
537
538 { "OS2", "IBM OS/2", "", GUEST_OS_ID_STR_X86("OS2"), "Other OS/2",
539 VBOXOSTYPE_OS2, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
540 1, 96, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
541 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
542
543 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X86("MacOS"), "Mac OS X (32-bit)",
544 VBOXOSTYPE_MacOS, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE
545 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
546 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
547 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
548
549 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS"), "Mac OS X (64-bit)",
550 VBOXOSTYPE_MacOS_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
551 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
552 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
553 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
554
555 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X86("MacOS106"), "Mac OS X 10.6 Snow Leopard (32-bit)",
556 VBOXOSTYPE_MacOS106, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE
557 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
558 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
559 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
560
561 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS106"), "Mac OS X 10.6 Snow Leopard (64-bit)",
562 VBOXOSTYPE_MacOS106_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
563 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
564 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
565 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
566
567 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS107"), "Mac OS X 10.7 Lion (64-bit)",
568 VBOXOSTYPE_MacOS107_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
569 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
570 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
571 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
572
573 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS108"), "Mac OS X 10.8 Mountain Lion (64-bit)", /* Aka "Mountain Kitten". */
574 VBOXOSTYPE_MacOS108_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
575 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
576 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
577 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
578
579 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS109"), "Mac OS X 10.9 Mavericks (64-bit)", /* Not to be confused with McCain. */
580 VBOXOSTYPE_MacOS109_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
581 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
582 1, 2048, 16, 25 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
583 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
584
585 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS1010"), "Mac OS X 10.10 Yosemite (64-bit)",
586 VBOXOSTYPE_MacOS1010_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
587 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
588 1, 2048, 16, 25 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
589 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
590
591 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS1011"), "Mac OS X 10.11 El Capitan (64-bit)",
592 VBOXOSTYPE_MacOS1011_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
593 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
594 1, 2048, 16, 30 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
595 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
596
597 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS1012"), "macOS 10.12 Sierra (64-bit)",
598 VBOXOSTYPE_MacOS1012_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
599 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
600 1, 2048, 16, 30 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
601 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
602
603 { "MacOS", "Mac OS X", "", GUEST_OS_ID_STR_X64("MacOS1013"), "macOS 10.13 High Sierra (64-bit)",
604 VBOXOSTYPE_MacOS1013_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT
605 | VBOXOSHINT_USBHID | VBOXOSHINT_X86_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
606 1, 2048, 16, 30 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
607 StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
608
609 { "Other", "Other", "", GUEST_OS_ID_STR_X86("DOS"), "DOS",
610 VBOXOSTYPE_DOS, VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
611 1, 32, 4, 500 * _1M, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
612 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
613
614 { "Other", "Other", "", GUEST_OS_ID_STR_X86("Netware"), "Netware",
615 VBOXOSTYPE_Netware, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
616 1, 512, 4, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
617 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
618
619 { "Other", "Other", "", GUEST_OS_ID_STR_X86("L4"), "L4",
620 VBOXOSTYPE_L4, VBOXOSHINT_NONE,
621 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
622 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
623
624 { "Other", "Other", "", GUEST_OS_ID_STR_X86("QNX"), "QNX",
625 VBOXOSTYPE_QNX, VBOXOSHINT_X86_HWVIRTEX,
626 1, 512, 4, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
627 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
628
629 { "Other", "Other", "", GUEST_OS_ID_STR_X86("JRockitVE"), "JRockitVE",
630 VBOXOSTYPE_JRockitVE, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_X86_PAE,
631 1, 1024, 4, 8 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
632 StorageControllerType_BusLogic, StorageBus_SCSI, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
633
634 { "Other", "Other", "", GUEST_OS_ID_STR_X64("VBoxBS"), "VirtualBox Bootsector Test (64-bit)",
635 VBOXOSTYPE_VBoxBS_x64, VBOXOSHINT_X86_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_X86_IOAPIC | VBOXOSHINT_X86_PAE | VBOXOSHINT_64BIT,
636 1, 128, 4, 0, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
637 StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
638};
639
640size_t Global::cOSTypes = RT_ELEMENTS(Global::sOSTypes);
641
642/**
643 * Returns an OS Type ID for the given VBOXOSTYPE value.
644 *
645 * The returned ID will correspond to the IGuestOSType::id value of one of the
646 * objects stored in the IVirtualBox::guestOSTypes
647 * (VirtualBoxImpl::COMGETTER(GuestOSTypes)) collection.
648 */
649/* static */
650const char *Global::OSTypeId(VBOXOSTYPE aOSType)
651{
652 for (size_t i = 0; i < RT_ELEMENTS(sOSTypes); ++i)
653 {
654 if (sOSTypes[i].osType == aOSType)
655 return sOSTypes[i].id;
656 }
657
658 return sOSTypes[0].id;
659}
660
661/**
662 * Maps an OS type ID string to index into sOSTypes.
663 *
664 * @returns index on success, UINT32_MAX if not found.
665 * @param pszId The OS type ID string.
666 */
667/* static */ uint32_t Global::getOSTypeIndexFromId(const char *pszId)
668{
669 for (size_t i = 0; i < RT_ELEMENTS(sOSTypes); ++i)
670 if (!RTStrICmp(pszId, Global::sOSTypes[i].id))
671 return (uint32_t)i;
672 return UINT32_MAX;
673}
674
675/*static*/ const char *
676Global::stringifyMachineState(MachineState_T aState)
677{
678 switch (aState)
679 {
680 case MachineState_Null: return GlobalCtx::tr("Null");
681 case MachineState_PoweredOff: return GlobalCtx::tr("PoweredOff");
682 case MachineState_Saved: return GlobalCtx::tr("Saved");
683 case MachineState_Teleported: return GlobalCtx::tr("Teleported");
684 case MachineState_Aborted: return GlobalCtx::tr("Aborted");
685 case MachineState_AbortedSaved: return GlobalCtx::tr("Aborted-Saved");
686 case MachineState_Running: return GlobalCtx::tr("Running");
687 case MachineState_Paused: return GlobalCtx::tr("Paused");
688 case MachineState_Stuck: return GlobalCtx::tr("GuruMeditation");
689 case MachineState_Teleporting: return GlobalCtx::tr("Teleporting");
690 case MachineState_LiveSnapshotting: return GlobalCtx::tr("LiveSnapshotting");
691 case MachineState_Starting: return GlobalCtx::tr("Starting");
692 case MachineState_Stopping: return GlobalCtx::tr("Stopping");
693 case MachineState_Saving: return GlobalCtx::tr("Saving");
694 case MachineState_Restoring: return GlobalCtx::tr("Restoring");
695 case MachineState_TeleportingPausedVM: return GlobalCtx::tr("TeleportingPausedVM");
696 case MachineState_TeleportingIn: return GlobalCtx::tr("TeleportingIn");
697 case MachineState_DeletingSnapshotOnline: return GlobalCtx::tr("DeletingSnapshotOnline");
698 case MachineState_DeletingSnapshotPaused: return GlobalCtx::tr("DeletingSnapshotPaused");
699 case MachineState_OnlineSnapshotting: return GlobalCtx::tr("OnlineSnapshotting");
700 case MachineState_RestoringSnapshot: return GlobalCtx::tr("RestoringSnapshot");
701 case MachineState_DeletingSnapshot: return GlobalCtx::tr("DeletingSnapshot");
702 case MachineState_SettingUp: return GlobalCtx::tr("SettingUp");
703 case MachineState_Snapshotting: return GlobalCtx::tr("Snapshotting");
704 default:
705 AssertMsgFailedReturn(("%d (%#x)\n", aState, aState), ::stringifyMachineState(aState));
706 }
707}
708
709/*static*/ const char *
710Global::stringifySessionState(SessionState_T aState)
711{
712 switch (aState)
713 {
714 case SessionState_Null: return GlobalCtx::tr("Null");
715 case SessionState_Unlocked: return GlobalCtx::tr("Unlocked");
716 case SessionState_Locked: return GlobalCtx::tr("Locked");
717 case SessionState_Spawning: return GlobalCtx::tr("Spawning");
718 case SessionState_Unlocking: return GlobalCtx::tr("Unlocking");
719 default:
720 AssertMsgFailedReturn(("%d (%#x)\n", aState, aState), ::stringifySessionState(aState));
721 }
722}
723
724/*static*/ const char *
725Global::stringifyStorageControllerType(StorageControllerType_T aType)
726{
727 switch (aType)
728 {
729 case StorageControllerType_Null: return GlobalCtx::tr("Null");
730 case StorageControllerType_LsiLogic: return GlobalCtx::tr("LsiLogic");
731 case StorageControllerType_BusLogic: return GlobalCtx::tr("BusLogic");
732 case StorageControllerType_IntelAhci: return GlobalCtx::tr("AHCI");
733 case StorageControllerType_PIIX3: return GlobalCtx::tr("PIIX3");
734 case StorageControllerType_PIIX4 : return GlobalCtx::tr("PIIX4");
735 case StorageControllerType_ICH6: return GlobalCtx::tr("ICH6");
736 case StorageControllerType_I82078: return GlobalCtx::tr("I82078");
737 case StorageControllerType_LsiLogicSas: return GlobalCtx::tr("LsiLogicSas");
738 case StorageControllerType_USB: return GlobalCtx::tr("USB");
739 case StorageControllerType_NVMe: return GlobalCtx::tr("NVMe");
740 case StorageControllerType_VirtioSCSI: return GlobalCtx::tr("VirtioSCSI");
741 default:
742 AssertMsgFailedReturn(("%d (%#x)\n", aType, aType), ::stringifyStorageControllerType(aType));
743 }
744}
745
746/*static*/ const char *
747Global::stringifyDeviceType(DeviceType_T aType)
748{
749 switch (aType)
750 {
751 case DeviceType_Null: return GlobalCtx::tr("Null");
752 case DeviceType_Floppy: return GlobalCtx::tr("Floppy");
753 case DeviceType_DVD: return GlobalCtx::tr("DVD");
754 case DeviceType_HardDisk: return GlobalCtx::tr("HardDisk");
755 case DeviceType_Network: return GlobalCtx::tr("Network");
756 case DeviceType_USB: return GlobalCtx::tr("USB");
757 case DeviceType_SharedFolder: return GlobalCtx::tr("SharedFolder");
758 default:
759 AssertMsgFailedReturn(("%d (%#x)\n", aType, aType), ::stringifyDeviceType(aType));
760 }
761}
762
763#if 0 /* unused */
764
765/*static*/ const char *
766Global::stringifyStorageBus(StorageBus_T aBus)
767{
768 switch (aBus)
769 {
770 case StorageBus_Null: return GlobalCtx::tr("Null");
771 case StorageBus_IDE: return GlobalCtx::tr("IDE");
772 case StorageBus_SATA: return GlobalCtx::tr("SATA");
773 case StorageBus_Floppy: return GlobalCtx::tr("Floppy");
774 case StorageBus_SAS: return GlobalCtx::tr("SAS");
775 case StorageBus_USB: return GlobalCtx::tr("USB");
776 case StorageBus_PCIe: return GlobalCtx::tr("PCIe");
777 case StorageBus_VirtioSCSI: return GlobalCtx::tr("VirtioSCSI");
778 default:
779 AssertMsgFailedReturn(("%d (%#x)\n", aBus, aBus), ::stringifyStorageBus(aBus));
780 }
781}
782
783/*static*/ const char *
784Global::stringifyReason(Reason_T aReason)
785{
786 switch (aReason)
787 {
788 case Reason_Unspecified: return GlobalCtx::tr("unspecified");
789 case Reason_HostSuspend: return GlobalCtx::tr("host suspend");
790 case Reason_HostResume: return GlobalCtx::tr("host resume");
791 case Reason_HostBatteryLow: return GlobalCtx::tr("host battery low");
792 case Reason_Snapshot: return GlobalCtx::tr("snapshot");
793 default:
794 AssertMsgFailedReturn(("%d (%#x)\n", aReason, aReason), ::stringifyReason(aReason));
795 }
796}
797
798#endif /* unused */
799
800/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

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