VirtualBox

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

Last change on this file since 56571 was 56541, checked in by vboxsync, 9 years ago

manual: Use @VBOX_XXX@ instead of $VBOX_XXX replacement patterns. No need to escape the former either in SED nor in makefiles.

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