VirtualBox

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

Last change on this file since 76113 was 76080, checked in by vboxsync, 6 years ago

manual: fix some whitespace issues

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