View | Details | Raw Unified | Return to bug 162961 | Differences between
and this patch

Collapse All | Expand All

(-)virtualization-virtualbox-chapter-patch-new.txt (-12 / +12 lines)
Lines 7-13 Link Here
7
     </sect2>
7
     </sect2>
8
+
8
+
9
+    <sect2 id="virtualization-guest-virtualbox-guest-additions">
9
+    <sect2 id="virtualization-guest-virtualbox-guest-additions">
10
+      <title>&virtualbox; Guest Additions on &os; Guest</title>
10
+      <title>&virtualbox; Guest Additions on a &os; Guest</title>
11
+
11
+
12
+      <para>The <application>&virtualbox;</application> guest additions
12
+      <para>The <application>&virtualbox;</application> guest additions
13
+	provide support for:</para>
13
+	provide support for:</para>
Lines 44-50 Link Here
44
+
44
+
45
+      <screen>&prompt.root; <userinput>cd /usr/ports/emulators/virtualbox-ose-additions && make install clean</userinput></screen>
45
+      <screen>&prompt.root; <userinput>cd /usr/ports/emulators/virtualbox-ose-additions && make install clean</userinput></screen>
46
+
46
+
47
+      <para>Add the following lines to <filename>/etc/rc.conf</filename>:</para>
47
+      <para>Add these lines to <filename>/etc/rc.conf</filename>:</para>
48
+
48
+
49
+      <programlisting>vboxguest_enable="YES"
49
+      <programlisting>vboxguest_enable="YES"
50
+vboxservice_enable="YES"</programlisting>
50
+vboxservice_enable="YES"</programlisting>
Lines 55-62 Link Here
55
+      <programlisting>vboxservice_flags="--disable-timesync"</programlisting>
55
+      <programlisting>vboxservice_flags="--disable-timesync"</programlisting>
56
+
56
+
57
+      <para>The <literal>vboxvideo_drv</literal> should be recognized by
57
+      <para>The <literal>vboxvideo_drv</literal> should be recognized by
58
+	<command>Xorg -configure</command>.  If not, use something like this
58
+	<command>Xorg -configure</command>.  If not, modify
59
+	in your <filename>xorg.conf</filename> file for the
59
+	<filename>xorg.conf</filename> for the
60
+	<application>&virtualbox;</application> video card:</para>
60
+	<application>&virtualbox;</application> video card:</para>
61
+
61
+
62
+      <programlisting>Section "Device"
62
+      <programlisting>Section "Device"
Lines 71-78 Link Here
71
+	BusID "PCI:0:2:0"
71
+	BusID "PCI:0:2:0"
72
+EndSection</programlisting>
72
+EndSection</programlisting>
73
+
73
+
74
+      <para>To use <literal>vboxmouse_drv</literal> please adjust the mouse
74
+      <para>To use <literal>vboxmouse_drv</literal>, adjust the mouse
75
+	section in your <filename>xorg.conf</filename> like this:</para>
75
+	section in <filename>xorg.conf</filename>:</para>
76
+
76
+
77
+      <programlisting>Section "InputDevice"
77
+      <programlisting>Section "InputDevice"
78
+	Identifier "Mouse0"
78
+	Identifier "Mouse0"
Lines 127-133 Link Here
127
-	may be installed using the following commands:</para>
127
-	may be installed using the following commands:</para>
128
+	in <filename role="package">emulators/virtualbox-ose</filename>.
128
+	in <filename role="package">emulators/virtualbox-ose</filename>.
129
+	As &virtualbox; is very actively developed, make sure your ports
129
+	As &virtualbox; is very actively developed, make sure your ports
130
+	tree is up to date before installing.  Install using the following
130
+	tree is up to date before installing.  Install using these
131
+	commands:</para>
131
+	commands:</para>
132
 
132
 
133
       <screen>&prompt.root; <userinput>cd /usr/ports/emulators/virtualbox-ose</userinput>
