VirtualBox

source: vbox/trunk/doc/manual/en_US/user_Installation.xml@ 58579

Last change on this file since 58579 was 58570, checked in by vboxsync, 9 years ago

Build fix.

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

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