VirtualBox

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

Last change on this file since 74929 was 73276, checked in by vboxsync, 6 years ago

doc/manual: Big build system overhaul, because the use of entities and catalogs eliminates the need to have placeholders in XML which previously needed separate preprocessing. Many cleanups, including replacing almost all pattern rules (since their dependencies had to be too generous) and using defines instead. Also integrated many cleanups for the user manual text (which needs careful review, couldn't check yet if it uses any additional tags which some of our XSLT would ignore).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 43.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
4<!ENTITY % all.entities SYSTEM "all-entities.ent">
5%all.entities;
6]>
7<chapter id="installation">
8
9 <title>Installation Details</title>
10
11 <para>
12 As installation of VirtualBox varies depending on your host
13 operating system, we provide installation instructions in four
14 separate chapters for Windows, Mac OS X, Linux and Solaris,
15 respectively.
16 </para>
17
18 <sect1 id="installation_windows">
19
20 <title>Installing on Windows Hosts</title>
21
22 <sect2 id="install-win-prereq">
23
24 <title>Prerequisites</title>
25
26 <para>
27 For the various versions of Windows that are supported as host
28 operating systems, please refer to
29 <xref
30 linkend="hostossupport" />.
31 </para>
32
33 <para>
34 In addition, Windows Installer 1.1 or higher must be present on
35 your system. This should be the case if you have all recent
36 Windows updates installed.
37 </para>
38
39 </sect2>
40
41 <sect2 id="install-win-performing">
42
43 <title>Performing the Installation</title>
44
45 <para>
46 The VirtualBox installation can be started in either of the
47 following ways:
48 </para>
49
50 <itemizedlist>
51
52 <listitem>
53 <para>
54 By double-clicking on the executable file, which contains
55 both 32-bit and 64-bit architectures.
56 </para>
57 </listitem>
58
59 <listitem>
60 <para>
61 By entering the following command:
62 </para>
63
64<screen>VirtualBox-&lt;version&gt;-&lt;revision&gt;-Win.exe -extract</screen>
65
66 <para>
67 This will extract both installers into a temporary
68 directory, along with .MSI files. Run the following command
69 to to perform the installation:
70 </para>
71
72<screen>msiexec /i VirtualBox-&lt;version&gt;-&lt;revision&gt;-MultiArch_&lt;x86|amd64&gt;.msi</screen>
73 </listitem>
74
75 </itemizedlist>
76
77 <para>
78 Using either way displays the installation Welcome dialog and
79 enables you to choose where to install VirtualBox, and which
80 components to install. In addition to the VirtualBox
81 application, the following components are available:
82 </para>
83
84 <itemizedlist>
85
86 <listitem>
87 <para>
88 <emphasis role="bold">USB support.</emphasis> This package
89 contains special drivers for your Windows host that
90 VirtualBox requires to fully support USB devices inside your
91 virtual machines.
92 </para>
93 </listitem>
94
95 <listitem>
96 <para>
97 <emphasis role="bold">Networking.</emphasis> This package
98 contains extra networking drivers for your Windows host that
99 VirtualBox needs to support Bridged Networking. This enables
100 your VM's virtual network cards to be accessed from other
101 machines on your physical network.
102 </para>
103 </listitem>
104
105 <listitem>
106 <para>
107 <emphasis role="bold">Python support.</emphasis> This
108 package contains Python scripting support for the VirtualBox
109 API, see <xref linkend="VirtualBoxAPI" />. For this to work,
110 an already working Windows Python installation on the system
111 is required.
112 </para>
113
114 <para>
115 See, for example:
116 <ulink
117 url="http://www.python.org/download/windows/">http://www.python.org/download/windows/</ulink>.
118 </para>
119
120 <note>
121 <para>
122 Python version at least 2.6 is required. Since VirtualBox
123 5.1, Python 3 is also supported.
124 </para>
125 </note>
126 </listitem>
127
128 </itemizedlist>
129
130 <para>
131 Depending on your Windows configuration, you may see warnings
132 about unsigned drivers, or similar. Click
133 <emphasis role="bold">Continue</emphasis> for these warnings, as
134 otherwise VirtualBox might not function correctly after
135 installation.
136 </para>
137
138 <para>
139 The installer will create a VirtualBox group in the Windows
140 Start menu, which allows you to launch the application and
141 access its documentation.
142 </para>
143
144 <para>
145 With standard settings, VirtualBox will be installed for all
146 users on the local system. If this is not wanted, you must
147 invoke the installer by first extracting as follows:
148 </para>
149
150<screen>VirtualBox.exe -extract</screen>
151
152 <para>
153 Then, run either of the following commands on the extracted .MSI
154 files. This will install VirtualBox only for the current user.
155 </para>
156
157<screen>VirtualBox.exe -msiparams ALLUSERS=2</screen>
158
159<screen>msiexec /i VirtualBox-&lt;version&gt;-MultiArch_&lt;x86|amd64&gt;.msi ALLUSERS=2</screen>
160
161 <para>
162 If you do not want to install all features of VirtualBox, you
163 can set the optional <computeroutput>ADDLOCAL</computeroutput>
164 parameter to explicitly name the features to be installed. The
165 following features are available:
166 </para>
167
168 <variablelist>
169
170 <varlistentry>
171 <term>
172 VBoxApplication
173 </term>
174
175 <listitem>
176 <para>
177 Main binaries of VirtualBox.
178
179 <note>
180 <para>
181 This feature must not be absent, since it contains the
182 minimum set of files to have working VirtualBox
183 installation.
184 </para>
185 </note>
186 </para>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry>
191 <term>
192 VBoxUSB
193 </term>
194
195 <listitem>
196 <para>
197 USB support.
198 </para>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry>
203 <term>
204 VBoxNetwork
205 </term>
206
207 <listitem>
208 <para>
209 All networking support. This includes the VBoxNetworkFlt
210 and VBoxNetworkAdp features.
211 </para>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry>
216 <term>
217 VBoxNetworkFlt
218 </term>
219
220 <listitem>
221 <para>
222 Bridged networking support.
223 </para>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry>
228 <term>
229 VBoxNetworkAdp
230 </term>
231
232 <listitem>
233 <para>
234 Host-only networking support
235 </para>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry>
240 <term>
241 VBoxPython
242 </term>
243
244 <listitem>
245 <para>
246 Python support
247 </para>
248
249 <note>
250 <para>
251 Python version at least 2.6 is required. Since
252 VirtualBox 5.1, Python 3 is also supported.
253 </para>
254 </note>
255 </listitem>
256 </varlistentry>
257
258 </variablelist>
259
260 <para>
261 For example, to only install USB support along with the main
262 binaries, run either of the following commands:
263 </para>
264
265<screen>VirtualBox.exe -msiparams ADDLOCAL=VBoxApplication,VBoxUSB</screen>
266
267<screen>msiexec /i VirtualBox-&lt;version&gt;-MultiArch_&lt;x86|amd64&gt;.msi ADDLOCAL=VBoxApplication,VBoxUSB</screen>
268
269 <para>
270 The user is able to choose between NDIS5 and NDIS6 host network
271 filter drivers during the installation. This is done using a
272 command line parameter,
273 <computeroutput>NETWORKTYPE</computeroutput>. The NDIS6 driver
274 is default for Windows Vista and later. For older Windows
275 versions, the installer will automatically select the NDIS5
276 driver and this cannot be changed. For Windows Vista and later
277 the user can force an install of the legacy NDIS5 host network
278 filter driver by using
279 <computeroutput>NETWORKTYPE=NDIS5</computeroutput>. For example,
280 to install the NDIS5 driver on Windows 7 use either of the
281 following commands:
282 </para>
283
284<screen>VirtualBox.exe -msiparams NETWORKTYPE=NDIS5</screen>
285
286<screen>msiexec /i VirtualBox-&lt;version&gt;-MultiArch_&lt;x86|amd64&gt;.msi NETWORKTYPE=NDIS5</screen>
287
288 </sect2>
289
290 <sect2 id="install-win-uninstall">
291
292 <title>Uninstallation</title>
293
294 <para>
295 As VirtualBox uses the standard Microsoft Windows installer,
296 VirtualBox can be safely uninstalled at any time. Click the
297 program entry in the <emphasis role="bold">Add/Remove
298 Programs</emphasis> list in the Windows Control Panel.
299 </para>
300
301 </sect2>
302
303 <sect2 id="install-win-unattended">
304
305 <title>Unattended Installation</title>
306
307 <para>
308 Unattended installations can be performed using the standard MSI
309 support.
310 </para>
311
312 </sect2>
313
314 <sect2 id="install-win-public-props">
315
316 <title>Public Properties</title>
317
318 <para>
319 Public properties can be specified via MSI API, to control
320 additional behavior and features of the Windows host installer.
321 Use either of the following commands:
322 </para>
323
324<screen>VirtualBox.exe -msiparams NAME=VALUE [...]</screen>
325
326<screen>msiexec /i VirtualBox-&lt;version&gt;-MultiArch_&lt;x86|amd64&gt;.msi NAME=VALUE [...]</screen>
327
328 <para>
329 The following public properties are available.
330 </para>
331
332 <itemizedlist>
333
334 <listitem>
335 <para>
336 VBOX_INSTALLDESKTOPSHORTCUT
337 </para>
338
339 <para>
340 Specifies whether or not a VirtualBox icon on the desktop
341 should be created.
342 </para>
343
344 <para>
345 Set to <computeroutput>1</computeroutput> to enable,
346 <computeroutput>0</computeroutput> to disable. Default is 1.
347 </para>
348 </listitem>
349
350 <listitem>
351 <para>
352 VBOX_INSTALLQUICKLAUNCHSHORTCUT
353 </para>
354
355 <para>
356 Specifies whether or not a VirtualBox icon in the Quick
357 Launch Bar should be created.
358 </para>
359
360 <para>
361 Set to <computeroutput>1</computeroutput> to enable,
362 <computeroutput>0</computeroutput> to disable. Default is 1.
363 </para>
364 </listitem>
365
366 <listitem>
367 <para>
368 VBOX_REGISTERFILEEXTENSIONS
369 </para>
370
371 <para>
372 Specifies whether or not the file extensions .vbox,
373 .vbox-extpack, .ovf, .ova, .vdi, .vmdk, .vhd and .vdd should
374 be associated with VirtualBox. Files of these types then
375 will be opened with VirtualBox.
376 </para>
377
378 <para>
379 Set to <computeroutput>1</computeroutput> to enable,
380 <computeroutput>0</computeroutput> to disable. Default is 1.
381 </para>
382 </listitem>
383
384 <listitem>
385 <para>
386 VBOX_START
387 </para>
388
389 <para>
390 Specifies whether or not VirtualBox should be started right
391 after successful installation.
392 </para>
393
394 <para>
395 Set to <computeroutput>1</computeroutput> to enable,
396 <computeroutput>0</computeroutput> to disable. Default is 1.
397 </para>
398 </listitem>
399
400 </itemizedlist>
401
402 </sect2>
403
404 </sect1>
405
406 <sect1 id="installation-mac">
407
408 <title>Installing on Mac OS X Hosts</title>
409
410 <sect2 id="install-mac-performing">
411
412 <title>Performing the Installation</title>
413
414 <para>
415 For Mac OS X hosts, VirtualBox ships in a disk image
416 (<computeroutput>dmg</computeroutput>) file. Perform the
417 following steps to install on a Mac OS X host:
418 </para>
419
420 <orderedlist>
421
422 <listitem>
423 <para>
424 Double-click on the <computeroutput>dmg</computeroutput>
425 file, to mount the contents.
426 </para>
427 </listitem>
428
429 <listitem>
430 <para>
431 A window opens, prompting you to double-click on the
432 <computeroutput>VirtualBox.pkg</computeroutput> installer
433 file displayed in that window.
434 </para>
435 </listitem>
436
437 <listitem>
438 <para>
439 This will start the installer, which allows you to select
440 where to install VirtualBox.
441 </para>
442 </listitem>
443
444 </orderedlist>
445
446 <para>
447 After installation, you can find a VirtualBox icon in the
448 "Applications" folder in the Finder.
449 </para>
450
451 </sect2>
452
453 <sect2 id="install-mac-uninstall">
454
455 <title>Uninstallation</title>
456
457 <para>
458 To uninstall VirtualBox, open the disk image
459 <computeroutput>dmg</computeroutput> file and double-click on
460 the uninstall icon shown.
461 </para>
462
463 </sect2>
464
465 <sect2 id="install-mac-unattended">
466
467 <title>Unattended Installation</title>
468
469 <para>
470 To perform a non-interactive installation of VirtualBox you can
471 use the command line version of the installer application.
472 </para>
473
474 <para>
475 Mount the disk image (<computeroutput>dmg</computeroutput>)
476 file, as described in the installation procedure, or use the
477 following command line:
478 </para>
479
480<screen>hdiutil attach /path/to/VirtualBox-xyz.dmg</screen>
481
482 <para>
483 Open a terminal session and run the following command:
484 </para>
485
486<screen>sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /Volumes/Macintosh\ HD</screen>
487
488 </sect2>
489
490 </sect1>
491
492 <sect1 id="install-linux-host">
493
494 <title>Installing on Linux Hosts</title>
495
496 <sect2 id="install-linux-prereq">
497
498 <title>Prerequisites</title>
499
500 <para>
501 For the various versions of Linux that are supported as host
502 operating systems, see <xref
503 linkend="hostossupport" />.
504 </para>
505
506 <para>
507 You will need to install the following packages on your Linux
508 system before starting the installation. Some systems will do
509 this for you automatically when you install VirtualBox.
510 </para>
511
512 <itemizedlist>
513
514 <listitem>
515 <para>
516 Qt 5.3.2 or higher. Qt 5.6.2 or higher is recommended.
517 </para>
518 </listitem>
519
520 <listitem>
521 <para>
522 SDL 1.2.7 or higher. This graphics library is typically
523 called <computeroutput>libsdl</computeroutput> or similar.
524 </para>
525 </listitem>
526
527 </itemizedlist>
528
529 <note>
530 <para>
531 These packages are only required if you want to run the
532 VirtualBox graphical user interfaces. In particular,
533 <computeroutput>VirtualBox</computeroutput>, the graphical
534 VirtualBox manager, requires both Qt and SDL.
535 <computeroutput>VBoxSDL</computeroutput>, the simplified GUI,
536 requires only SDL. If you only want to run
537 <computeroutput>VBoxHeadless</computeroutput>, neither Qt nor
538 SDL are required.
539 </para>
540 </note>
541
542 </sect2>
543
544 <sect2 id="externalkernelmodules">
545
546 <title>The VirtualBox Driver Modules</title>
547
548 <para>
549 In order to run other operating systems in virtual machines
550 alongside your main operating system, VirtualBox needs to
551 integrate very tightly into the system. To do this it installs a
552 driver module called <computeroutput>vboxdrv</computeroutput>
553 which does a lot of that work into the system kernel, which is
554 the part of the operating system which controls your processor
555 and physical hardware. Without this kernel module, you can still
556 use the VirtualBox manager to configure virtual machines, but
557 they will not start. It also installs network drivers called
558 <computeroutput>vboxnetflt</computeroutput> and
559 <computeroutput>vboxnetadp</computeroutput> which enable virtual
560 machines to make more use of your computer's network
561 capabilities and are needed for any virtual machine networking
562 beyond the basic NAT mode.
563 </para>
564
565 <para>
566 Since distributing driver modules separately from the kernel is
567 not something which Linux supports well, the install process
568 creates the modules on the system where they will be used. This
569 usually means first installing software packages from the
570 distribution which are needed for the build process. Normally,
571 these will be the GNU compiler (GCC), GNU Make (make) and
572 packages containing header files for your kernel, as well as
573 making sure that all system updates are installed and that the
574 system is running the most up-to-date kernel included in the
575 distribution. <emphasis>The running kernel and the header files
576 must be updated to matching versions</emphasis>. The following
577 list includes some instructions for common distributions. For
578 most of them you may want to start by finding the version name
579 of your kernel, using the command <computeroutput>uname
580 -r</computeroutput> in a terminal. The instructions assume that
581 you have not changed too much from the original installation,
582 particularly not installed a different kernel type. If you have,
583 then you will need to determine yourself what to set up.
584 </para>
585
586 <itemizedlist>
587
588 <listitem>
589 <para>
590 With Debian and Ubuntu-based distributions, you must install
591 the correct version of the
592 <computeroutput>linux-headers</computeroutput>, usually
593 whichever of
594 <computeroutput>linux-headers-generic</computeroutput>,
595 <computeroutput>linux-headers-amd64</computeroutput>,
596 <computeroutput>linux-headers-i686</computeroutput> or
597 <computeroutput>linux-headers-i686-pae</computeroutput> best
598 matches the kernel version name. Also, the
599 <computeroutput>linux-kbuild </computeroutput> package if it
600 exists. Basic Ubuntu releases should have the correct
601 packages installed by default.
602 </para>
603 </listitem>
604
605 <listitem>
606 <para>
607 On Fedora, Redhat, Oracle Linux and many other RPM-based
608 systems, the kernel version sometimes has a code of letters
609 or a word close to the end of the version name. For example
610 "uek" for the Oracle Enterprise kernel or "default" or
611 "desktop" for the standard SUSE kernels. In this case, the
612 package name is
613 <computeroutput>kernel-uek-devel</computeroutput> or
614 equivalent. If there is no such code, it is usually
615 <computeroutput>kernel-devel</computeroutput>.
616 </para>
617 </listitem>
618
619 <listitem>
620 <para>
621 On older SUSE and openSUSE Linux, you must install the
622 <computeroutput>kernel-source</computeroutput> and
623 <computeroutput>kernel-syms</computeroutput> packages.
624 </para>
625 </listitem>
626
627 </itemizedlist>
628
629 <para>
630 If you suspect that something has gone wrong with module
631 installation, check that your system is set up as described
632 above and try running the following command, as root:
633 </para>
634
635<screen>rcvboxdrv setup</screen>
636
637 </sect2>
638
639 <sect2 id="install-linux-performing">
640
641 <title>Performing the Installation</title>
642
643 <para>
644 VirtualBox is available in a number of package formats native to
645 various common Linux distributions> See
646 <xref linkend="hostossupport" />. In addition, there is an
647 alternative generic installer (.run) which should work on most
648 Linux distributions. The generic installer packages are built on
649 EL5 systems and thus require reasonably old versions of glibc
650 (version 2.5) and other system libraries.
651 </para>
652
653 <sect3 id="install-linux-debian-ubuntu">
654
655 <title>Installing VirtualBox from a Debian/Ubuntu Package</title>
656
657 <para>
658 Download the appropriate package for your distribution. The
659 following examples assume that you are installing to a 32-bit
660 Ubuntu Wily system. Use <computeroutput>dpkg</computeroutput>
661 to install the Debian package,as follows:
662 </para>
663
664<screen>sudo dpkg -i virtualbox-5.0_<replaceable>version-number</replaceable>_Ubuntu_wily_i386.deb</screen>
665
666 <para>
667 The installer will also try to build kernel modules suitable
668 for the current running kernel. If the build process is not
669 successful you will be shown a warning and the package will be
670 left unconfigured. Look at
671 <computeroutput>/var/log/vbox-install.log</computeroutput> to
672 find out why the compilation failed. You may have to install
673 the appropriate Linux kernel headers, see
674 <xref
675 linkend="externalkernelmodules" />. After
676 correcting any problems, run the following command:
677 </para>
678
679<screen>sudo rcvboxdrv setup</screen>
680
681 <para>
682 This will start a second attempt to build the module.
683 </para>
684
685 <para>
686 If a suitable kernel module was found in the package or the
687 module was successfully built, the installation script will
688 attempt to load that module. If this fails, please see
689 <xref
690 linkend="ts_linux-kernelmodule-fails-to-load" />
691 for further information.
692 </para>
693
694 <para>
695 Once VirtualBox has been successfully installed and
696 configured, you can start it by clicking
697 <emphasis role="bold">VirtualBox</emphasis> in your Start menu
698 or from the command line. See
699 <xref linkend="startingvboxonlinux" />.
700 </para>
701
702 </sect3>
703
704 <sect3 id="install-linux-alt-installer">
705
706 <title>Using the Alternative Generic Installer (VirtualBox.run)</title>
707
708 <para>
709 The alternative generic installer performs the following
710 steps:
711 </para>
712
713 <itemizedlist>
714
715 <listitem>
716 <para>
717 Unpacks the application files to the target directory,
718
719<screen>/opt/VirtualBox/</screen>
720
721 which cannot be changed.
722 </para>
723 </listitem>
724
725 <listitem>
726 <para>
727 Builds and installs the VirtualBox kernel modules:
728 <computeroutput>vboxdrv</computeroutput>,
729 <computeroutput>vboxnetflt</computeroutput>, and
730 <computeroutput>vboxnetadp</computeroutput>.
731 </para>
732 </listitem>
733
734 <listitem>
735 <para>
736 Creates <computeroutput>/sbin/rcvboxdrv</computeroutput>,
737 an init script to start the VirtualBox kernel module.
738 </para>
739 </listitem>
740
741 <listitem>
742 <para>
743 Creates a new system group called
744 <computeroutput>vboxusers</computeroutput>.
745 </para>
746 </listitem>
747
748 <listitem>
749 <para>
750 Creates symbolic links in
751 <computeroutput>/usr/bin</computeroutput> to a shell
752 script
753 <computeroutput>/opt/VirtualBox/VBox</computeroutput>
754 which does some sanity checks and dispatches to the actual
755 executables: <computeroutput>VirtualBox</computeroutput>,
756 <computeroutput>VBoxSDL</computeroutput>,
757 <computeroutput>VBoxVRDP</computeroutput>,
758 <computeroutput>VBoxHeadless</computeroutput> and
759 <computeroutput>VBoxManage</computeroutput>
760 </para>
761 </listitem>
762
763 <listitem>
764 <para>
765 Creates
766 <computeroutput>/etc/udev/rules.d/60-vboxdrv.rules</computeroutput>,
767 a description file for udev, if that is present, which
768 makes the USB devices accessible to all users in the
769 <computeroutput>vboxusers</computeroutput> group.
770 </para>
771 </listitem>
772
773 <listitem>
774 <para>
775 Writes the installation directory to
776 <computeroutput>/etc/vbox/vbox.cfg</computeroutput>.
777 </para>
778 </listitem>
779
780 </itemizedlist>
781
782 <para>
783 The installer must be executed as root with either
784 <computeroutput>install</computeroutput> or
785 <computeroutput>uninstall</computeroutput> as the first
786 parameter. For example;
787 </para>
788
789<screen>sudo ./VirtualBox.run install</screen>
790
791 <para>
792 Or if you do not have the
793 <computeroutput>sudo</computeroutput> command available, run
794 the following as root instead:
795
796<screen>./VirtualBox.run install</screen>
797 </para>
798
799 <para>
800 Add every user who needs to access USB devices from a
801 VirtualBox guests to the group
802 <computeroutput>vboxusers</computeroutput>. Either use the GUI
803 user management tools or run the following command as root:
804 </para>
805
806<screen>sudo usermod -a -G vboxusers username</screen>
807
808 <note>
809 <para>
810 The <computeroutput>usermod</computeroutput> command of some
811 older Linux distributions does not support the
812 <computeroutput>-a</computeroutput> option, which adds the
813 user to the given group without affecting membership of
814 other groups. In this case, find out the current group
815 memberships with the <computeroutput>groups</computeroutput>
816 command and add all these groups in a comma-separated list
817 to the command line after the
818 <computeroutput>-G</computeroutput> option. For example:
819 <computeroutput>usermod -G group1,group2,vboxusers
820 username</computeroutput>.
821 </para>
822 </note>
823
824 </sect3>
825
826 <sect3 id="install-linux-manual">
827
828 <title>Performing a Manual Installation</title>
829
830 <para>
831 If you cannot use the shell script installer described in
832 <xref linkend="install-linux-alt-installer"/>, you can perform
833 a manual installation. Invoke the installer as follows:
834 </para>
835
836<screen>./VirtualBox.run --keep --noexec</screen>
837
838 <para>
839 This will unpack all the files needed for installation in the
840 directory <computeroutput>install</computeroutput> under the
841 current directory. The VirtualBox application files are
842 contained in
843 <computeroutput>VirtualBox.tar.bz2</computeroutput> which you
844 can unpack to any directory on your system. For example:
845 </para>
846
847<screen>sudo mkdir /opt/VirtualBox
848sudo tar jxf ./install/VirtualBox.tar.bz2 -C /opt/VirtualBox</screen>
849
850 <para>
851 or as root:
852
853<screen>mkdir /opt/VirtualBox
854tar jxf ./install/VirtualBox.tar.bz2 -C /opt/VirtualBox</screen>
855 </para>
856
857 <para>
858 The sources for VirtualBox's kernel module are provided in the
859 <computeroutput>src</computeroutput> directory. To build the
860 module, change to the directory and issue
861 </para>
862
863<screen>make</screen>
864
865 <para>
866 If everything builds correctly, issue the following command to
867 install the module to the appropriate module directory:
868 </para>
869
870<screen>sudo make install</screen>
871
872 <para>
873 In case you do not have sudo, switch the user account to root
874 and run the following command:
875
876<screen>make install</screen>
877 </para>
878
879 <para>
880 The VirtualBox kernel module needs a device node to operate.
881 The above make command will tell you how to create the device
882 node, depending on your Linux system. The procedure is
883 slightly different for a classical Linux setup with a
884 <computeroutput>/dev</computeroutput> directory, a system with
885 the now deprecated <computeroutput>devfs</computeroutput> and
886 a modern Linux system with
887 <computeroutput>udev</computeroutput>.
888 </para>
889
890 <para>
891 On certain Linux distributions, you might experience
892 difficulties building the module. You will have to analyze the
893 error messages from the build system to diagnose the cause of
894 the problems. In general, make sure that the correct Linux
895 kernel sources are used for the build process.
896 </para>
897
898 <para>
899 Note that the <computeroutput>/dev/vboxdrv</computeroutput>
900 kernel module device node must be owned by root:root and must
901 be read/writable only for the user.
902 </para>
903
904 <para>
905 Next, you install the system initialization script for the
906 kernel module and activate the initialization script using the
907 right method for your distribution, as follows:
908
909<screen>cp /opt/VirtualBox/vboxdrv.sh /sbin/rcvboxdrv</screen>
910
911 This example assumes you installed VirtualBox to the
912 <computeroutput>/opt/VirtualBox</computeroutput> directory.
913 Create a configuration file for VitrualBox:
914
915<screen>mkdir /etc/vbox
916echo INSTALL_DIR=/opt/VirtualBox &gt; /etc/vbox/vbox.cfg</screen>
917
918 Create the following symbolic links:
919 </para>
920
921<screen>ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox
922ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage
923ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VBoxHeadless
924ln -sf /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL</screen>
925
926 </sect3>
927
928 <sect3 id="install-linux-update-uninstall">
929
930 <title>Updating and Uninstalling VirtualBox</title>
931
932 <para>
933 Before updating or uninstalling VirtualBox, you must terminate
934 any virtual machines which are currently running and exit the
935 VirtualBox or VBoxSVC applications. To update VirtualBox,
936 simply run the installer of the updated version. To uninstall
937 VirtualBox, invoke the installer like this:
938
939<screen>sudo ./VirtualBox.run uninstall</screen>
940
941 or as root:
942
943<screen>./VirtualBox.run uninstall</screen>
944
945 Starting with version 2.2.2, you can uninstall the .run
946 package as follows:
947
948<screen>/opt/VirtualBox/uninstall.sh</screen>
949
950 To manually uninstall VirtualBox, simply perform the manual
951 installation steps in reverse order.
952 </para>
953
954 </sect3>
955
956 <sect3 id="install-linux-debian-automatic">
957
958 <title>Automatic Installation of Debian Packages</title>
959
960 <para>
961 The Debian packages will request some user feedback when
962 installed for the first time. The debconf system is used to
963 perform this task. To prevent any user interaction during
964 installation, default values can be defined. A file
965 <computeroutput>vboxconf</computeroutput> can contain the
966 following debconf settings:
967
968<screen>virtualbox virtualbox/module-compilation-allowed boolean true
969virtualbox virtualbox/delete-old-modules boolean true</screen>
970
971 The first line allows compilation of the vboxdrv kernel module
972 if no module was found for the current kernel. The second line
973 allows the package to delete any old vboxdrv kernel modules
974 compiled by previous installations.
975 </para>
976
977 <para>
978 These default settings can be applied prior to the
979 installation of the VirtualBox Debian package, as follows:
980 </para>
981
982<screen>debconf-set-selections vboxconf</screen>
983
984 <para>
985 In addition there are some common configuration options that
986 can be set prior to the installation. See
987 <xref
988 linkend="linux_install_opts" />.
989 </para>
990
991 </sect3>
992
993 <sect3 id="install-linux-rpm-automatic">
994
995 <title>Automatic Installation of RPM Packages</title>
996
997 <para>
998 The RPM format does not provide a configuration system
999 comparable to the debconf system. See
1000 <xref
1001 linkend="linux_install_opts" /> for how to set
1002 some common installation options provided by VirtualBox.
1003 </para>
1004
1005 </sect3>
1006
1007 <sect3 id="linux_install_opts">
1008
1009 <title>Automatic Installation Options</title>
1010
1011 <para>
1012 To configure the installation process for .deb and .rpm
1013 packages, you can create a response file named
1014 <computeroutput>/etc/default/virtualbox</computeroutput>. The
1015 automatic generation of the udev rule can be prevented by the
1016 following setting:
1017
1018<screen>INSTALL_NO_UDEV=1</screen>
1019
1020 The creation of the group vboxusers can be prevented as
1021 follows:
1022
1023<screen>INSTALL_NO_GROUP=1</screen>
1024
1025 If the following line is specified, the package installer will
1026 not try to build the <computeroutput>vboxdrv</computeroutput>
1027 kernel module if no module fitting the current kernel was
1028 found.
1029 </para>
1030
1031<screen>INSTALL_NO_VBOXDRV=1</screen>
1032
1033 </sect3>
1034
1035 </sect2>
1036
1037 <sect2 id="install-linux-vboxusers">
1038
1039 <title>The vboxusers Group</title>
1040
1041 <para>
1042 The Linux installers create the system user group
1043 <computeroutput>vboxusers</computeroutput> during installation.
1044 Any system user who is going to use USB devices from VirtualBox
1045 guests must be a member of that group. A user can be made a
1046 member of the group <computeroutput>vboxusers</computeroutput>
1047 through the GUI user/group management or using the following
1048 command:
1049 </para>
1050
1051<screen>sudo usermod -a -G vboxusers username</screen>
1052
1053 </sect2>
1054
1055 <sect2 id="startingvboxonlinux">
1056
1057 <title>Starting VirtualBox on Linux</title>
1058
1059 <para>
1060 The easiest way to start a VirtualBox program is by running the
1061 program of your choice
1062 (<computeroutput>VirtualBox</computeroutput>,
1063 <computeroutput>VBoxManage</computeroutput>,
1064 <computeroutput>VBoxSDL</computeroutput>, or
1065 <computeroutput>VBoxHeadless</computeroutput>) from a terminal.
1066 These are symbolic links to
1067 <computeroutput>VBox.sh</computeroutput> that start the required
1068 program for you.
1069 </para>
1070
1071 <para>
1072 The following detailed instructions should only be of interest
1073 if you wish to execute VirtualBox without installing it first.
1074 You should start by compiling the
1075 <computeroutput>vboxdrv</computeroutput> kernel module and
1076 inserting it into the Linux kernel. VirtualBox consists of a
1077 service daemon, <computeroutput>VBoxSVC</computeroutput>, and
1078 several application programs. The daemon is automatically
1079 started if necessary. All VirtualBox applications will
1080 communicate with the daemon through Unix local domain sockets.
1081 There can be multiple daemon instances under different user
1082 accounts and applications can only communicate with the daemon
1083 running under the user account as the application. The local
1084 domain socket resides in a subdirectory of your system's
1085 directory for temporary files called
1086 <computeroutput>.vbox-&lt;username&gt;-ipc</computeroutput>. In
1087 case of communication problems or server startup problems, you
1088 may try to remove this directory.
1089 </para>
1090
1091 <para>
1092 All VirtualBox applications
1093 (<computeroutput>VirtualBox</computeroutput>,
1094 <computeroutput>VBoxSDL</computeroutput>,
1095 <computeroutput>VBoxManage</computeroutput>, and
1096 <computeroutput>VBoxHeadless</computeroutput>) require the
1097 VirtualBox directory to be in the library path, as follows:
1098 </para>
1099
1100<screen>LD_LIBRARY_PATH=. ./VBoxManage showvminfo "Windows XP"</screen>
1101
1102 </sect2>
1103
1104 </sect1>
1105
1106 <sect1 id="install-solaris-host">
1107
1108 <title>Installing on Solaris Hosts</title>
1109
1110 <para>
1111 For the specific versions of Solaris that are supported as host
1112 operating systems, see <xref
1113 linkend="hostossupport" />.
1114 </para>
1115
1116 <para>
1117 If you have a previously installed instance of VirtualBox on your
1118 Solaris host, please uninstall it first before installing a new
1119 instance. See <xref linkend="uninstall-solaris-host" /> for
1120 uninstall instructions.
1121 </para>
1122
1123 <sect2 id="install-solaris-performing">
1124
1125 <title>Performing the Installation</title>
1126
1127 <para>
1128 VirtualBox is available as a standard Solaris package. Download
1129 the VirtualBox SunOS package which includes the 64-bit versions
1130 of VirtualBox. <emphasis>The installation must be performed as
1131 root and from the global zone</emphasis> as the VirtualBox
1132 installer loads kernel drivers which cannot be done from
1133 non-global zones. To verify which zone you are currently in,
1134 execute the <computeroutput>zonename</computeroutput> command.
1135 Execute the following commands:
1136 </para>
1137
1138<screen>gunzip -cd VirtualBox-<replaceable>version-number</replaceable>-SunOS.tar.gz | tar xvf -</screen>
1139
1140 <para>
1141 Starting with VirtualBox 3.1 the VirtualBox kernel package is no
1142 longer a separate package and has been integrated into the main
1143 package. Install the VirtualBox package as follows:
1144 </para>
1145
1146<screen>pkgadd -d VirtualBox-<replaceable>version-number</replaceable>-SunOS.pkg</screen>
1147
1148 <para>
1149 The installer will then prompt you to enter the package you wish
1150 to install. Choose <emphasis role="bold">1</emphasis> or
1151 <emphasis role="bold">all</emphasis> and proceed. Next the
1152 installer will ask you if you want to allow the postinstall
1153 script to be executed. Choose <emphasis role="bold">y</emphasis>
1154 and proceed, as it is essential to execute this script which
1155 installs the VirtualBox kernel module. Following this
1156 confirmation the installer will install VirtualBox and execute
1157 the postinstall setup script.
1158 </para>
1159
1160 <para>
1161 Once the postinstall script has been executed your installation
1162 is now complete. You may now safely delete the uncompressed
1163 package and <computeroutput>autoresponse</computeroutput> files
1164 from your system. VirtualBox is installed in
1165 <computeroutput>/opt/VirtualBox</computeroutput>.
1166 </para>
1167
1168 <note>
1169 <para>
1170 If you need to use VirtualBox from non-global zones, see
1171 <xref linkend="solaris-zones" />.
1172 </para>
1173 </note>
1174
1175 </sect2>
1176
1177 <sect2 id="install-solaris-vboxuser">
1178
1179 <title>The vboxuser Group</title>
1180
1181 <para>
1182 Starting with VirtualBox 4.1, the installer creates the system
1183 user group <computeroutput>vboxuser</computeroutput> during
1184 installation for Solaris hosts that support the USB features
1185 required by VirtualBox. Any system user who is going to use USB
1186 devices from VirtualBox guests must be a member of this group. A
1187 user can be made a member of this group through the GUI
1188 user/group management or at the command line by executing as
1189 root:
1190 </para>
1191
1192<screen>usermod -G vboxuser username</screen>
1193
1194 <para>
1195 Note that adding an active user to that group will require that
1196 user to log out and back in again. This should be done manually
1197 after successful installation of the package.
1198 </para>
1199
1200 </sect2>
1201
1202 <sect2 id="install-solaris-starting">
1203
1204 <title>Starting VirtualBox on Solaris</title>
1205
1206 <para>
1207 The easiest way to start a VirtualBox program is by running the
1208 program of your choice
1209 (<computeroutput>VirtualBox</computeroutput>,
1210 <computeroutput>VBoxManage</computeroutput>,
1211 <computeroutput>VBoxSDL</computeroutput>, or
1212 <computeroutput>VBoxHeadless</computeroutput>) from a terminal.
1213 These are symbolic links to
1214 <computeroutput>VBox.sh</computeroutput> that start the required
1215 program for you.
1216 </para>
1217
1218 <para>
1219 Alternatively, you can directly invoke the required programs
1220 from <computeroutput>/opt/VirtualBox</computeroutput>. Using the
1221 links provided is easier as you do not have to type the full
1222 path.
1223 </para>
1224
1225 <para>
1226 You can configure some elements of the
1227 <computeroutput>VirtualBox</computeroutput> Qt GUI, such as
1228 fonts and colours, by running
1229 <computeroutput>VBoxQtconfig</computeroutput> from the terminal.
1230 </para>
1231
1232 </sect2>
1233
1234 <sect2 id="uninstall-solaris-host">
1235
1236 <title>Uninstallation</title>
1237
1238 <para>
1239 Uninstallation of VirtualBox on Solaris requires root
1240 permissions. To perform the uninstallation, start a root
1241 terminal session and run the following command:
1242 </para>
1243
1244<screen>pkgrm SUNWvbox</screen>
1245
1246 <para>
1247 After confirmation, this will remove VirtualBox from your
1248 system.
1249 </para>
1250
1251 <para>
1252 If you are uninstalling VirtualBox version 3.0 or lower, you
1253 need to remove the VirtualBox kernel interface package, as
1254 follows:
1255 </para>
1256
1257 <para>
1258<screen>pkgrm SUNWvboxkern</screen>
1259 </para>
1260
1261 </sect2>
1262
1263 <sect2 id="install-solaris-unattended">
1264
1265 <title>Unattended Installation</title>
1266
1267 <para>
1268 To perform a non-interactive installation of VirtualBox there is
1269 a response file named
1270 <computeroutput>autoresponse</computeroutput>, that the
1271 installer will use for responses to inputs rather than ask them
1272 from you.
1273 </para>
1274
1275 <para>
1276 Extract the tar.gz package as described in the normal
1277 installation instructions. Then open a root terminal session and
1278 run the following command:
1279 </para>
1280
1281<screen>pkgadd -d VirtualBox-<replaceable>version-number</replaceable>-SunOS-x86 -n -a autoresponse SUNWvbox</screen>
1282
1283 <para>
1284 To perform a non-interactive uninstallation, open a root
1285 terminal session and run the following command:
1286 </para>
1287
1288<screen>pkgrm -n -a /opt/VirtualBox/autoresponse SUNWvbox</screen>
1289
1290 </sect2>
1291
1292 <sect2 id="solaris-zones">
1293
1294 <title>Configuring a Zone for Running VirtualBox</title>
1295
1296 <para>
1297 Assuming that VirtualBox has already been installed into your
1298 zone, you need to give the zone access to VirtualBox's device
1299 node. This is done by performing the following steps. Start a
1300 root terminal and run the following command:
1301 </para>
1302
1303<screen>zonecfg -z vboxzone</screen>
1304
1305 <para>
1306 Replace "vboxzone" with the name of the zone where you intend to
1307 run VirtualBox.
1308 </para>
1309
1310 <para>
1311 Use<computeroutput>zonecfg</computeroutput> to add the
1312 <computeroutput>device</computeroutput> resource and
1313 <computeroutput>match</computeroutput> properties to the zone,
1314 as follows:
1315 </para>
1316
1317<screen>zonecfg:vboxzone&gt;add device
1318zonecfg:vboxzone:device&gt;set match=/dev/vboxdrv
1319zonecfg:vboxzone:device&gt;end
1320zonecfg:vboxzone&gt;add device
1321zonecfg:vboxzone:device&gt;set match=/dev/vboxdrvu
1322zonecfg:vboxzone:device&gt;end
1323zonecfg:vboxzone&gt;exit</screen>
1324
1325 <para>
1326 If you are running VirtualBox 2.2.0 or above on Solaris 11 or
1327 above, you may also add a device for
1328 <computeroutput>/dev/vboxusbmon</computeroutput>, similar to
1329 that shown above. This does not apply to Solaris 10 hosts, due
1330 to lack of USB support.
1331 </para>
1332
1333 <para>
1334 If you are not using sparse root zones, you will need to
1335 loopback mount <computeroutput>/opt/VirtualBox</computeroutput>
1336 from the global zone into the non-global zone at the same path.
1337 This is specified below using the
1338 <computeroutput>dir</computeroutput> attribute and the
1339 <computeroutput>special</computeroutput> attribute. For example:
1340 </para>
1341
1342<screen>zonecfg:vboxzone&gt;add fs
1343zonecfg:vboxzone:device&gt;set dir=/opt/VirtualBox
1344zonecfg:vboxzone:device&gt;set special=/opt/VirtualBox
1345zonecfg:vboxzone:device&gt;set type=lofs
1346zonecfg:vboxzone:device&gt;end
1347zonecfg:vboxzone&gt;exit</screen>
1348
1349 <para>
1350 Reboot the zone using <computeroutput>zoneadm</computeroutput>
1351 and you should be able to run VirtualBox from within the
1352 configured zone.
1353 </para>
1354
1355 </sect2>
1356
1357 </sect1>
1358
1359</chapter>
Note: See TracBrowser for help on using the repository browser.

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