133
       <screen>&prompt.root; <userinput>cd /usr/ports/emulators/virtualbox-ose</userinput>
Lines 142-148 Link Here
142
-	the functions provided by the &man.sysctl.3; library.</para>
142
-	the functions provided by the &man.sysctl.3; library.</para>
143
+      <para>To use the kernel modules that allow bridged or host-only
143
+      <para>To use the kernel modules that allow bridged or host-only
144
+	networking, add the following to <filename>/etc/rc.conf</filename>
144
+	networking, add the following to <filename>/etc/rc.conf</filename>
145
+	and reboot your computer:</para>
145
+	and reboot the computer:</para>
146
 
146
 
147
-      <para>When using an older version of the port, follow the instructions
147
-      <para>When using an older version of the port, follow the instructions
148
-	below to make sure <filename class="directory">proc</filename> is
148
-	below to make sure <filename class="directory">proc</filename> is
Lines 170-197 Link Here
170
+      <programlisting>vboxnet_enable="YES"</programlisting>
170
+      <programlisting>vboxnet_enable="YES"</programlisting>
171
 
171
 
172
       <para>The <groupname>vboxusers</groupname> group is created during
172
       <para>The <groupname>vboxusers</groupname> group is created during
173
 	the installation of <application>&virtualbox;</application>.
173
 	installation of <application>&virtualbox;</application>.
174
@@ -1066,6 +1156,21 @@
174
@@ -1066,6 +1156,21 @@
175
 
175
 
176
       <screen>&prompt.root; <userinput>pw groupmod vboxusers -m <replaceable>yourusername</replaceable></userinput></screen>
176
       <screen>&prompt.root; <userinput>pw groupmod vboxusers -m <replaceable>yourusername</replaceable></userinput></screen>
177
 
177
 
178
+      <para>The default permissions for <filename
178
+      <para>The default permissions for <filename
179
+	  class="devicefile">/dev/vboxnetctl</filename> are restrictive and
179
+	  class="devicefile">/dev/vboxnetctl</filename> are restrictive and
180
+	will need to be changed for bridged networking.</para>
180
+	need to be changed for bridged networking.</para>
181
+
181
+
182
+      <para>To test it temporarily:</para>
182
+      <para>To test it temporarily:</para>
183
+
183
+
184
+      <screen>&prompt.root; <userinput>chown root:vboxusers /dev/vboxnetctl</userinput>
184
+      <screen>&prompt.root; <userinput>chown root:vboxusers /dev/vboxnetctl</userinput>
185
+&prompt.root; <userinput>chmod 0660 /dev/vboxnetctl</userinput></screen>
185
+&prompt.root; <userinput>chmod 0660 /dev/vboxnetctl</userinput></screen>
186
+
186
+
187
+      <para>To make the permissions change permanent, add the following
187
+      <para>To make the permissions change permanent, add these
188
+	lines to <filename>/etc/devfs.conf</filename>:
188
+	lines to <filename>/etc/devfs.conf</filename>:
189
+
189
+
190
+      <programlisting>own     vboxnetctl root:vboxusers
190
+      <programlisting>own     vboxnetctl root:vboxusers
191
+perm    vboxnetctl 0660</programlisting>
191
+perm    vboxnetctl 0660</programlisting>
192
+
192
+
193
       <para>To launch <application>&virtualbox;</application>, either select
193
       <para>To launch <application>&virtualbox;</application>, either select
194
 	the <guimenuitem>Sun VirtualBox</guimenuitem> item from your
194
 	the <guimenuitem>Sun VirtualBox</guimenuitem> item from the
195
 	graphic environment's menu, or type the following in a
195
 	graphic environment's menu, or type the following in a
196
@@ -1081,6 +1186,71 @@
196
@@ -1081,6 +1186,71 @@
197
 	visit the relevant page in the &os; wiki, at <ulink
197
 	visit the relevant page in the &os; wiki, at <ulink

Return to bug 162961