VirtualBox

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

Last change on this file since 101218 was 101218, checked in by vboxsync, 15 months ago

Main/Global: One more fix for x64 OS type naming, to match the UI icon pool of FE/Qt. bugref:10384

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