1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
---|
4 | <chapter id="installation">
|
---|
5 | <title>Installation details</title>
|
---|
6 |
|
---|
7 | <para>As installation of VirtualBox varies depending on your host operating
|
---|
8 | system, we provide installation instructions in four separate chapters for
|
---|
9 | Windows, Mac OS X, Linux and Solaris, respectively.</para>
|
---|
10 |
|
---|
11 | <sect1 id="installation_windows">
|
---|
12 | <title>Installing on Windows hosts</title>
|
---|
13 |
|
---|
14 | <sect2>
|
---|
15 | <title>Prerequisites</title>
|
---|
16 |
|
---|
17 | <para>For the various versions of Windows that we support as host
|
---|
18 | operating systems, please refer to <xref
|
---|
19 | linkend="hostossupport" />.</para>
|
---|
20 |
|
---|
21 | <para>In addition, Windows Installer 1.1 or higher must be present on
|
---|
22 | your system. This should be the case if you have all recent Windows
|
---|
23 | updates installed.</para>
|
---|
24 | </sect2>
|
---|
25 |
|
---|
26 | <sect2>
|
---|
27 | <title>Performing the installation</title>
|
---|
28 |
|
---|
29 | <para>The VirtualBox installation can be started <itemizedlist>
|
---|
30 | <listitem>
|
---|
31 | <para>either by double-clicking on its executable file (contains
|
---|
32 | both 32- and 64-bit architectures)</para>
|
---|
33 | </listitem>
|
---|
34 |
|
---|
35 | <listitem>
|
---|
36 | <para>or by entering <screen>VirtualBox.exe -extract</screen></para>
|
---|
37 |
|
---|
38 | <para>on the command line. This will extract both installers into
|
---|
39 | a temporary directory in which you'll then find the usual .MSI
|
---|
40 | files. Then you can do a <screen>msiexec /i VirtualBox-<version>-MultiArch_<x86|amd64>.msi</screen>
|
---|
41 | to perform the installation.</para>
|
---|
42 | </listitem>
|
---|
43 | </itemizedlist></para>
|
---|
44 |
|
---|
45 | <para>In either case, this will display the installation welcome dialog
|
---|
46 | and allow you to choose where to install VirtualBox to and which
|
---|
47 | components to install. In addition to the VirtualBox application, the
|
---|
48 | following components are available:<glosslist>
|
---|
49 | <glossentry>
|
---|
50 | <glossterm>USB support</glossterm>
|
---|
51 |
|
---|
52 | <glossdef>
|
---|
53 | <para>This package contains special drivers for your Windows
|
---|
54 | host that VirtualBox requires to fully support USB devices
|
---|
55 | inside your virtual machines.</para>
|
---|
56 | </glossdef>
|
---|
57 | </glossentry>
|
---|
58 |
|
---|
59 | <glossentry>
|
---|
60 | <glossterm>Networking</glossterm>
|
---|
61 |
|
---|
62 | <glossdef>
|
---|
63 | <para>This package contains extra networking drivers for your
|
---|
64 | Windows host that VirtualBox needs to support Bridged Networking
|
---|
65 | (to make your VM's virtual network cards accessible from other
|
---|
66 | machines on your physical network).</para>
|
---|
67 | </glossdef>
|
---|
68 | </glossentry>
|
---|
69 |
|
---|
70 | <glossentry>
|
---|
71 | <glossterm>Python Support</glossterm>
|
---|
72 |
|
---|
73 | <glossdef>
|
---|
74 | <para>This package contains Python scripting support for the
|
---|
75 | VirtualBox API (see <xref linkend="VirtualBoxAPI" />). For this
|
---|
76 | to work, an already working Windows Python installation on the
|
---|
77 | system is required.
|
---|
78 | <note><para>Python version ≥ 2.6 is required. Since VirtualBox 5.1 Python 3 is also supported.</para></note>
|
---|
79 | <footnote>
|
---|
80 | <para>See, for example, <ulink
|
---|
81 | url="http://www.python.org/download/windows/">http://www.python.org/download/windows/</ulink>.</para>
|
---|
82 | </footnote></para>
|
---|
83 | </glossdef>
|
---|
84 | </glossentry>
|
---|
85 | </glosslist></para>
|
---|
86 |
|
---|
87 | <para>Depending on your Windows configuration, you may see warnings
|
---|
88 | about "unsigned drivers" or similar. Please select "Continue" on these
|
---|
89 | warnings as otherwise VirtualBox might not function correctly after
|
---|
90 | installation.</para>
|
---|
91 |
|
---|
92 | <para>The installer will create a "VirtualBox" group in the Windows
|
---|
93 | "Start" menu which allows you to launch the application and access its
|
---|
94 | documentation.</para>
|
---|
95 |
|
---|
96 | <para>With standard settings, VirtualBox will be installed for all users
|
---|
97 | on the local system. In case this is not wanted, you have to invoke the
|
---|
98 | installer by first extracting it by using <screen>VirtualBox.exe -extract</screen>
|
---|
99 | and then do as follows: <screen>VirtualBox.exe -msiparams ALLUSERS=2</screen>
|
---|
100 | or <screen>msiexec /i VirtualBox-<version>-MultiArch_<x86|amd64>.msi ALLUSERS=2</screen>
|
---|
101 | on the extracted .MSI files. This will install VirtualBox only for the
|
---|
102 | current user.</para>
|
---|
103 |
|
---|
104 | <para>If you do not want to install all features of VirtualBox, you can
|
---|
105 | set the optional <computeroutput>ADDLOCAL</computeroutput> parameter to
|
---|
106 | explicitly name the features to be installed. The following features are
|
---|
107 | available: <glosslist>
|
---|
108 | <glossentry>
|
---|
109 | <glossterm>VBoxApplication</glossterm>
|
---|
110 |
|
---|
111 | <glossdef>
|
---|
112 | <para>Main binaries of VirtualBox.<note>
|
---|
113 | <para>This feature must not be absent since it contains the
|
---|
114 | minimum set of files to have working VirtualBox
|
---|
115 | installation.</para>
|
---|
116 | </note></para>
|
---|
117 | </glossdef>
|
---|
118 | </glossentry>
|
---|
119 |
|
---|
120 | <glossentry>
|
---|
121 | <glossterm>VBoxUSB</glossterm>
|
---|
122 |
|
---|
123 | <glossdef>
|
---|
124 | <para>USB support.</para>
|
---|
125 | </glossdef>
|
---|
126 | </glossentry>
|
---|
127 |
|
---|
128 | <glossentry>
|
---|
129 | <glossterm>VBoxNetwork</glossterm>
|
---|
130 |
|
---|
131 | <glossdef>
|
---|
132 | <para>All networking support; includes the VBoxNetworkFlt and
|
---|
133 | VBoxNetworkAdp features (see below).</para>
|
---|
134 | </glossdef>
|
---|
135 | </glossentry>
|
---|
136 |
|
---|
137 | <glossentry>
|
---|
138 | <glossterm>VBoxNetworkFlt</glossterm>
|
---|
139 |
|
---|
140 | <glossdef>
|
---|
141 | <para>Bridged networking support.</para>
|
---|
142 | </glossdef>
|
---|
143 | </glossentry>
|
---|
144 |
|
---|
145 | <glossentry>
|
---|
146 | <glossterm>VBoxNetworkAdp</glossterm>
|
---|
147 |
|
---|
148 | <glossdef>
|
---|
149 | <para>Host-only networking support.</para>
|
---|
150 | </glossdef>
|
---|
151 | </glossentry>
|
---|
152 |
|
---|
153 | <glossentry>
|
---|
154 | <glossterm>VBoxPython</glossterm>
|
---|
155 |
|
---|
156 | <glossdef>
|
---|
157 | <para>Python support.
|
---|
158 | <note><para>Python version ≥ 2.6 is required. Since VirtualBox 5.1 Python 3 is also supported.</para></note>
|
---|
159 | </para>
|
---|
160 | </glossdef>
|
---|
161 | </glossentry>
|
---|
162 | </glosslist>For example, to only install USB support along with the
|
---|
163 | main binaries, do a: <screen>VirtualBox.exe -msiparams ADDLOCAL=VBoxApplication,VBoxUSB</screen>
|
---|
164 | or <screen>msiexec /i VirtualBox-<version>-MultiArch_<x86|amd64>.msi ADDLOCAL=VBoxApplication,VBoxUSB</screen></para>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | The user is able to choose between NDIS5 and NDIS6 host network filters drivers during
|
---|
168 | the installation. This is realized via a command line parameter
|
---|
169 | <computeroutput>NETWORKTYPE</computeroutput>.
|
---|
170 | The NDIS6 driver is default for Windows Vista and later. For older Windows versions,
|
---|
171 | the installer will automatically select the NDIS5 driver and this cannot be changed.
|
---|
172 | For Windows Vista and later the user can force to install the (legacy) NDIS5 host
|
---|
173 | network filter driver using <computeroutput>NETWORKTYPE=NDIS5</computeroutput>. For
|
---|
174 | example, to install the NDIS5 driver on Windows 7, do
|
---|
175 | <screen>VirtualBox.exe -msiparams NETWORKTYPE=NDIS5</screen>
|
---|
176 | or
|
---|
177 | <screen>msiexec /i VirtualBox-<version>-MultiArch_<x86|amd64>.msi NETWORKTYPE=NDIS5</screen>
|
---|
178 | </para>
|
---|
179 |
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 | <sect2>
|
---|
184 | <title>Uninstallation</title>
|
---|
185 |
|
---|
186 | <para>As VirtualBox uses the standard Microsoft Windows installer,
|
---|
187 | VirtualBox can be safely uninstalled at any time by choosing the program
|
---|
188 | entry in the "Add/Remove Programs" applet in the Windows Control
|
---|
189 | Panel.</para>
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | <sect2>
|
---|
193 | <title>Unattended installation</title>
|
---|
194 |
|
---|
195 | <para>Unattended installations can be performed using the standard MSI
|
---|
196 | support.</para>
|
---|
197 |
|
---|
198 | </sect2>
|
---|
199 |
|
---|
200 | <sect2>
|
---|
201 | <title>Public properties</title>
|
---|
202 |
|
---|
203 | <para>The following public properties can be specified via MSI API,
|
---|
204 | <screen>VirtualBox.exe -msiparams NAME=VALUE [...]</screen>
|
---|
205 | or
|
---|
206 | <screen>msiexec /i VirtualBox-<version>-MultiArch_<x86|amd64>.msi NAME=VALUE [...]</screen>
|
---|
207 | to control additional behavior and/or features of the Windows host installer:
|
---|
208 | <glosslist>
|
---|
209 | <glossentry>
|
---|
210 | <glossterm>VBOX_INSTALLDESKTOPSHORTCUT</glossterm>
|
---|
211 |
|
---|
212 | <glossdef>
|
---|
213 | <para>Specifies whether or not a VirtualBox icon on the desktop
|
---|
214 | should be created.</para>
|
---|
215 |
|
---|
216 | <para>Set to <computeroutput>1</computeroutput> to enable,
|
---|
217 | <computeroutput>0</computeroutput> to disable. Default is 1.</para>
|
---|
218 | </glossdef>
|
---|
219 | </glossentry>
|
---|
220 |
|
---|
221 | <glossentry>
|
---|
222 | <glossterm>VBOX_INSTALLQUICKLAUNCHSHORTCUT</glossterm>
|
---|
223 |
|
---|
224 | <glossdef>
|
---|
225 | <para>Specifies whether or not a VirtualBox icon in the Quick Launch
|
---|
226 | Bar should be created.</para>
|
---|
227 |
|
---|
228 | <para>Set to <computeroutput>1</computeroutput> to enable,
|
---|
229 | <computeroutput>0</computeroutput> to disable. Default is 1.</para>
|
---|
230 | </glossdef>
|
---|
231 | </glossentry>
|
---|
232 |
|
---|
233 | <glossentry>
|
---|
234 | <glossterm>VBOX_REGISTERFILEEXTENSIONS</glossterm>
|
---|
235 |
|
---|
236 | <glossdef>
|
---|
237 | <para>Specifies whether or not the file extensions .vbox,
|
---|
238 | .vbox-extpack, .ovf, .ova, .vdi, .vmdk, .vhd and .vdd should be
|
---|
239 | associated with VirtualBox. Files of these types then will be opened
|
---|
240 | with VirtualBox.</para>
|
---|
241 |
|
---|
242 | <para>Set to <computeroutput>1</computeroutput> to enable,
|
---|
243 | <computeroutput>0</computeroutput> to disable. Default is 1.</para>
|
---|
244 | </glossdef>
|
---|
245 | </glossentry>
|
---|
246 |
|
---|
247 | <glossentry>
|
---|
248 | <glossterm>VBOX_START</glossterm>
|
---|
249 |
|
---|
250 | <glossdef>
|
---|
251 | <para>Specifies whether or not VirtualBox should be started right after
|
---|
252 | successful installation.</para>
|
---|
253 |
|
---|
254 | <para>Set to <computeroutput>1</computeroutput> to enable,
|
---|
255 | <computeroutput>0</computeroutput> to disable. Default is 1.</para>
|
---|
256 | </glossdef>
|
---|
257 | </glossentry>
|
---|
258 | </glosslist>
|
---|
259 | </para>
|
---|
260 |
|
---|
261 | </sect2>
|
---|
262 | </sect1>
|
---|
263 |
|
---|
264 | <sect1>
|
---|
265 | <title>Installing on Mac OS X hosts</title>
|
---|
266 |
|
---|
267 | <sect2>
|
---|
268 | <title>Performing the installation</title>
|
---|
269 |
|
---|
270 | <para>For Mac OS X hosts, VirtualBox ships in a disk image
|
---|
271 | (<computeroutput>dmg</computeroutput>) file. Perform the following
|
---|
272 | steps: <orderedlist>
|
---|
273 | <listitem>
|
---|
274 | <para>Double-click on that file to have its contents
|
---|
275 | mounted.</para>
|
---|
276 | </listitem>
|
---|
277 |
|
---|
278 | <listitem>
|
---|
279 | <para>A window will open telling you to double click on the
|
---|
280 | <computeroutput>VirtualBox.mpkg</computeroutput> installer file
|
---|
281 | displayed in that window.</para>
|
---|
282 | </listitem>
|
---|
283 |
|
---|
284 | <listitem>
|
---|
285 | <para>This will start the installer, which will allow you to
|
---|
286 | select where to install VirtualBox to.</para>
|
---|
287 | </listitem>
|
---|
288 | </orderedlist></para>
|
---|
289 |
|
---|
290 | <para>After installation, you can find a VirtualBox icon in the
|
---|
291 | "Applications" folder in the Finder.</para>
|
---|
292 | </sect2>
|
---|
293 |
|
---|
294 | <sect2>
|
---|
295 | <title>Uninstallation</title>
|
---|
296 |
|
---|
297 | <para>To uninstall VirtualBox, open the disk image (dmg) file again and
|
---|
298 | double-click on the uninstall icon contained therein.</para>
|
---|
299 | </sect2>
|
---|
300 |
|
---|
301 | <sect2>
|
---|
302 | <title>Unattended installation</title>
|
---|
303 |
|
---|
304 | <para>To perform a non-interactive installation of VirtualBox you can
|
---|
305 | use the command line version of the installer application.</para>
|
---|
306 |
|
---|
307 | <para>Mount the disk image (dmg) file as described in the normal
|
---|
308 | installation or use the following command line:</para>
|
---|
309 |
|
---|
310 | <screen>hdiutil attach /path/to/VirtualBox-xyz.dmg</screen>
|
---|
311 |
|
---|
312 | <para>Then open a terminal session and execute:</para>
|
---|
313 |
|
---|
314 | <screen>sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /Volumes/Macintosh\ HD</screen>
|
---|
315 | </sect2>
|
---|
316 | </sect1>
|
---|
317 |
|
---|
318 | <sect1 id="install-linux-host">
|
---|
319 | <title>Installing on Linux hosts</title>
|
---|
320 |
|
---|
321 | <sect2>
|
---|
322 | <title>Prerequisites</title>
|
---|
323 |
|
---|
324 | <para>For the various versions of Linux that we support as host
|
---|
325 | operating systems, please refer to <xref
|
---|
326 | linkend="hostossupport" />.</para>
|
---|
327 |
|
---|
328 | <para>You will need to install the following packages on your Linux
|
---|
329 | system before starting the installation (some systems will do this for
|
---|
330 | you automatically when you install VirtualBox):</para>
|
---|
331 |
|
---|
332 | <itemizedlist>
|
---|
333 | <listitem>
|
---|
334 | <para>Qt 4.8.0 or higher;</para>
|
---|
335 | </listitem>
|
---|
336 |
|
---|
337 | <listitem>
|
---|
338 | <para>SDL 1.2.7 or higher (this graphics library is typically called
|
---|
339 | <computeroutput>libsdl</computeroutput> or similar).</para>
|
---|
340 | </listitem>
|
---|
341 | </itemizedlist>
|
---|
342 |
|
---|
343 | <note>
|
---|
344 | <para>To be precise, these packages are only required if you want to
|
---|
345 | run the VirtualBox graphical user interfaces. In particular,
|
---|
346 | <computeroutput>VirtualBox</computeroutput>, the graphical VirtualBox
|
---|
347 | manager, requires both Qt and SDL;
|
---|
348 | <computeroutput>VBoxSDL</computeroutput>, our simplified GUI, requires
|
---|
349 | only SDL. By contrast, if you only want to run
|
---|
350 | <computeroutput>VBoxHeadless</computeroutput>, neither Qt nor SDL are
|
---|
351 | required.</para>
|
---|
352 | </note>
|
---|
353 | </sect2>
|
---|
354 |
|
---|
355 | <sect2 id="externalkernelmodules">
|
---|
356 | <title>The VirtualBox driver modules</title>
|
---|
357 |
|
---|
358 | <para>In order to run other operating systems in virtual machines
|
---|
359 | alongside your main operating system, VirtualBox needs to integrate
|
---|
360 | very tightly into the system. To do this it installs a "driver"
|
---|
361 | module called <computeroutput>vboxdrv</computeroutput> which does
|
---|
362 | a lot of the work. Without this kernel module, you can still use the
|
---|
363 | VirtualBox manager to configure virtual machines, but they will not
|
---|
364 | start. It also installs network drivers called
|
---|
365 | <computeroutput>vboxnetflt</computeroutput> and
|
---|
366 | <computeroutput>vboxnetadp</computeroutput> which let virtual machines
|
---|
367 | make more use of your computer's network capabilities.</para>
|
---|
368 |
|
---|
369 | <para>The modules will be built automatically during installation or
|
---|
370 | after kernel updates if your Linux system is prepared for building
|
---|
371 | external kernel modules.</para>
|
---|
372 |
|
---|
373 | <para>Most Linux distributions can be set up simply by installing
|
---|
374 | the right packages - normally, these will be the GNU compiler
|
---|
375 | (GCC), GNU Make (make) and packages containing "header files" for
|
---|
376 | your kernel - and making sure that all system updates are
|
---|
377 | installed and that the system is running the most up-to-date
|
---|
378 | kernel included in the distribution. <emphasis>The running kernel
|
---|
379 | and the header files must be updated to matching versions.</emphasis>
|
---|
380 | We will give some instructions for common distributions. For most
|
---|
381 | of them you will want to start by finding the version name of your
|
---|
382 | kernel using the command
|
---|
383 | <computeroutput>uname -r</computeroutput> in a terminal. They
|
---|
384 | assume that you have not changed too much from the original
|
---|
385 | installation, particularly not installed a different kernel type.
|
---|
386 | If you have then you will need to determine yourself what to set
|
---|
387 | up.</para>
|
---|
388 |
|
---|
389 | <itemizedlist>
|
---|
390 | <listitem>
|
---|
391 | <para>With Debian and Ubuntu-based distributions, you
|
---|
392 | must install the right version of the
|
---|
393 | <computeroutput>linux-headers</computeroutput>, usually
|
---|
394 | whichever of <computeroutput>linux-headers-generic
|
---|
395 | </computeroutput>, <computeroutput>linux-headers-amd64
|
---|
396 | </computeroutput>, <computeroutput>linux-headers-i686
|
---|
397 | </computeroutput> or <computeroutput>linux-headers-i686-pae
|
---|
398 | </computeroutput> best matches the kernel version name;
|
---|
399 | and if it exists the <computeroutput>linux-kbuild
|
---|
400 | </computeroutput>
|
---|
401 | package. Basic Ubuntu releases should have the right
|
---|
402 | packages installed by default.</para>
|
---|
403 | </listitem>
|
---|
404 |
|
---|
405 | <listitem>
|
---|
406 | <para>On Fedora, Redhat, Oracle Linux and many other
|
---|
407 | RPM-based systems, the kernel version sometimes has
|
---|
408 | a code of letters or a word close to the end of the
|
---|
409 | version name, for example "uek" for the Oracle
|
---|
410 | Enterprise kernel or "default" or "desktop" for the
|
---|
411 | standard SUSE kernels. In this case the package name is
|
---|
412 | <computeroutput>kernel-uek-devel</computeroutput> or
|
---|
413 | equivalent. If there is no such code, it is usually
|
---|
414 | <computeroutput>kernel-devel</computeroutput>.</para>
|
---|
415 | </listitem>
|
---|
416 |
|
---|
417 | <listitem>
|
---|
418 | <para>On older SUSE and openSUSE Linux, you must install
|
---|
419 | the <computeroutput>kernel-source</computeroutput>
|
---|
420 | and <computeroutput>kernel-syms</computeroutput>
|
---|
421 | packages.</para>
|
---|
422 | </listitem>
|
---|
423 | </itemizedlist>
|
---|
424 |
|
---|
425 | <para>If you suspect that something has gone wrong with module installation,
|
---|
426 | check that your system is set up as described above and try running (as root)
|
---|
427 | the following command:</para>
|
---|
428 |
|
---|
429 | <screen>rcvboxdrv setup</screen>
|
---|
430 | </sect2>
|
---|
431 |
|
---|
432 | <sect2>
|
---|
433 | <title>Performing the installation</title>
|
---|
434 |
|
---|
435 | <para>VirtualBox is available in a number of package formats native to
|
---|
436 | various common Linux distributions (see <xref linkend="hostossupport" />
|
---|
437 | for details). In addition, there is an alternative generic installer
|
---|
438 | (.run) which should work on most Linux distributions. The generic
|
---|
439 | installer packages are built on EL5 systems and thus require reasonable
|
---|
440 | old versions of glibc (version 2.5) and other system libraries.</para>
|
---|
441 |
|
---|
442 | <sect3>
|
---|
443 | <title>Installing VirtualBox from a Debian/Ubuntu package</title>
|
---|
444 |
|
---|
445 | <para>First, download the appropriate package for your distribution.
|
---|
446 | The following examples assume that you are installing to a 32-bit
|
---|
447 | Ubuntu Wily system. Use <computeroutput>dpkg</computeroutput> to
|
---|
448 | install the Debian package:</para>
|
---|
449 |
|
---|
450 | <screen>sudo dpkg -i virtualbox-5.0_@VBOX_VERSION_STRING@_Ubuntu_wily_i386.deb</screen>
|
---|
451 |
|
---|
452 | <para>The installer will also try to build kernel modules suitable for
|
---|
453 | the current running kernel. If the build process is not successful you
|
---|
454 | will be shown a
|
---|
455 | warning and the package will be left unconfigured. Please have a look
|
---|
456 | at <computeroutput>/var/log/vbox-install.log</computeroutput> to find
|
---|
457 | out why the compilation failed. You may have to install the
|
---|
458 | appropriate Linux kernel headers (see <xref
|
---|
459 | linkend="externalkernelmodules" />). After correcting any problems, do
|
---|
460 | <screen>sudo rcvboxdrv setup</screen>This will start a
|
---|
461 | second attempt to build the module.</para>
|
---|
462 |
|
---|
463 | <para>If a suitable kernel module was found in the package or the
|
---|
464 | module was successfully built, the installation script will attempt to
|
---|
465 | load that module. If this fails, please see <xref
|
---|
466 | linkend="ts_linux-kernelmodule-fails-to-load" /> for further
|
---|
467 | information.</para>
|
---|
468 |
|
---|
469 | <para>Once VirtualBox has been successfully installed and configured,
|
---|
470 | you can start it by selecting "VirtualBox" in your start menu or from
|
---|
471 | the command line (see <xref linkend="startingvboxonlinux" />).</para>
|
---|
472 | </sect3>
|
---|
473 |
|
---|
474 | <sect3>
|
---|
475 | <title>Using the alternative generic installer (VirtualBox.run)</title>
|
---|
476 |
|
---|
477 | <para>The alternative generic installer performs the following steps:</para>
|
---|
478 |
|
---|
479 | <itemizedlist>
|
---|
480 | <listitem>
|
---|
481 | <para>It unpacks the application files to the target directory,
|
---|
482 | <screen>/opt/VirtualBox/</screen> which cannot be changed.</para>
|
---|
483 | </listitem>
|
---|
484 |
|
---|
485 | <listitem>
|
---|
486 | <para>It builds the VirtualBox kernel modules
|
---|
487 | (<computeroutput>vboxdrv</computeroutput>,
|
---|
488 | <computeroutput>vboxnetflt</computeroutput> and
|
---|
489 | <computeroutput>vboxnetadp</computeroutput>) and installs
|
---|
490 | them.</para>
|
---|
491 | </listitem>
|
---|
492 |
|
---|
493 | <listitem>
|
---|
494 | <para>It creates
|
---|
495 | <computeroutput>/sbin/rcvboxdrv</computeroutput>, an init
|
---|
496 | script to start the VirtualBox kernel module.</para>
|
---|
497 | </listitem>
|
---|
498 |
|
---|
499 | <listitem>
|
---|
500 | <para>It creates a new system group called
|
---|
501 | <computeroutput>vboxusers</computeroutput>.</para>
|
---|
502 | </listitem>
|
---|
503 |
|
---|
504 | <listitem>
|
---|
505 | <para>It creates symbolic links in
|
---|
506 | <computeroutput>/usr/bin</computeroutput> to the a shell script
|
---|
507 | (<computeroutput>/opt/VirtualBox/VBox</computeroutput>) which does
|
---|
508 | some sanity checks and dispatches to the actual executables,
|
---|
509 | <computeroutput>VirtualBox</computeroutput>,
|
---|
510 | <computeroutput>VBoxSDL</computeroutput>,
|
---|
511 | <computeroutput>VBoxVRDP</computeroutput>,
|
---|
512 | <computeroutput>VBoxHeadless</computeroutput> and
|
---|
513 | <computeroutput>VBoxManage</computeroutput></para>
|
---|
514 | </listitem>
|
---|
515 |
|
---|
516 | <listitem>
|
---|
517 | <para>It creates
|
---|
518 | <computeroutput>/etc/udev/rules.d/60-vboxdrv.rules</computeroutput>,
|
---|
519 | a description file for udev, if that is present, which makes the
|
---|
520 | USB devices accessible to all users in the
|
---|
521 | <computeroutput>vboxusers</computeroutput> group.</para>
|
---|
522 | </listitem>
|
---|
523 |
|
---|
524 | <listitem>
|
---|
525 | <para>It writes the installation directory to
|
---|
526 | <computeroutput>/etc/vbox/vbox.cfg</computeroutput>.</para>
|
---|
527 | </listitem>
|
---|
528 | </itemizedlist>
|
---|
529 |
|
---|
530 | <para>The installer must be executed as root with either
|
---|
531 | <computeroutput>install</computeroutput> or
|
---|
532 | <computeroutput>uninstall</computeroutput> as the first
|
---|
533 | parameter.</para>
|
---|
534 |
|
---|
535 | <screen>sudo ./VirtualBox.run install</screen>
|
---|
536 |
|
---|
537 | <para>Or if you do not have the "sudo" command available, run the
|
---|
538 | following as root instead:<screen>./VirtualBox.run install</screen></para>
|
---|
539 |
|
---|
540 | <para>After that you need to put every user which should be able to
|
---|
541 | access USB devices from VirtualBox guests in the group
|
---|
542 | <computeroutput>vboxusers</computeroutput>, either through the GUI
|
---|
543 | user management tools or by running the following command as
|
---|
544 | root:</para>
|
---|
545 |
|
---|
546 | <screen>sudo usermod -a -G vboxusers username</screen>
|
---|
547 |
|
---|
548 | <para><note>
|
---|
549 | <para>The <computeroutput>usermod</computeroutput> command of some
|
---|
550 | older Linux distributions does not support the
|
---|
551 | <computeroutput>-a</computeroutput> option (which adds the user to
|
---|
552 | the given group without affecting membership of other groups). In
|
---|
553 | this case, find out the current group memberships with the
|
---|
554 | <computeroutput>groups</computeroutput> command and add all these
|
---|
555 | groups in a comma-separated list to the command line after the
|
---|
556 | <computeroutput>-G</computeroutput> option, e.g. like this:
|
---|
557 | <computeroutput>usermod -G group1,group2,vboxusers
|
---|
558 | username</computeroutput>.</para>
|
---|
559 | </note></para>
|
---|
560 | </sect3>
|
---|
561 |
|
---|
562 | <sect3>
|
---|
563 | <title>Performing a manual installation</title>
|
---|
564 |
|
---|
565 | <para>If, for any reason, you cannot use the shell script installer
|
---|
566 | described previously, you can also perform a manual installation.
|
---|
567 | Invoke the installer like this:</para>
|
---|
568 |
|
---|
569 | <screen>./VirtualBox.run --keep --noexec</screen>
|
---|
570 |
|
---|
571 | <para>This will unpack all the files needed for installation in the
|
---|
572 | directory <computeroutput>install</computeroutput> under the current
|
---|
573 | directory. The VirtualBox application files are contained in
|
---|
574 | <computeroutput>VirtualBox.tar.bz2</computeroutput> which you can
|
---|
575 | unpack to any directory on your system. For example:</para>
|
---|
576 |
|
---|
577 | <screen>sudo mkdir /opt/VirtualBox
|
---|
578 | sudo tar jxf ./install/VirtualBox.tar.bz2 -C /opt/VirtualBox</screen>
|
---|
579 |
|
---|
580 | <para>or as root:<screen>mkdir /opt/VirtualBox
|
---|
581 | tar jxf ./install/VirtualBox.tar.bz2 -C /opt/VirtualBox</screen></para>
|
---|
582 |
|
---|
583 | <para>The sources for VirtualBox's kernel module are provided in the
|
---|
584 | <computeroutput>src</computeroutput> directory. To build the module,
|
---|
585 | change to the directory and issue</para>
|
---|
586 |
|
---|
587 | <screen>make</screen>
|
---|
588 |
|
---|
589 | <para>If everything builds correctly, issue the following command to
|
---|
590 | install the module to the appropriate module directory:</para>
|
---|
591 |
|
---|
592 | <screen>sudo make install</screen>
|
---|
593 |
|
---|
594 | <para>In case you do not have sudo, switch the user account to root
|
---|
595 | and perform<screen>make install</screen></para>
|
---|
596 |
|
---|
597 | <para>The VirtualBox kernel module needs a device node to operate. The
|
---|
598 | above make command will tell you how to create the device node,
|
---|
599 | depending on your Linux system. The procedure is slightly different
|
---|
600 | for a classical Linux setup with a
|
---|
601 | <computeroutput>/dev</computeroutput> directory, a system with the now
|
---|
602 | deprecated <computeroutput>devfs</computeroutput> and a modern Linux
|
---|
603 | system with <computeroutput>udev</computeroutput>.</para>
|
---|
604 |
|
---|
605 | <para>On certain Linux distributions, you might experience
|
---|
606 | difficulties building the module. You will have to analyze the error
|
---|
607 | messages from the build system to diagnose the cause of the problems.
|
---|
608 | In general, make sure that the correct Linux kernel sources are used
|
---|
609 | for the build process.</para>
|
---|
610 |
|
---|
611 | <para>Note that the <computeroutput>/dev/vboxdrv</computeroutput>
|
---|
612 | kernel module device node must be owned by root:root and must be
|
---|
613 | read/writable only for the user.</para>
|
---|
614 |
|
---|
615 | <para>Next, you will have to install the system initialization script
|
---|
616 | for the kernel module:<screen>cp /opt/VirtualBox/vboxdrv.sh /sbin/rcvboxdrv</screen>(assuming
|
---|
617 | you installed VirtualBox to the
|
---|
618 | <computeroutput>/opt/VirtualBox</computeroutput> directory) and
|
---|
619 | activate the initialization script using the right method for your
|
---|
620 | distribution. You should create VirtualBox's configuration
|
---|
621 | file:<screen>mkdir /etc/vbox
|
---|
622 | echo INSTALL_DIR=/opt/VirtualBox > /etc/vbox/vbox.cfg</screen>and, for
|
---|
623 | convenience, create the following symbolic links:</para>
|
---|
624 |
|
---|
625 | <screen>ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox
|
---|
626 | ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage
|
---|
627 | ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VBoxHeadless
|
---|
628 | ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL</screen>
|
---|
629 | </sect3>
|
---|
630 |
|
---|
631 | <sect3>
|
---|
632 | <title>Updating and uninstalling VirtualBox</title>
|
---|
633 |
|
---|
634 | <para>Before updating or uninstalling VirtualBox, you must terminate
|
---|
635 | any virtual machines which are currently running and exit the
|
---|
636 | VirtualBox or VBoxSVC applications. To update VirtualBox, simply run
|
---|
637 | the installer of the updated version. To uninstall VirtualBox, invoke
|
---|
638 | the installer like this: <screen>sudo ./VirtualBox.run uninstall</screen>
|
---|
639 | or as root<screen>./VirtualBox.run uninstall</screen>. Starting with
|
---|
640 | version 2.2.2, you can uninstall the .run package by invoking <screen>/opt/VirtualBox/uninstall.sh</screen>To
|
---|
641 | manually uninstall VirtualBox, simply undo the steps in the manual
|
---|
642 | installation in reverse order.</para>
|
---|
643 | </sect3>
|
---|
644 |
|
---|
645 | <sect3>
|
---|
646 | <title>Automatic installation of Debian packages</title>
|
---|
647 |
|
---|
648 | <para>The Debian packages will request some user feedback when
|
---|
649 | installed for the first time. The debconf system is used to perform
|
---|
650 | this task. To prevent any user interaction during installation,
|
---|
651 | default values can be defined. A file
|
---|
652 | <computeroutput>vboxconf</computeroutput> can contain the following
|
---|
653 | debconf settings: <screen>virtualbox virtualbox/module-compilation-allowed boolean true
|
---|
654 | virtualbox virtualbox/delete-old-modules boolean true</screen>The first line
|
---|
655 | allows compilation of the vboxdrv kernel module if no module was found
|
---|
656 | for the current kernel. The second line allows the package to delete
|
---|
657 | any old vboxdrv kernel modules compiled by previous
|
---|
658 | installations.</para>
|
---|
659 |
|
---|
660 | <para>These default settings can be applied with <screen>debconf-set-selections vboxconf</screen>
|
---|
661 | prior to the installation of the VirtualBox Debian package.</para>
|
---|
662 |
|
---|
663 | <para>In addition there are some common configuration options that can
|
---|
664 | be set prior to the installation, described in <xref
|
---|
665 | linkend="linux_install_opts" />.</para>
|
---|
666 | </sect3>
|
---|
667 |
|
---|
668 | <sect3>
|
---|
669 | <title>Automatic installation of .rpm packages</title>
|
---|
670 |
|
---|
671 | <para>The .rpm format does not provide a configuration system
|
---|
672 | comparable to the debconf system. See <xref
|
---|
673 | linkend="linux_install_opts" /> for how to set some common
|
---|
674 | installation options provided by VirtualBox.</para>
|
---|
675 | </sect3>
|
---|
676 |
|
---|
677 | <sect3 id="linux_install_opts">
|
---|
678 | <title>Automatic installation options</title>
|
---|
679 |
|
---|
680 | <para>To configure the installation process of our .deb and .rpm
|
---|
681 | packages, you can create a response file named
|
---|
682 | <computeroutput>/etc/default/virtualbox</computeroutput>. The
|
---|
683 | automatic generation of the udev rule can be prevented by the
|
---|
684 | following setting: <screen>INSTALL_NO_UDEV=1</screen> The creation of
|
---|
685 | the group vboxusers can be prevented by <screen>INSTALL_NO_GROUP=1</screen>
|
---|
686 | If the line <screen>INSTALL_NO_VBOXDRV=1</screen> is specified, the
|
---|
687 | package installer will not try to build the
|
---|
688 | <computeroutput>vboxdrv</computeroutput> kernel module if no module
|
---|
689 | fitting the current kernel was found.</para>
|
---|
690 | </sect3>
|
---|
691 | </sect2>
|
---|
692 |
|
---|
693 | <sect2>
|
---|
694 | <title>The vboxusers group</title>
|
---|
695 |
|
---|
696 | <para>The Linux installers create the system user group
|
---|
697 | <computeroutput>vboxusers</computeroutput> during installation. Any
|
---|
698 | system user who is going to use USB devices from VirtualBox guests must
|
---|
699 | be a member of that group. A user can be made a member of the group
|
---|
700 | <computeroutput>vboxusers</computeroutput> through the GUI user/group
|
---|
701 | management or at the command line with</para>
|
---|
702 |
|
---|
703 | <screen>sudo usermod -a -G vboxusers username</screen>
|
---|
704 | </sect2>
|
---|
705 |
|
---|
706 | <sect2 id="startingvboxonlinux">
|
---|
707 | <title>Starting VirtualBox on Linux</title>
|
---|
708 |
|
---|
709 | <para>The easiest way to start a VirtualBox program is by running the
|
---|
710 | program of your choice (<computeroutput>VirtualBox</computeroutput>,
|
---|
711 | <computeroutput>VBoxManage</computeroutput>,
|
---|
712 | <computeroutput>VBoxSDL</computeroutput> or
|
---|
713 | <computeroutput>VBoxHeadless</computeroutput>) from a terminal. These
|
---|
714 | are symbolic links to <computeroutput>VBox.sh</computeroutput> that
|
---|
715 | start the required program for you.</para>
|
---|
716 |
|
---|
717 | <para>The following detailed instructions should only be of interest if
|
---|
718 | you wish to execute VirtualBox without installing it first. You should
|
---|
719 | start by compiling the <computeroutput>vboxdrv</computeroutput> kernel
|
---|
720 | module (see above) and inserting it into the Linux kernel. VirtualBox
|
---|
721 | consists of a service daemon (<computeroutput>VBoxSVC</computeroutput>)
|
---|
722 | and several application programs. The daemon is automatically started if
|
---|
723 | necessary. All VirtualBox applications will communicate with the daemon
|
---|
724 | through Unix local domain sockets. There can be multiple daemon
|
---|
725 | instances under different user accounts and applications can only
|
---|
726 | communicate with the daemon running under the user account as the
|
---|
727 | application. The local domain socket resides in a subdirectory of your
|
---|
728 | system's directory for temporary files called
|
---|
729 | <computeroutput>.vbox-<username>-ipc</computeroutput>. In case of
|
---|
730 | communication problems or server startup problems, you may try to remove
|
---|
731 | this directory.</para>
|
---|
732 |
|
---|
733 | <para>All VirtualBox applications
|
---|
734 | (<computeroutput>VirtualBox</computeroutput>,
|
---|
735 | <computeroutput>VBoxSDL</computeroutput>,
|
---|
736 | <computeroutput>VBoxManage</computeroutput> and
|
---|
737 | <computeroutput>VBoxHeadless</computeroutput>) require the VirtualBox
|
---|
738 | directory to be in the library path:</para>
|
---|
739 |
|
---|
740 | <screen>LD_LIBRARY_PATH=. ./VBoxManage showvminfo "Windows XP"</screen>
|
---|
741 | </sect2>
|
---|
742 | </sect1>
|
---|
743 |
|
---|
744 | <sect1 id="install-solaris-host">
|
---|
745 | <title>Installing on Solaris hosts</title>
|
---|
746 |
|
---|
747 | <para>For the specific versions of Solaris that we support as host
|
---|
748 | operating systems, please refer to <xref
|
---|
749 | linkend="hostossupport" />.</para>
|
---|
750 |
|
---|
751 | <para>If you have a previously installed instance of VirtualBox on your
|
---|
752 | Solaris host, please uninstall it first before installing a new instance.
|
---|
753 | Refer to <xref linkend="uninstall-solaris-host" /> for uninstall
|
---|
754 | instructions.</para>
|
---|
755 |
|
---|
756 | <sect2>
|
---|
757 | <title>Performing the installation</title>
|
---|
758 |
|
---|
759 | <para>VirtualBox is available as a standard Solaris package. Download
|
---|
760 | the VirtualBox SunOS package which includes the 64-bit
|
---|
761 | versions of VirtualBox. <emphasis>The installation must be performed as
|
---|
762 | root and from the global zone</emphasis> as the VirtualBox installer
|
---|
763 | loads kernel drivers which cannot be done from non-global zones. To
|
---|
764 | verify which zone you are currently in, execute the
|
---|
765 | <computeroutput>zonename</computeroutput> command. Execute the following
|
---|
766 | commands:</para>
|
---|
767 |
|
---|
768 | <screen>gunzip -cd VirtualBox-@[email protected] | tar xvf -</screen>
|
---|
769 |
|
---|
770 | <para>Starting with VirtualBox 3.1 the VirtualBox kernel package is no
|
---|
771 | longer a separate package and has been integrated into the main package.
|
---|
772 | Install the VirtualBox package using:</para>
|
---|
773 |
|
---|
774 | <screen>pkgadd -d VirtualBox-@[email protected]</screen>
|
---|
775 |
|
---|
776 | <para>The installer will then prompt you to enter the package you wish
|
---|
777 | to install. Choose "1" or "all" and proceed. Next the installer will ask
|
---|
778 | you if you want to allow the postinstall script to be executed. Choose
|
---|
779 | "y" and proceed as it is essential to execute this script which installs
|
---|
780 | the VirtualBox kernel module. Following this confirmation the installer
|
---|
781 | will install VirtualBox and execute the postinstall setup script.</para>
|
---|
782 |
|
---|
783 | <para>Once the postinstall script has been executed your installation is
|
---|
784 | now complete. You may now safely delete the uncompressed package and
|
---|
785 | <computeroutput>autoresponse</computeroutput> files from your system.
|
---|
786 | VirtualBox would be installed in
|
---|
787 | <computeroutput>/opt/VirtualBox</computeroutput>.</para>
|
---|
788 |
|
---|
789 | <note>
|
---|
790 | <para>If you need to use VirtualBox from non-global zones, please read
|
---|
791 | <xref linkend="solaris-zones" />.</para>
|
---|
792 | </note>
|
---|
793 | </sect2>
|
---|
794 |
|
---|
795 | <sect2>
|
---|
796 | <title>The vboxuser group</title>
|
---|
797 |
|
---|
798 | <para>Starting with VirtualBox 4.1, the installer creates the system
|
---|
799 | user group <computeroutput>vboxuser</computeroutput> during installation
|
---|
800 | for Solaris hosts that support the USB features required by VirtualBox.
|
---|
801 | Any system user who is going to use USB devices from VirtualBox guests
|
---|
802 | must be a member of this group. A user can be made a member of this
|
---|
803 | group through the GUI user/group management or at the command line by
|
---|
804 | executing as root:</para>
|
---|
805 |
|
---|
806 | <screen>usermod -G vboxuser username</screen>
|
---|
807 |
|
---|
808 | <para>Note that adding an active user to that group will require that
|
---|
809 | user to log out and back in again. This should be done manually after
|
---|
810 | successful installation of the package.</para>
|
---|
811 | </sect2>
|
---|
812 |
|
---|
813 | <sect2>
|
---|
814 | <title>Starting VirtualBox on Solaris</title>
|
---|
815 |
|
---|
816 | <para>The easiest way to start a VirtualBox program is by running the
|
---|
817 | program of your choice (<computeroutput>VirtualBox</computeroutput>,
|
---|
818 | <computeroutput>VBoxManage</computeroutput>,
|
---|
819 | <computeroutput>VBoxSDL</computeroutput> or
|
---|
820 | <computeroutput>VBoxHeadless</computeroutput>) from a terminal. These
|
---|
821 | are symbolic links to <computeroutput>VBox.sh</computeroutput> that
|
---|
822 | start the required program for you.</para>
|
---|
823 |
|
---|
824 | <para>Alternatively, you can directly invoke the required programs from
|
---|
825 | <computeroutput>/opt/VirtualBox</computeroutput>. Using the links
|
---|
826 | provided is easier as you do not have to type the full path.</para>
|
---|
827 |
|
---|
828 | <para>You can configure some elements of the
|
---|
829 | <computeroutput>VirtualBox</computeroutput> Qt GUI such as fonts and
|
---|
830 | colours by executing <computeroutput>VBoxQtconfig</computeroutput> from
|
---|
831 | the terminal.</para>
|
---|
832 | </sect2>
|
---|
833 |
|
---|
834 | <sect2 id="uninstall-solaris-host">
|
---|
835 | <title>Uninstallation</title>
|
---|
836 |
|
---|
837 | <para>Uninstallation of VirtualBox on Solaris requires root permissions.
|
---|
838 | To perform the uninstallation, start a root terminal session and
|
---|
839 | execute:</para>
|
---|
840 |
|
---|
841 | <screen>pkgrm SUNWvbox</screen>
|
---|
842 |
|
---|
843 | <para>After confirmation, this will remove VirtualBox from your
|
---|
844 | system.</para>
|
---|
845 |
|
---|
846 | <para>If you are uninstalling VirtualBox version 3.0 or lower, you need
|
---|
847 | to remove the VirtualBox kernel interface package, execute:</para>
|
---|
848 |
|
---|
849 | <para><screen>pkgrm SUNWvboxkern</screen></para>
|
---|
850 | </sect2>
|
---|
851 |
|
---|
852 | <sect2>
|
---|
853 | <title>Unattended installation</title>
|
---|
854 |
|
---|
855 | <para>To perform a non-interactive installation of VirtualBox we have
|
---|
856 | provided a response file named
|
---|
857 | <computeroutput>autoresponse</computeroutput> that the installer will
|
---|
858 | use for responses to inputs rather than ask them from you.</para>
|
---|
859 |
|
---|
860 | <para>Extract the tar.gz package as described in the normal
|
---|
861 | installation. Then open a root terminal session and execute:</para>
|
---|
862 |
|
---|
863 | <screen>pkgadd -d VirtualBox-@VBOX_VERSION_STRING@-SunOS-x86 -n -a autoresponse SUNWvbox</screen>
|
---|
864 |
|
---|
865 | <para>To perform a non-interactive uninstallation, open a root terminal
|
---|
866 | session and execute:</para>
|
---|
867 |
|
---|
868 | <screen>pkgrm -n -a /opt/VirtualBox/autoresponse SUNWvbox</screen>
|
---|
869 | </sect2>
|
---|
870 |
|
---|
871 | <sect2 id="solaris-zones">
|
---|
872 | <title>Configuring a zone for running VirtualBox</title>
|
---|
873 |
|
---|
874 | <para>Assuming that VirtualBox has already been installed into your
|
---|
875 | zone, you need to give the zone access to VirtualBox's device node. This
|
---|
876 | is done by performing the following steps. Start a root terminal and
|
---|
877 | execute:</para>
|
---|
878 |
|
---|
879 | <screen>zonecfg -z vboxzone</screen>
|
---|
880 |
|
---|
881 | <para>Replace "vboxzone" with the name of the zone in which you intend
|
---|
882 | to run VirtualBox.</para>
|
---|
883 |
|
---|
884 | <para>Inside the <computeroutput>zonecfg</computeroutput> prompt add the
|
---|
885 | <computeroutput>device</computeroutput> resource and
|
---|
886 | <computeroutput>match</computeroutput> properties to the zone. Here's
|
---|
887 | how it can be done:</para>
|
---|
888 |
|
---|
889 | <screen>zonecfg:vboxzone>add device
|
---|
890 | zonecfg:vboxzone:device>set match=/dev/vboxdrv
|
---|
891 | zonecfg:vboxzone:device>end
|
---|
892 | zonecfg:vboxzone>add device
|
---|
893 | zonecfg:vboxzone:device>set match=/dev/vboxdrvu
|
---|
894 | zonecfg:vboxzone:device>end
|
---|
895 | zonecfg:vboxzone>exit</screen>
|
---|
896 |
|
---|
897 | <para>If you are running VirtualBox 2.2.0 or above on Solaris 11 or
|
---|
898 | above, you may add a device for <computeroutput>/dev/vboxusbmon</computeroutput>
|
---|
899 | too, similar to what was shown above. This does not apply to Solaris 10
|
---|
900 | hosts due to lack of USB support.</para>
|
---|
901 |
|
---|
902 | <para>If you are not using sparse root zones, you will need to loopback
|
---|
903 | mount <computeroutput>/opt/VirtualBox</computeroutput> from the global zone
|
---|
904 | (specified below using the <computeroutput>dir</computeroutput> attribute) into
|
---|
905 | the non-global zone at the same path (specified using the
|
---|
906 | <computeroutput>special</computeroutput> attribute). For example:</para>
|
---|
907 |
|
---|
908 | <screen>zonecfg:vboxzone>add fs
|
---|
909 | zonecfg:vboxzone:device>set dir=/opt/VirtualBox
|
---|
910 | zonecfg:vboxzone:device>set special=/opt/VirtualBox
|
---|
911 | zonecfg:vboxzone:device>set type=lofs
|
---|
912 | zonecfg:vboxzone:device>end
|
---|
913 | zonecfg:vboxzone>exit</screen>
|
---|
914 |
|
---|
915 | <para>Next reboot the zone using <computeroutput>zoneadm</computeroutput>
|
---|
916 | and you should be able to run VirtualBox from within the configured zone.</para>
|
---|
917 | </sect2>
|
---|
918 | </sect1>
|
---|
919 | </chapter>
|
---|