VirtualBox

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

Last change on this file since 54608 was 53353, checked in by vboxsync, 10 years ago

doc/manual: better describe how to install VBox on OSX from command line

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