1 | /* $Id: Global.cpp 91470 2021-09-29 19:55:51Z 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-2020 Oracle Corporation
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | * available from http://www.virtualbox.org. This file is free software;
|
---|
13 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | * General Public License (GPL) as published by the Free Software
|
---|
15 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | */
|
---|
19 |
|
---|
20 | #include "Global.h"
|
---|
21 |
|
---|
22 | #include <iprt/assert.h>
|
---|
23 | #include <iprt/string.h>
|
---|
24 | #include <iprt/errcore.h>
|
---|
25 |
|
---|
26 | /* static */
|
---|
27 | const Global::OSType Global::sOSTypes[] =
|
---|
28 | {
|
---|
29 | /* NOTE1: we assume that unknown is always the first two entries!
|
---|
30 | * NOTE2: please use powers of 2 when specifying the size of harddisks since
|
---|
31 | * '2GB' looks better than '1.95GB' (= 2000MB)
|
---|
32 | * NOTE3: if you add new guest OS types please check if the code in
|
---|
33 | * Machine::getEffectiveParavirtProvider and Console::i_configConstructorInner
|
---|
34 | * are still covering the relevant cases. */
|
---|
35 | { "Other", "Other", "Other", "Other/Unknown",
|
---|
36 | VBOXOSTYPE_Unknown, VBOXOSHINT_NONE,
|
---|
37 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
38 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
39 |
|
---|
40 | { "Other", "Other", "Other_64", "Other/Unknown (64-bit)",
|
---|
41 | VBOXOSTYPE_Unknown_x64, VBOXOSHINT_64BIT | VBOXOSHINT_PAE | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC,
|
---|
42 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
43 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
44 |
|
---|
45 | { "Windows", "Microsoft Windows", "Windows31", "Windows 3.1",
|
---|
46 | VBOXOSTYPE_Win31, VBOXOSHINT_FLOPPY,
|
---|
47 | 1, 32, 4, 1 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
48 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
49 |
|
---|
50 | { "Windows", "Microsoft Windows", "Windows95", "Windows 95",
|
---|
51 | VBOXOSTYPE_Win95, VBOXOSHINT_FLOPPY,
|
---|
52 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
53 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
54 |
|
---|
55 | { "Windows", "Microsoft Windows", "Windows98", "Windows 98",
|
---|
56 | VBOXOSTYPE_Win98, VBOXOSHINT_FLOPPY,
|
---|
57 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
58 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
59 |
|
---|
60 | { "Windows", "Microsoft Windows", "WindowsMe", "Windows ME",
|
---|
61 | VBOXOSTYPE_WinMe, VBOXOSHINT_FLOPPY | VBOXOSHINT_USBTABLET,
|
---|
62 | 1, 128, 4, 4 * _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 | { "Windows", "Microsoft Windows", "WindowsNT3x", "Windows NT 3.x",
|
---|
66 | VBOXOSTYPE_WinNT3x, VBOXOSHINT_NOUSB | VBOXOSHINT_FLOPPY,
|
---|
67 | 1, 64, 8, _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_BusLogic, StorageBus_SCSI,
|
---|
68 | StorageControllerType_BusLogic, StorageBus_SCSI, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
69 |
|
---|
70 | { "Windows", "Microsoft Windows", "WindowsNT4", "Windows NT 4",
|
---|
71 | VBOXOSTYPE_WinNT4, VBOXOSHINT_NOUSB,
|
---|
72 | 1, 128, 16, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
73 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
74 |
|
---|
75 | { "Windows", "Microsoft Windows", "Windows2000", "Windows 2000",
|
---|
76 | VBOXOSTYPE_Win2k, VBOXOSHINT_USBTABLET,
|
---|
77 | 1, 168, 16, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
78 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
79 |
|
---|
80 | { "Windows", "Microsoft Windows", "WindowsXP", "Windows XP (32-bit)",
|
---|
81 | VBOXOSTYPE_WinXP, VBOXOSHINT_USBTABLET,
|
---|
82 | 1, 192, 16, 10 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82543GC, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
83 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
84 |
|
---|
85 | { "Windows", "Microsoft Windows", "WindowsXP_64", "Windows XP (64-bit)",
|
---|
86 | VBOXOSTYPE_WinXP_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
87 | 1, 512, 16, 10 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
88 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
89 |
|
---|
90 | { "Windows", "Microsoft Windows", "Windows2003", "Windows 2003 (32-bit)",
|
---|
91 | VBOXOSTYPE_Win2k3, VBOXOSHINT_USBTABLET,
|
---|
92 | 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82543GC, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
93 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
94 |
|
---|
95 | { "Windows", "Microsoft Windows", "Windows2003_64", "Windows 2003 (64-bit)",
|
---|
96 | VBOXOSTYPE_Win2k3_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
97 | 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
98 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
99 |
|
---|
100 | { "Windows", "Microsoft Windows", "WindowsVista", "Windows Vista (32-bit)",
|
---|
101 | VBOXOSTYPE_WinVista, VBOXOSHINT_USBTABLET,
|
---|
102 | 1, 512, 16, 25 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
103 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
104 |
|
---|
105 | { "Windows", "Microsoft Windows", "WindowsVista_64", "Windows Vista (64-bit)",
|
---|
106 | VBOXOSTYPE_WinVista_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
107 | 1, 512, 16, 25 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
108 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
109 |
|
---|
110 | { "Windows", "Microsoft Windows", "Windows2008", "Windows 2008 (32-bit)",
|
---|
111 | VBOXOSTYPE_Win2k8, VBOXOSHINT_USBTABLET,
|
---|
112 | 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
113 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
114 |
|
---|
115 | { "Windows", "Microsoft Windows", "Windows2008_64", "Windows 2008 (64-bit)",
|
---|
116 | VBOXOSTYPE_Win2k8_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
117 | 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
118 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
119 |
|
---|
120 | { "Windows", "Microsoft Windows", "Windows7", "Windows 7 (32-bit)",
|
---|
121 | VBOXOSTYPE_Win7, VBOXOSHINT_USBTABLET,
|
---|
122 | 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
123 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
124 |
|
---|
125 | { "Windows", "Microsoft Windows", "Windows7_64", "Windows 7 (64-bit)",
|
---|
126 | VBOXOSTYPE_Win7_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
127 | 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
128 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
129 |
|
---|
130 | { "Windows", "Microsoft Windows", "Windows8", "Windows 8 (32-bit)",
|
---|
131 | VBOXOSTYPE_Win8, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_PAE | VBOXOSHINT_USB3,
|
---|
132 | 1, 1024, 128, 40 * _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", "Windows8_64", "Windows 8 (64-bit)",
|
---|
136 | VBOXOSTYPE_Win8_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
137 | 1, 2048, 128, 40 * _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", "Windows81", "Windows 8.1 (32-bit)",
|
---|
141 | VBOXOSTYPE_Win81, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_PAE | VBOXOSHINT_USB3,
|
---|
142 | 1, 1024, 128, 40 * _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", "Windows81_64", "Windows 8.1 (64-bit)",
|
---|
146 | VBOXOSTYPE_Win81_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
147 | 1, 2048, 128, 40 * _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", "Windows2012_64", "Windows 2012 (64-bit)",
|
---|
151 | VBOXOSTYPE_Win2k12_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
152 | 1, 2048, 128, 50 * _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", "Windows10", "Windows 10 (32-bit)",
|
---|
156 | VBOXOSTYPE_Win10, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_PAE | VBOXOSHINT_USB3,
|
---|
157 | 1, 1024, 128, 50 * _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", "Windows10_64", "Windows 10 (64-bit)",
|
---|
161 | VBOXOSTYPE_Win10_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
162 | 1, 2048, 128, 50 * _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", "Windows2016_64", "Windows 2016 (64-bit)",
|
---|
166 | VBOXOSTYPE_Win2k16_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
167 | 1, 2048, 128, 50 * _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", "Windows2019_64", "Windows 2019 (64-bit)",
|
---|
171 | VBOXOSTYPE_Win2k19_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
172 | 1, 2048, 128, 50 * _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", "Windows11_64", "Windows 11 (64-bit)",
|
---|
176 | VBOXOSTYPE_Win11_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_USBTABLET | VBOXOSHINT_USB3,
|
---|
177 | 2, 4096, 128, 80 * _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", "WindowsNT", "Other Windows (32-bit)",
|
---|
181 | VBOXOSTYPE_WinNT, VBOXOSHINT_NONE,
|
---|
182 | 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
183 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
184 |
|
---|
185 | { "Windows", "Microsoft Windows", "WindowsNT_64", "Other Windows (64-bit)",
|
---|
186 | VBOXOSTYPE_WinNT_x64, VBOXOSHINT_64BIT | VBOXOSHINT_PAE | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
187 | 1, 512, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
188 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
189 |
|
---|
190 | { "Linux", "Linux", "Linux22", "Linux 2.2",
|
---|
191 | VBOXOSTYPE_Linux22, VBOXOSHINT_RTCUTC,
|
---|
192 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
193 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
194 |
|
---|
195 | { "Linux", "Linux", "Linux24", "Linux 2.4 (32-bit)",
|
---|
196 | VBOXOSTYPE_Linux24, VBOXOSHINT_RTCUTC,
|
---|
197 | 1, 128, 16, 4 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
198 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
199 |
|
---|
200 | { "Linux", "Linux", "Linux24_64", "Linux 2.4 (64-bit)",
|
---|
201 | VBOXOSTYPE_Linux24_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC,
|
---|
202 | 1, 128, 16, 4 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
203 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
204 |
|
---|
205 | { "Linux", "Linux", "Linux26", "Linux 2.6 / 3.x / 4.x / 5.x (32-bit)",
|
---|
206 | VBOXOSTYPE_Linux26, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
207 | 1, 512, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
208 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
209 |
|
---|
210 | { "Linux", "Linux", "Linux26_64", "Linux 2.6 / 3.x / 4.x / 5.x (64-bit)",
|
---|
211 | VBOXOSTYPE_Linux26_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
212 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
213 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
214 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
215 |
|
---|
216 | { "Linux", "Linux", "ArchLinux", "Arch Linux (32-bit)",
|
---|
217 | VBOXOSTYPE_ArchLinux, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
218 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
219 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
220 |
|
---|
221 | { "Linux", "Linux", "ArchLinux_64", "Arch Linux (64-bit)",
|
---|
222 | VBOXOSTYPE_ArchLinux_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
223 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
224 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
225 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
226 |
|
---|
227 | { "Linux", "Linux", "Debian", "Debian (32-bit)",
|
---|
228 | VBOXOSTYPE_Debian, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
229 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
230 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
231 |
|
---|
232 | { "Linux", "Linux", "Debian_64", "Debian (64-bit)",
|
---|
233 | VBOXOSTYPE_Debian_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
234 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
235 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
236 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980},
|
---|
237 |
|
---|
238 | { "Linux", "Linux", "Fedora", "Fedora (32-bit)",
|
---|
239 | VBOXOSTYPE_FedoraCore, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
240 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
241 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
242 |
|
---|
243 | { "Linux", "Linux", "Fedora_64", "Fedora (64-bit)",
|
---|
244 | VBOXOSTYPE_FedoraCore_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
245 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
246 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
247 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
248 |
|
---|
249 | { "Linux", "Linux", "Gentoo", "Gentoo (32-bit)",
|
---|
250 | VBOXOSTYPE_Gentoo, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
251 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
252 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
253 |
|
---|
254 | { "Linux", "Linux", "Gentoo_64", "Gentoo (64-bit)",
|
---|
255 | VBOXOSTYPE_Gentoo_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
256 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
257 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
258 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
259 |
|
---|
260 | { "Linux", "Linux", "Mandriva", "Mandriva (32-bit)",
|
---|
261 | VBOXOSTYPE_Mandriva, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
262 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
263 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
264 |
|
---|
265 | { "Linux", "Linux", "Mandriva_64", "Mandriva (64-bit)",
|
---|
266 | VBOXOSTYPE_Mandriva_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
267 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
268 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
269 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
270 |
|
---|
271 | { "Linux", "Linux", "Oracle", "Oracle (32-bit)",
|
---|
272 | VBOXOSTYPE_Oracle, VBOXOSHINT_RTCUTC | VBOXOSHINT_PAE | VBOXOSHINT_X2APIC,
|
---|
273 | 1, 1024, 16, 12 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
274 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
275 |
|
---|
276 | { "Linux", "Linux", "Oracle_64", "Oracle (64-bit)",
|
---|
277 | VBOXOSTYPE_Oracle_x64, VBOXOSHINT_64BIT | VBOXOSHINT_PAE | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
278 | | VBOXOSHINT_X2APIC,
|
---|
279 | 1, 1024, 16, 12 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
280 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
281 |
|
---|
282 | { "Linux", "Linux", "RedHat", "Red Hat (32-bit)",
|
---|
283 | VBOXOSTYPE_RedHat, VBOXOSHINT_RTCUTC | VBOXOSHINT_PAE | VBOXOSHINT_X2APIC,
|
---|
284 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
285 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
286 |
|
---|
287 | { "Linux", "Linux", "RedHat_64", "Red Hat (64-bit)",
|
---|
288 | VBOXOSTYPE_RedHat_x64, VBOXOSHINT_64BIT | VBOXOSHINT_PAE | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
289 | | VBOXOSHINT_X2APIC,
|
---|
290 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
291 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
292 |
|
---|
293 | { "Linux", "Linux", "OpenSUSE", "openSUSE (32-bit)",
|
---|
294 | VBOXOSTYPE_OpenSUSE, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
295 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
296 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
297 |
|
---|
298 | { "Linux", "Linux", "OpenSUSE_64", "openSUSE (64-bit)",
|
---|
299 | VBOXOSTYPE_OpenSUSE_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
300 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
301 | 1, 1024, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
302 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
303 |
|
---|
304 | { "Linux", "Linux", "Turbolinux", "Turbolinux (32-bit)",
|
---|
305 | VBOXOSTYPE_Turbolinux, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
306 | 1, 384, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
307 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
308 |
|
---|
309 | { "Linux", "Linux", "Turbolinux_64", "Turbolinux (64-bit)",
|
---|
310 | VBOXOSTYPE_Turbolinux_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
311 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
312 | 1, 384, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
313 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
314 |
|
---|
315 | { "Linux", "Linux", "Ubuntu", "Ubuntu (32-bit)",
|
---|
316 | VBOXOSTYPE_Ubuntu, VBOXOSHINT_RTCUTC | VBOXOSHINT_PAE | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
317 | 1, 1024, 16, 10 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
318 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
319 |
|
---|
320 | { "Linux", "Linux", "Ubuntu_64", "Ubuntu (64-bit)",
|
---|
321 | VBOXOSTYPE_Ubuntu_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC
|
---|
322 | | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
323 | 1, 1024, 16, 10 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
324 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
325 |
|
---|
326 | { "Linux", "Linux", "Xandros", "Xandros (32-bit)",
|
---|
327 | VBOXOSTYPE_Xandros, VBOXOSHINT_RTCUTC | VBOXOSHINT_X2APIC,
|
---|
328 | 1, 256, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
329 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
330 |
|
---|
331 | { "Linux", "Linux", "Xandros_64", "Xandros (64-bit)",
|
---|
332 | VBOXOSTYPE_Xandros_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC | VBOXOSHINT_X2APIC,
|
---|
333 | 1, 256, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
334 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
335 |
|
---|
336 | { "Linux", "Linux", "Linux", "Other Linux (32-bit)",
|
---|
337 | VBOXOSTYPE_Linux, VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
338 | 1, 256, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
339 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_AD1980 },
|
---|
340 |
|
---|
341 | { "Linux", "Linux", "Linux_64", "Other Linux (64-bit)",
|
---|
342 | VBOXOSTYPE_Linux_x64, VBOXOSHINT_64BIT | VBOXOSHINT_PAE | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC
|
---|
343 | | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET | VBOXOSHINT_X2APIC,
|
---|
344 | 1, 512, 16, 8 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
345 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
346 |
|
---|
347 | { "Solaris", "Solaris", "Solaris", "Oracle Solaris 10 5/09 and earlier (32-bit)",
|
---|
348 | VBOXOSTYPE_Solaris, VBOXOSHINT_NONE,
|
---|
349 | 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
350 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
351 |
|
---|
352 | { "Solaris", "Solaris", "Solaris_64", "Oracle Solaris 10 5/09 and earlier (64-bit)",
|
---|
353 | VBOXOSTYPE_Solaris_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC,
|
---|
354 | 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
355 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
356 |
|
---|
357 | { "Solaris", "Solaris", "OpenSolaris", "Oracle Solaris 10 10/09 and later (32-bit)",
|
---|
358 | VBOXOSTYPE_OpenSolaris, VBOXOSHINT_USBTABLET,
|
---|
359 | 1, 1024, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
360 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
361 |
|
---|
362 | { "Solaris", "Solaris", "OpenSolaris_64", "Oracle Solaris 10 10/09 and later (64-bit)",
|
---|
363 | VBOXOSTYPE_OpenSolaris_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET,
|
---|
364 | 1, 2048, 16, 32 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
365 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
366 |
|
---|
367 | { "Solaris", "Solaris", "Solaris11_64", "Oracle Solaris 11 (64-bit)",
|
---|
368 | VBOXOSTYPE_Solaris11_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_USBTABLET | VBOXOSHINT_RTCUTC,
|
---|
369 | 1, 4096, 16, 32 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
370 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
371 |
|
---|
372 | { "BSD", "BSD", "FreeBSD", "FreeBSD (32-bit)",
|
---|
373 | VBOXOSTYPE_FreeBSD, VBOXOSHINT_NONE,
|
---|
374 | 1, 1024, 16, 2 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
375 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
376 |
|
---|
377 | { "BSD", "BSD", "FreeBSD_64", "FreeBSD (64-bit)",
|
---|
378 | VBOXOSTYPE_FreeBSD_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC,
|
---|
379 | 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
380 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
381 |
|
---|
382 | { "BSD", "BSD", "OpenBSD", "OpenBSD (32-bit)",
|
---|
383 | VBOXOSTYPE_OpenBSD, VBOXOSHINT_HWVIRTEX,
|
---|
384 | 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
385 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
386 |
|
---|
387 | { "BSD", "BSD", "OpenBSD_64", "OpenBSD (64-bit)",
|
---|
388 | VBOXOSTYPE_OpenBSD_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC,
|
---|
389 | 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
390 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
391 |
|
---|
392 | { "BSD", "BSD", "NetBSD", "NetBSD (32-bit)",
|
---|
393 | VBOXOSTYPE_NetBSD, VBOXOSHINT_RTCUTC,
|
---|
394 | 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
395 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
396 |
|
---|
397 | { "BSD", "BSD", "NetBSD_64", "NetBSD (64-bit)",
|
---|
398 | VBOXOSTYPE_NetBSD_x64, VBOXOSHINT_64BIT | VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_RTCUTC,
|
---|
399 | 1, 1024, 16, 16 * _1G64, GraphicsControllerType_VMSVGA, NetworkAdapterType_I82540EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
400 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
401 |
|
---|
402 | { "OS2", "IBM OS/2", "OS2Warp3", "OS/2 Warp 3",
|
---|
403 | VBOXOSTYPE_OS2Warp3, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY,
|
---|
404 | 1, 48, 4, 1 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
405 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
406 |
|
---|
407 | { "OS2", "IBM OS/2", "OS2Warp4", "OS/2 Warp 4",
|
---|
408 | VBOXOSTYPE_OS2Warp4, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY,
|
---|
409 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
410 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
411 |
|
---|
412 | { "OS2", "IBM OS/2", "OS2Warp45", "OS/2 Warp 4.5",
|
---|
413 | VBOXOSTYPE_OS2Warp45, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY,
|
---|
414 | 1, 128, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
415 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
416 |
|
---|
417 | { "OS2", "IBM OS/2", "OS2eCS", "eComStation",
|
---|
418 | VBOXOSTYPE_ECS, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY,
|
---|
419 | 1, 256, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
420 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
421 |
|
---|
422 | { "OS2", "IBM OS/2", "OS21x", "OS/2 1.x",
|
---|
423 | VBOXOSTYPE_OS21x, VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB | VBOXOSHINT_TFRESET,
|
---|
424 | 1, 8, 4, 500 * _1M, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
425 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
426 |
|
---|
427 | { "OS2", "IBM OS/2", "OS2", "Other OS/2",
|
---|
428 | VBOXOSTYPE_OS2, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
|
---|
429 | 1, 96, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
430 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
431 |
|
---|
432 | { "MacOS", "Mac OS X", "MacOS", "Mac OS X (32-bit)",
|
---|
433 | VBOXOSTYPE_MacOS, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE
|
---|
434 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
435 | 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
436 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
437 |
|
---|
438 | { "MacOS", "Mac OS X", "MacOS_64", "Mac OS X (64-bit)",
|
---|
439 | VBOXOSTYPE_MacOS_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
440 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
441 | 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
442 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
443 |
|
---|
444 | { "MacOS", "Mac OS X", "MacOS106", "Mac OS X 10.6 Snow Leopard (32-bit)",
|
---|
445 | VBOXOSTYPE_MacOS106, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE
|
---|
446 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
447 | 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
448 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
449 |
|
---|
450 | { "MacOS", "Mac OS X", "MacOS106_64", "Mac OS X 10.6 Snow Leopard (64-bit)",
|
---|
451 | VBOXOSTYPE_MacOS106_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
452 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
453 | 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
454 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
455 |
|
---|
456 | { "MacOS", "Mac OS X", "MacOS107_64", "Mac OS X 10.7 Lion (64-bit)",
|
---|
457 | VBOXOSTYPE_MacOS107_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
458 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
459 | 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0,
|
---|
460 | StorageControllerType_IntelAhci, StorageBus_SATA, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
461 | ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
462 | { "MacOS", "Mac OS X", "MacOS108_64", "Mac OS X 10.8 Mountain Lion (64-bit)", /* Aka "Mountain Kitten". */
|
---|
463 | VBOXOSTYPE_MacOS108_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
464 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
465 | 1, 2048, 16, 20 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0,
|
---|
466 | StorageControllerType_IntelAhci, StorageBus_SATA, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
467 | ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
468 |
|
---|
469 | { "MacOS", "Mac OS X", "MacOS109_64", "Mac OS X 10.9 Mavericks (64-bit)", /* Not to be confused with McCain. */
|
---|
470 | VBOXOSTYPE_MacOS109_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
471 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
472 | 1, 2048, 16, 25 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
473 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
474 |
|
---|
475 | { "MacOS", "Mac OS X", "MacOS1010_64", "Mac OS X 10.10 Yosemite (64-bit)",
|
---|
476 | VBOXOSTYPE_MacOS1010_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
477 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
478 | 1, 2048, 16, 25 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
479 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
480 |
|
---|
481 | { "MacOS", "Mac OS X", "MacOS1011_64", "Mac OS X 10.11 El Capitan (64-bit)",
|
---|
482 | VBOXOSTYPE_MacOS1011_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
483 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
484 | 1, 2048, 16, 30 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
485 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
486 |
|
---|
487 | { "MacOS", "Mac OS X", "MacOS1012_64", "macOS 10.12 Sierra (64-bit)",
|
---|
488 | VBOXOSTYPE_MacOS1012_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
489 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
490 | 1, 2048, 16, 30 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
491 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
492 |
|
---|
493 | { "MacOS", "Mac OS X", "MacOS1013_64", "macOS 10.13 High Sierra (64-bit)",
|
---|
494 | VBOXOSTYPE_MacOS1013_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_EFI | VBOXOSHINT_PAE | VBOXOSHINT_64BIT
|
---|
495 | | VBOXOSHINT_USBHID | VBOXOSHINT_HPET | VBOXOSHINT_RTCUTC | VBOXOSHINT_USBTABLET,
|
---|
496 | 1, 2048, 16, 30 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_IntelAhci, StorageBus_SATA,
|
---|
497 | StorageControllerType_IntelAhci, StorageBus_SATA, ChipsetType_ICH9, IommuType_None, AudioControllerType_HDA, AudioCodecType_STAC9221 },
|
---|
498 |
|
---|
499 | { "Other", "Other", "DOS", "DOS",
|
---|
500 | VBOXOSTYPE_DOS, VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
|
---|
501 | 1, 32, 4, 500 * _1M, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 1, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
502 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_SB16, AudioCodecType_SB16 },
|
---|
503 |
|
---|
504 | { "Other", "Other", "Netware", "Netware",
|
---|
505 | VBOXOSTYPE_Netware, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_NOUSB,
|
---|
506 | 1, 512, 4, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
507 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
508 |
|
---|
509 | { "Other", "Other", "L4", "L4",
|
---|
510 | VBOXOSTYPE_L4, VBOXOSHINT_NONE,
|
---|
511 | 1, 64, 4, 2 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
512 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
513 |
|
---|
514 | { "Other", "Other", "QNX", "QNX",
|
---|
515 | VBOXOSTYPE_QNX, VBOXOSHINT_HWVIRTEX,
|
---|
516 | 1, 512, 4, 4 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_Am79C973, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
517 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
518 |
|
---|
519 | { "Other", "Other", "JRockitVE", "JRockitVE",
|
---|
520 | VBOXOSTYPE_JRockitVE, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_IOAPIC | VBOXOSHINT_PAE,
|
---|
521 | 1, 1024, 4, 8 * _1G64, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
522 | StorageControllerType_BusLogic, StorageBus_SCSI, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
523 |
|
---|
524 | { "Other", "Other", "VBoxBS_64", "VirtualBox Bootsector Test (64-bit)",
|
---|
525 | VBOXOSTYPE_VBoxBS_x64, VBOXOSHINT_HWVIRTEX | VBOXOSHINT_FLOPPY | VBOXOSHINT_IOAPIC | VBOXOSHINT_PAE | VBOXOSHINT_64BIT,
|
---|
526 | 1, 128, 4, 0, GraphicsControllerType_VBoxVGA, NetworkAdapterType_I82545EM, 0, StorageControllerType_PIIX4, StorageBus_IDE,
|
---|
527 | StorageControllerType_PIIX4, StorageBus_IDE, ChipsetType_PIIX3, IommuType_None, AudioControllerType_AC97, AudioCodecType_STAC9700 },
|
---|
528 | };
|
---|
529 |
|
---|
530 | size_t Global::cOSTypes = RT_ELEMENTS(Global::sOSTypes);
|
---|
531 |
|
---|
532 | /**
|
---|
533 | * Returns an OS Type ID for the given VBOXOSTYPE value.
|
---|
534 | *
|
---|
535 | * The returned ID will correspond to the IGuestOSType::id value of one of the
|
---|
536 | * objects stored in the IVirtualBox::guestOSTypes
|
---|
537 | * (VirtualBoxImpl::COMGETTER(GuestOSTypes)) collection.
|
---|
538 | */
|
---|
539 | /* static */
|
---|
540 | const char *Global::OSTypeId(VBOXOSTYPE aOSType)
|
---|
541 | {
|
---|
542 | for (size_t i = 0; i < RT_ELEMENTS(sOSTypes); ++i)
|
---|
543 | {
|
---|
544 | if (sOSTypes[i].osType == aOSType)
|
---|
545 | return sOSTypes[i].id;
|
---|
546 | }
|
---|
547 |
|
---|
548 | return sOSTypes[0].id;
|
---|
549 | }
|
---|
550 |
|
---|
551 | /**
|
---|
552 | * Maps an OS type ID string to index into sOSTypes.
|
---|
553 | *
|
---|
554 | * @returns index on success, UINT32_MAX if not found.
|
---|
555 | * @param pszId The OS type ID string.
|
---|
556 | */
|
---|
557 | /* static */ uint32_t Global::getOSTypeIndexFromId(const char *pszId)
|
---|
558 | {
|
---|
559 | for (size_t i = 0; i < RT_ELEMENTS(sOSTypes); ++i)
|
---|
560 | if (!RTStrICmp(pszId, Global::sOSTypes[i].id))
|
---|
561 | return (uint32_t)i;
|
---|
562 | return UINT32_MAX;
|
---|
563 | }
|
---|
564 |
|
---|
565 | /*static*/ uint32_t Global::getMaxNetworkAdapters(ChipsetType_T aChipsetType)
|
---|
566 | {
|
---|
567 | switch (aChipsetType)
|
---|
568 | {
|
---|
569 | case ChipsetType_PIIX3:
|
---|
570 | return 8;
|
---|
571 | case ChipsetType_ICH9:
|
---|
572 | return 36;
|
---|
573 | default:
|
---|
574 | return 0;
|
---|
575 | }
|
---|
576 | }
|
---|
577 |
|
---|
578 | /*static*/ const char *
|
---|
579 | Global::stringifyMachineState(MachineState_T aState)
|
---|
580 | {
|
---|
581 | switch (aState)
|
---|
582 | {
|
---|
583 | case MachineState_Null: return "Null";
|
---|
584 | case MachineState_PoweredOff: return "PoweredOff";
|
---|
585 | case MachineState_Saved: return "Saved";
|
---|
586 | case MachineState_Teleported: return "Teleported";
|
---|
587 | case MachineState_Aborted: return "Aborted";
|
---|
588 | case MachineState_AbortedSaved: return "Aborted-Saved";
|
---|
589 | case MachineState_Running: return "Running";
|
---|
590 | case MachineState_Paused: return "Paused";
|
---|
591 | case MachineState_Stuck: return "GuruMeditation";
|
---|
592 | case MachineState_Teleporting: return "Teleporting";
|
---|
593 | case MachineState_LiveSnapshotting: return "LiveSnapshotting";
|
---|
594 | case MachineState_Starting: return "Starting";
|
---|
595 | case MachineState_Stopping: return "Stopping";
|
---|
596 | case MachineState_Saving: return "Saving";
|
---|
597 | case MachineState_Restoring: return "Restoring";
|
---|
598 | case MachineState_TeleportingPausedVM: return "TeleportingPausedVM";
|
---|
599 | case MachineState_TeleportingIn: return "TeleportingIn";
|
---|
600 | case MachineState_DeletingSnapshotOnline: return "DeletingSnapshotOnline";
|
---|
601 | case MachineState_DeletingSnapshotPaused: return "DeletingSnapshotPaused";
|
---|
602 | case MachineState_OnlineSnapshotting: return "OnlineSnapshotting";
|
---|
603 | case MachineState_RestoringSnapshot: return "RestoringSnapshot";
|
---|
604 | case MachineState_DeletingSnapshot: return "DeletingSnapshot";
|
---|
605 | case MachineState_SettingUp: return "SettingUp";
|
---|
606 | case MachineState_Snapshotting: return "Snapshotting";
|
---|
607 | default:
|
---|
608 | {
|
---|
609 | AssertMsgFailed(("%d (%#x)\n", aState, aState));
|
---|
610 | static char s_szMsg[48];
|
---|
611 | RTStrPrintf(s_szMsg, sizeof(s_szMsg), "InvalidState-0x%08x\n", aState);
|
---|
612 | return s_szMsg;
|
---|
613 | }
|
---|
614 | }
|
---|
615 | }
|
---|
616 |
|
---|
617 | /*static*/ const char *
|
---|
618 | Global::stringifySessionState(SessionState_T aState)
|
---|
619 | {
|
---|
620 | switch (aState)
|
---|
621 | {
|
---|
622 | case SessionState_Null: return "Null";
|
---|
623 | case SessionState_Unlocked: return "Unlocked";
|
---|
624 | case SessionState_Locked: return "Locked";
|
---|
625 | case SessionState_Spawning: return "Spawning";
|
---|
626 | case SessionState_Unlocking: return "Unlocking";
|
---|
627 | default:
|
---|
628 | {
|
---|
629 | AssertMsgFailed(("%d (%#x)\n", aState, aState));
|
---|
630 | static char s_szMsg[48];
|
---|
631 | RTStrPrintf(s_szMsg, sizeof(s_szMsg), "InvalidState-0x%08x\n", aState);
|
---|
632 | return s_szMsg;
|
---|
633 | }
|
---|
634 | }
|
---|
635 | }
|
---|
636 |
|
---|
637 | /*static*/ const char *
|
---|
638 | Global::stringifyDeviceType(DeviceType_T aType)
|
---|
639 | {
|
---|
640 | switch (aType)
|
---|
641 | {
|
---|
642 | case DeviceType_Null: return "Null";
|
---|
643 | case DeviceType_Floppy: return "Floppy";
|
---|
644 | case DeviceType_DVD: return "DVD";
|
---|
645 | case DeviceType_HardDisk: return "HardDisk";
|
---|
646 | case DeviceType_Network: return "Network";
|
---|
647 | case DeviceType_USB: return "USB";
|
---|
648 | case DeviceType_SharedFolder: return "ShardFolder";
|
---|
649 | default:
|
---|
650 | {
|
---|
651 | AssertMsgFailed(("%d (%#x)\n", aType, aType));
|
---|
652 | static char s_szMsg[48];
|
---|
653 | RTStrPrintf(s_szMsg, sizeof(s_szMsg), "InvalidType-0x%08x\n", aType);
|
---|
654 | return s_szMsg;
|
---|
655 | }
|
---|
656 | }
|
---|
657 | }
|
---|
658 |
|
---|
659 |
|
---|
660 | /*static*/ const char *
|
---|
661 | Global::stringifyReason(Reason_T aReason)
|
---|
662 | {
|
---|
663 | switch (aReason)
|
---|
664 | {
|
---|
665 | case Reason_Unspecified: return "unspecified";
|
---|
666 | case Reason_HostSuspend: return "host suspend";
|
---|
667 | case Reason_HostResume: return "host resume";
|
---|
668 | case Reason_HostBatteryLow: return "host battery low";
|
---|
669 | case Reason_Snapshot: return "snapshot";
|
---|
670 | default:
|
---|
671 | {
|
---|
672 | AssertMsgFailed(("%d (%#x)\n", aReason, aReason));
|
---|
673 | static char s_szMsg[48];
|
---|
674 | RTStrPrintf(s_szMsg, sizeof(s_szMsg), "invalid reason %#010x\n", aReason);
|
---|
675 | return s_szMsg;
|
---|
676 | }
|
---|
677 | }
|
---|
678 | }
|
---|
679 |
|
---|
680 | /* vi: set tabstop=4 shiftwidth=4 expandtab: */
|
---|