VirtualBox

source: vbox/trunk/include/VBox/ostypes.h@ 94460

Last change on this file since 94460 was 94460, checked in by vboxsync, 3 years ago

VBox/ostypes.h+Main/Global,Machine,UnattendedInstaller+FE/Qt: First pass
at updating the variety of Linux OS subtypes used at install time along
with their corresponding recommended installation defaults based on each
vendor's respective documentation. bugref:5936

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.3 KB
Line 
1/** @file
2 * VirtualBox - Global Guest Operating System definition.
3 */
4
5/*
6 * Copyright (C) 2006-2022 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef VBOX_INCLUDED_ostypes_h
27#define VBOX_INCLUDED_ostypes_h
28#ifndef RT_WITHOUT_PRAGMA_ONCE
29# pragma once
30#endif
31
32#include <iprt/cdefs.h>
33
34RT_C_DECLS_BEGIN
35
36/**
37 * Global list of guest operating system types.
38 *
39 * They are grouped into families. A family identifer is always has
40 * mod 0x10000 == 0. New entries can be added, however other components
41 * depend on the values (e.g. the Qt GUI and guest additions) so the
42 * existing values MUST stay the same.
43 */
44typedef enum VBOXOSTYPE
45{
46 VBOXOSTYPE_Unknown = 0,
47 VBOXOSTYPE_Unknown_x64 = 0x00100,
48
49 /** @name DOS and it's descendants
50 * @{ */
51 VBOXOSTYPE_DOS = 0x10000,
52 VBOXOSTYPE_Win31 = 0x15000,
53 VBOXOSTYPE_Win9x = 0x20000,
54 VBOXOSTYPE_Win95 = 0x21000,
55 VBOXOSTYPE_Win98 = 0x22000,
56 VBOXOSTYPE_WinMe = 0x23000,
57 VBOXOSTYPE_WinNT = 0x30000,
58 VBOXOSTYPE_WinNT_x64 = 0x30100,
59 VBOXOSTYPE_WinNT3x = 0x30800,
60 VBOXOSTYPE_WinNT4 = 0x31000,
61 VBOXOSTYPE_Win2k = 0x32000,
62 VBOXOSTYPE_WinXP = 0x33000,
63 VBOXOSTYPE_WinXP_x64 = 0x33100,
64 VBOXOSTYPE_Win2k3 = 0x34000,
65 VBOXOSTYPE_Win2k3_x64 = 0x34100,
66 VBOXOSTYPE_WinVista = 0x35000,
67 VBOXOSTYPE_WinVista_x64 = 0x35100,
68 VBOXOSTYPE_Win2k8 = 0x36000,
69 VBOXOSTYPE_Win2k8_x64 = 0x36100,
70 VBOXOSTYPE_Win7 = 0x37000,
71 VBOXOSTYPE_Win7_x64 = 0x37100,
72 VBOXOSTYPE_Win8 = 0x38000,
73 VBOXOSTYPE_Win8_x64 = 0x38100,
74 VBOXOSTYPE_Win2k12_x64 = 0x39100,
75 VBOXOSTYPE_Win81 = 0x3A000,
76 VBOXOSTYPE_Win81_x64 = 0x3A100,
77 VBOXOSTYPE_Win10 = 0x3B000,
78 VBOXOSTYPE_Win10_x64 = 0x3B100,
79 VBOXOSTYPE_Win2k16_x64 = 0x3C100,
80 VBOXOSTYPE_Win2k19_x64 = 0x3D100,
81 VBOXOSTYPE_Win11_x64 = 0x3E100,
82 VBOXOSTYPE_Win2k22_x64 = 0x3F100,
83 VBOXOSTYPE_OS2 = 0x40000,
84 VBOXOSTYPE_OS2Warp3 = 0x41000,
85 VBOXOSTYPE_OS2Warp4 = 0x42000,
86 VBOXOSTYPE_OS2Warp45 = 0x43000,
87 VBOXOSTYPE_ECS = 0x44000,
88 VBOXOSTYPE_ArcaOS = 0x45000,
89 VBOXOSTYPE_OS21x = 0x48000,
90 /** @} */
91 /** @name Unixy related OSes
92 * @{ */
93 VBOXOSTYPE_Linux = 0x50000,
94 VBOXOSTYPE_Linux_x64 = 0x50100,
95 VBOXOSTYPE_Linux22 = 0x51000,
96 VBOXOSTYPE_Linux24 = 0x52000,
97 VBOXOSTYPE_Linux24_x64 = 0x52100,
98 VBOXOSTYPE_Linux26 = 0x53000,
99 VBOXOSTYPE_Linux26_x64 = 0x53100,
100 VBOXOSTYPE_ArchLinux = 0x54000,
101 VBOXOSTYPE_ArchLinux_x64 = 0x54100,
102 VBOXOSTYPE_Debian = 0x55000,
103 VBOXOSTYPE_Debian_x64 = 0x55100,
104 VBOXOSTYPE_Debian31 = 0x55001, // 32-bit only
105 VBOXOSTYPE_Debian4 = 0x55002,
106 VBOXOSTYPE_Debian4_x64 = 0x55102,
107 VBOXOSTYPE_Debian5 = 0x55003,
108 VBOXOSTYPE_Debian5_x64 = 0x55103,
109 VBOXOSTYPE_Debian6 = 0x55004,
110 VBOXOSTYPE_Debian6_x64 = 0x55104,
111 VBOXOSTYPE_Debian7 = 0x55005,
112 VBOXOSTYPE_Debian7_x64 = 0x55105,
113 VBOXOSTYPE_Debian8 = 0x55006,
114 VBOXOSTYPE_Debian8_x64 = 0x55106,
115 VBOXOSTYPE_Debian9 = 0x55007,
116 VBOXOSTYPE_Debian9_x64 = 0x55107,
117 VBOXOSTYPE_Debian10 = 0x55008,
118 VBOXOSTYPE_Debian10_x64 = 0x55108,
119 VBOXOSTYPE_Debian11 = 0x55009,
120 VBOXOSTYPE_Debian11_x64 = 0x55109,
121 VBOXOSTYPE_Debian_latest_x64 = VBOXOSTYPE_Debian11_x64,
122 VBOXOSTYPE_OpenSUSE = 0x56000,
123 VBOXOSTYPE_OpenSUSE_x64 = 0x56100,
124 VBOXOSTYPE_OpenSUSE_Leap_x64 = 0x56101, // 64-bit only
125 VBOXOSTYPE_OpenSUSE_Tumbleweed = 0x56002,
126 VBOXOSTYPE_OpenSUSE_Tumbleweed_x64 = 0x56102,
127 VBOXOSTYPE_SUSE_LE = 0x56003,
128 VBOXOSTYPE_SUSE_LE_x64 = 0x56103,
129 VBOXOSTYPE_FedoraCore = 0x57000,
130 VBOXOSTYPE_FedoraCore_x64 = 0x57100,
131 VBOXOSTYPE_Gentoo = 0x58000,
132 VBOXOSTYPE_Gentoo_x64 = 0x58100,
133 VBOXOSTYPE_Mandriva = 0x59000,
134 VBOXOSTYPE_Mandriva_x64 = 0x59100,
135 VBOXOSTYPE_OpenMandriva_Lx = 0x59001,
136 VBOXOSTYPE_OpenMandriva_Lx_x64 = 0x59101,
137 VBOXOSTYPE_PCLinuxOS = 0x59002,
138 VBOXOSTYPE_PCLinuxOS_x64 = 0x59102,
139 VBOXOSTYPE_Mageia = 0x59003,
140 VBOXOSTYPE_Mageia_x64 = 0x59103,
141 VBOXOSTYPE_RedHat = 0x5A000,
142 VBOXOSTYPE_RedHat_x64 = 0x5A100,
143 VBOXOSTYPE_RedHat3 = 0x5A001,
144 VBOXOSTYPE_RedHat3_x64 = 0x5A101,
145 VBOXOSTYPE_RedHat4 = 0x5A002,
146 VBOXOSTYPE_RedHat4_x64 = 0x5A102,
147 VBOXOSTYPE_RedHat5 = 0x5A003,
148 VBOXOSTYPE_RedHat5_x64 = 0x5A103,
149 VBOXOSTYPE_RedHat6 = 0x5A004,
150 VBOXOSTYPE_RedHat6_x64 = 0x5A104,
151 VBOXOSTYPE_RedHat7_x64 = 0x5A105, // 64-bit only
152 VBOXOSTYPE_RedHat8_x64 = 0x5A106, // 64-bit only
153 VBOXOSTYPE_RedHat_latest_x64 = VBOXOSTYPE_RedHat8_x64,
154 VBOXOSTYPE_Turbolinux = 0x5B000,
155 VBOXOSTYPE_Turbolinux_x64 = 0x5B100,
156 VBOXOSTYPE_Ubuntu = 0x5C000,
157 VBOXOSTYPE_Ubuntu_x64 = 0x5C100,
158 VBOXOSTYPE_Xubuntu = 0x5C001,
159 VBOXOSTYPE_Xubuntu_x64 = 0x5C101,
160 VBOXOSTYPE_Lubuntu = 0x5C002,
161 VBOXOSTYPE_Lubuntu_x64 = 0x5C102,
162 VBOXOSTYPE_Ubuntu10_LTS = 0x5C003,
163 VBOXOSTYPE_Ubuntu10_LTS_x64 = 0x5C103,
164 VBOXOSTYPE_Ubuntu10 = 0x5C004,
165 VBOXOSTYPE_Ubuntu10_x64 = 0x5C104,
166 VBOXOSTYPE_Ubuntu11 = 0x5C005,
167 VBOXOSTYPE_Ubuntu11_x64 = 0x5C105,
168 VBOXOSTYPE_Ubuntu12_LTS = 0x5C006,
169 VBOXOSTYPE_Ubuntu12_LTS_x64 = 0x5C106,
170 VBOXOSTYPE_Ubuntu12 = 0x5C007,
171 VBOXOSTYPE_Ubuntu12_x64 = 0x5C107,
172 VBOXOSTYPE_Ubuntu13 = 0x5C008,
173 VBOXOSTYPE_Ubuntu13_x64 = 0x5C108,
174 VBOXOSTYPE_Ubuntu14_LTS = 0x5C009,
175 VBOXOSTYPE_Ubuntu14_LTS_x64 = 0x5C109,
176 VBOXOSTYPE_Ubuntu14 = 0x5C00a,
177 VBOXOSTYPE_Ubuntu14_x64 = 0x5C10a,
178 VBOXOSTYPE_Ubuntu15 = 0x5C00b,
179 VBOXOSTYPE_Ubuntu15_x64 = 0x5C10b,
180 VBOXOSTYPE_Ubuntu16_LTS = 0x5C00c,
181 VBOXOSTYPE_Ubuntu16_LTS_x64 = 0x5C10c,
182 VBOXOSTYPE_Ubuntu16 = 0x5C00d,
183 VBOXOSTYPE_Ubuntu16_x64 = 0x5C10d,
184 VBOXOSTYPE_Ubuntu17 = 0x5C00e,
185 VBOXOSTYPE_Ubuntu17_x64 = 0x5C10e,
186 VBOXOSTYPE_Ubuntu18_LTS = 0x5C00f,
187 VBOXOSTYPE_Ubuntu18_LTS_x64 = 0x5C10f,
188 VBOXOSTYPE_Ubuntu18 = 0x5C010,
189 VBOXOSTYPE_Ubuntu18_x64 = 0x5C110,
190 VBOXOSTYPE_Ubuntu19 = 0x5C011,
191 VBOXOSTYPE_Ubuntu19_x64 = 0x5C111,
192 VBOXOSTYPE_Ubuntu20_LTS_x64 = 0x5C112, // 64-bit only
193 VBOXOSTYPE_Ubuntu20_x64 = 0x5C113, // 64-bit only
194 VBOXOSTYPE_Ubuntu21_x64 = 0x5C114, // 64-bit only
195 VBOXOSTYPE_Ubuntu22_LTS_x64 = 0x5C115, // 64-bit only
196 VBOXOSTYPE_Ubuntu22_x64 = 0x5C116, // 64-bit only
197 VBOXOSTYPE_Ubuntu_latest_x64 = VBOXOSTYPE_Ubuntu22_x64,
198 VBOXOSTYPE_Xandros = 0x5D000,
199 VBOXOSTYPE_Xandros_x64 = 0x5D100,
200 VBOXOSTYPE_Oracle = 0x5E000,
201 VBOXOSTYPE_Oracle_x64 = 0x5E100,
202 VBOXOSTYPE_Oracle4 = 0x5E001,
203 VBOXOSTYPE_Oracle4_x64 = 0x5E101,
204 VBOXOSTYPE_Oracle5 = 0x5E002,
205 VBOXOSTYPE_Oracle5_x64 = 0x5E102,
206 VBOXOSTYPE_Oracle6 = 0x5E003,
207 VBOXOSTYPE_Oracle6_x64 = 0x5E103,
208 VBOXOSTYPE_Oracle7_x64 = 0x5E104, // 64-bit only
209 VBOXOSTYPE_Oracle8_x64 = 0x5E105, // 64-bit only
210 VBOXOSTYPE_Oracle_latest_x64 = VBOXOSTYPE_Oracle8_x64,
211 VBOXOSTYPE_FreeBSD = 0x60000,
212 VBOXOSTYPE_FreeBSD_x64 = 0x60100,
213 VBOXOSTYPE_OpenBSD = 0x61000,
214 VBOXOSTYPE_OpenBSD_x64 = 0x61100,
215 VBOXOSTYPE_NetBSD = 0x62000,
216 VBOXOSTYPE_NetBSD_x64 = 0x62100,
217 VBOXOSTYPE_Netware = 0x70000,
218 VBOXOSTYPE_Solaris = 0x80000,
219 VBOXOSTYPE_Solaris_x64 = 0x80100,
220 VBOXOSTYPE_OpenSolaris = 0x81000,
221 VBOXOSTYPE_OpenSolaris_x64 = 0x81100,
222 VBOXOSTYPE_Solaris11_x64 = 0x82100,
223 VBOXOSTYPE_L4 = 0x90000,
224 VBOXOSTYPE_QNX = 0xA0000,
225 VBOXOSTYPE_MacOS = 0xB0000,
226 VBOXOSTYPE_MacOS_x64 = 0xB0100,
227 VBOXOSTYPE_MacOS106 = 0xB2000,
228 VBOXOSTYPE_MacOS106_x64 = 0xB2100,
229 VBOXOSTYPE_MacOS107_x64 = 0xB3100,
230 VBOXOSTYPE_MacOS108_x64 = 0xB4100,
231 VBOXOSTYPE_MacOS109_x64 = 0xB5100,
232 VBOXOSTYPE_MacOS1010_x64 = 0xB6100,
233 VBOXOSTYPE_MacOS1011_x64 = 0xB7100,
234 VBOXOSTYPE_MacOS1012_x64 = 0xB8100,
235 VBOXOSTYPE_MacOS1013_x64 = 0xB9100,
236 /** @} */
237 /** @name Other OSes and stuff
238 * @{ */
239 VBOXOSTYPE_JRockitVE = 0xC0000,
240 VBOXOSTYPE_Haiku = 0xD0000,
241 VBOXOSTYPE_Haiku_x64 = 0xD0100,
242 VBOXOSTYPE_VBoxBS_x64 = 0xE0100,
243 /** @} */
244
245 /** OS type mask. */
246 VBOXOSTYPE_OsTypeMask = 0x00fff000,
247
248 /** @name Architecture Type
249 * @{ */
250 /** Mask containing the architecture value. */
251 VBOXOSTYPE_ArchitectureMask = 0x00f00,
252 /** Architecture value for 16-bit and 32-bit x86. */
253 VBOXOSTYPE_x86 = 0x00000,
254 /** Architecture value for 64-bit x86 (AMD64). */
255 VBOXOSTYPE_x64 = 0x00100,
256 /** Architecture value for 32-bit ARM. */
257 VBOXOSTYPE_arm32 = 0x00200,
258 /** Architecture value for 64-bit ARM. */
259 VBOXOSTYPE_arm64 = 0x00300,
260 /** Architecture value for unknown or unsupported architectures. */
261 VBOXOSTYPE_UnknownArch = 0x00f00,
262 /** @} */
263
264 /** The usual 32-bit hack. */
265 VBOXOSTYPE_32BIT_HACK = 0x7fffffff
266} VBOXOSTYPE;
267
268
269/**
270 * Global list of guest OS families.
271 */
272typedef enum VBOXOSFAMILY
273{
274 VBOXOSFAMILY_Unknown = 0,
275 VBOXOSFAMILY_Windows32 = 1,
276 VBOXOSFAMILY_Windows64 = 2,
277 VBOXOSFAMILY_Linux32 = 3,
278 VBOXOSFAMILY_Linux64 = 4,
279 VBOXOSFAMILY_FreeBSD32 = 5,
280 VBOXOSFAMILY_FreeBSD64 = 6,
281 VBOXOSFAMILY_Solaris32 = 7,
282 VBOXOSFAMILY_Solaris64 = 8,
283 VBOXOSFAMILY_MacOSX32 = 9,
284 VBOXOSFAMILY_MacOSX64 = 10,
285 /** The usual 32-bit hack. */
286 VBOXOSFAMILY_32BIT_HACK = 0x7fffffff
287} VBOXOSFAMILY;
288
289RT_C_DECLS_END
290
291#endif /* !VBOX_INCLUDED_ostypes_h */
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