diff -r 565a706307d0 en_US.ISO8859-1/books/handbook/virtualization/chapter.sgml
--- a/en_US.ISO8859-1/books/handbook/virtualization/chapter.sgml Thu Dec 01 00:00:38 2011 +0200
+++ b/en_US.ISO8859-1/books/handbook/virtualization/chapter.sgml Thu Dec 01 23:31:24 2011 +0200
@@ -969,6 +969,117 @@
+
+
+ &virtualbox; Guest Additions on a &os; Guest
+
+ The &virtualbox; guest additions
+ provide support for:
+
+
+
+ Clipboard sharing
+
+
+
+ Mouse pointer integration
+
+
+
+ Host time synchronization
+
+
+
+ Window scaling
+
+
+
+ Seamless mode
+
+
+
+
+ The following commands are run in the &os; guest.
+
+
+ First, install the emulators/virtualbox-ose-additions
+ package in the &os; guest.
+
+ &prompt.root; cd /usr/ports/emulators/virtualbox-ose-additions && make install clean
+
+ Add these lines to /etc/rc.conf:
+
+ vboxguest_enable="YES"
+vboxservice_enable="YES"
+
+ If &man.ntpd.8; or &man.ntpdate.8; will be used, host time
+ synchronization should be disabled:
+
+ vboxservice_flags="--disable-timesync"
+
+ The vboxvideo_drv should be recognized by
+ Xorg -configure. If not, modify
+ xorg.conf for the
+ &virtualbox; video card:
+
+ Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ Identifier "Card0"
+ Driver "vboxvideo"
+ VendorName "InnoTek Systemberatung GmbH"
+ BoardName "VirtualBox Graphics Adapter"
+ BusID "PCI:0:2:0"
+EndSection
+
+ To use vboxmouse_drv, adjust the mouse
+ section in your xorg.conf:
+
+ Section "InputDevice"
+ Identifier "Mouse0"
+ Driver "vboxmouse"
+EndSection
+
+ HAL users should create this file at
+ /usr/local/etc/hal/fdi/policy/90-vboxguest.fdi
+ or copy it from /usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi:
+
+ <?xml version="1.0" encoding="UTF-8"?>
+<!--
+# Sun VirtualBox
+# Hal driver description for the vboxmouse driver
+# $Id: 90-vboxguest.fdi 21412 2009-07-08 21:18:57z vboxsync $
+
+ Copyright (C) 2008-2009 Sun Microsystems, Inc.
+
+ This file is part of VirtualBox Open Source Edition (OSE, as
+ available from http://www.virtualbox.org. This file is free software;
+ you can redistribute it and/or modify it under the terms of the GNU
+ General Public License (GPL) as published by the Free Software
+ Foundation, in version 2 as it comes in the "COPYING" file of the
+ VirtualBox OSE distribution. VirtualBox OSE is distributed in the
+ hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
+
+ Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
+ Clara, CA 95054 USA or visit http://www.sun.com if you need
+ additional information or have any questions.
+-->
+<deviceinfo version="0.2">
+ <device>
+ <match key="info.subsystem" string="pci">
+ <match key="info.product" string="VirtualBox guest Service">
+ <append key="info.capabilities" type="strlist">input</append>
+ <append key="info.capabilities" type="strlist">input.mouse</append>
+ <merge key="input.x11_driver" type="string">vboxmouse</merge>
+ <merge key="input.device" type="string">/dev/vboxguest</merge>
+ </match>
+ </match>
+ </device>
+</deviceinfo>
+
@@ -1000,8 +1111,10 @@
Installing &virtualbox;
&virtualbox; is available as a &os; port
- in emulators/virtualbox-ose, and
- may be installed using the following commands:
+ in emulators/virtualbox-ose.
+ As &virtualbox; is very actively developed, make sure your ports
+ tree is up to date before installing. Install using these
+ commands:
&prompt.root; cd /usr/ports/emulators/virtualbox-ose
&prompt.root; make install clean
@@ -1028,37 +1141,14 @@
vboxdrv_load="YES"
- Versions of &virtualbox; prior to 3.1.2
- require the proc file system
- to be mounted. This is not needed in recent versions, which utilize
- the functions provided by the &man.sysctl.3; library.
+ To use the kernel modules that allow bridged or host-only
+ networking, add the following to /etc/rc.conf
+ and reboot the computer:
- When using an older version of the port, follow the instructions
- below to make sure proc is
- mounted properly:
-
- &prompt.root; mount -t procfs proc /proc
-
- To allow this setting to persist reboots, the following line
- is needed in /etc/fstab:
-
- proc /proc procfs rw 0 0
-
-
- If an error message similar to the following is observed
- when &virtualbox; is run from
- the terminal:
-
- VirtualBox: supR3HardenedExecDir: couldn't read "", errno=2 cchLink=-1
-
- The most likely culprit will be the proc file system. Please use the
- mount command to check whether it is mounted
- properly.
-
+ vboxnet_enable="YES"
The vboxusers group is created during
- the installation of &virtualbox;.
+ installation of &virtualbox;.
All users that need access to &virtualbox;
will have to be added as members of this group.
The pw command may be used to add new
@@ -1066,8 +1156,23 @@
&prompt.root; pw groupmod vboxusers -m yourusername
+ The default permissions for /dev/vboxnetctl are restrictive and
+ need to be changed for bridged networking.
+
+ To test it temporarily:
+
+ &prompt.root; chown root:vboxusers /dev/vboxnetctl
+&prompt.root; chmod 0660 /dev/vboxnetctl
+
+ To make the permissions change permanent, add these
+ lines to /etc/devfs.conf:
+
+ own vboxnetctl root:vboxusers
+perm vboxnetctl 0660
+
To launch &virtualbox;, either select
- the Sun VirtualBox item from your
+ the Sun VirtualBox item from the
graphic environment's menu, or type the following in a
terminal:
@@ -1081,6 +1186,71 @@
visit the relevant page in the &os; wiki, at .
+
+
+ &virtualbox; USB Support
+
+
+ These steps require VirtualBox 4.0.0 or later.
+
+
+ In order to be able to read and write to USB devices, users
+ need to be members of the operator group:
+
+ &prompt.root; pw groupmod operator -m jerry
+
+ Then, add the following to /etc/devfs.rules
+ (create it if it does not exist yet):
+
+ [system=10]
+add path 'usb/*' mode 0660 group operator
+
+ To load these new rules, add the following to
+ /etc/rc.conf:
+
+ devfs_system_ruleset="system"
+
+ Then, restart devfs:
+
+ &prompt.root; /etc/rc.d/devfs restart
+
+ USB can now be enabled in the guest operating system.
+ USB devices should be visible in the &virtualbox; preferences.
+
+
+
+ &virtualbox; Host DVD/CD Access
+
+ The atapicam kernel module needs to be loaded
+ by adding the following line to
+ /boot/loader.conf:
+
+ atapicam_load="YES"
+
+ HAL needs to run for
+ &virtualbox; DVD/CD functions to work,
+ so enable it in /etc/rc.conf and start it
+ (if it is not already running):
+
+ hald_enable="YES"
+
+ &prompt.root; /usr/local/etc/rc.d/hald start
+
+ In order for users to be able to use
+ &virtualbox; DVD/CD functions, they need
+ access to /dev/xpt0,
+ /dev/cdN,
+ and /dev/passN.
+ Add the following lines to
+ /etc/devfs.conf:
+
+ perm cd0 0600
+perm xpt0 0660
+perm pass0 0660
+
+