VirtualBox

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

Last change on this file since 80954 was 76786, checked in by vboxsync, 6 years ago

manual: integrate drop #40 with minimal manual adjustments (but everything into one book, with manually applied tweaks to turn the release notes into a pure changelog again, and eliminated trailing whitespace)

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