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="guestadditions">
|
---|
8 |
|
---|
9 | <title>Guest Additions</title>
|
---|
10 |
|
---|
11 | <para>
|
---|
12 | The previous chapter covered getting started with &product-name; and
|
---|
13 | installing operating systems in a virtual machine. For any serious
|
---|
14 | and interactive use, the &product-name; Guest Additions will make
|
---|
15 | your life much easier by providing closer integration between host
|
---|
16 | and guest and improving the interactive performance of guest
|
---|
17 | systems. This chapter describes the Guest Additions in detail.
|
---|
18 | </para>
|
---|
19 |
|
---|
20 | <sect1 id="guestadd-intro">
|
---|
21 |
|
---|
22 | <title>Introduction to Guest Additions</title>
|
---|
23 |
|
---|
24 | <para>
|
---|
25 | As mentioned in <xref linkend="virtintro" />, the Guest Additions
|
---|
26 | are designed to be installed <emphasis>inside</emphasis> a virtual
|
---|
27 | machine after the guest operating system has been installed. They
|
---|
28 | consist of device drivers and system applications that optimize
|
---|
29 | the guest operating system for better performance and usability.
|
---|
30 | See <xref linkend="guestossupport" /> for details on what guest
|
---|
31 | operating systems are fully supported with Guest Additions by
|
---|
32 | &product-name;.
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | <para>
|
---|
36 | The &product-name; Guest Additions for all supported guest
|
---|
37 | operating systems are provided as a single CD-ROM image file which
|
---|
38 | is called <filename>VBoxGuestAdditions.iso</filename>. This image
|
---|
39 | file is located in the installation directory of &product-name;.
|
---|
40 | To install the Guest Additions for a particular VM, you mount this
|
---|
41 | ISO file in your VM as a virtual CD-ROM and install from there.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | <para>
|
---|
45 | The Guest Additions offer the following features:
|
---|
46 | </para>
|
---|
47 |
|
---|
48 | <itemizedlist>
|
---|
49 |
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | <emphasis role="bold">Mouse pointer integration</emphasis>. To
|
---|
53 | overcome the limitations for mouse support described in
|
---|
54 | <xref linkend="keyb_mouse_normal" />, this feature provides
|
---|
55 | you with seamless mouse support. You will only have one mouse
|
---|
56 | pointer and pressing the Host key is no longer required to
|
---|
57 | <emphasis>free</emphasis> the mouse from being captured by the
|
---|
58 | guest OS. To make this work, a special mouse driver is
|
---|
59 | installed in the guest that communicates with the physical
|
---|
60 | mouse driver on your host and moves the guest mouse pointer
|
---|
61 | accordingly.
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 |
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | <emphasis role="bold">Shared folders.</emphasis> These provide
|
---|
68 | an easy way to exchange files between the host and the guest.
|
---|
69 | Much like ordinary Windows network shares, you can tell
|
---|
70 | &product-name; to treat a certain host directory as a shared
|
---|
71 | folder, and &product-name; will make it available to the guest
|
---|
72 | operating system as a network share, irrespective of whether
|
---|
73 | the guest actually has a network. See
|
---|
74 | <xref linkend="sharedfolders" />.
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 |
|
---|
78 | <listitem>
|
---|
79 | <para>
|
---|
80 | <emphasis role="bold">Better video support.</emphasis> While
|
---|
81 | the virtual graphics card which &product-name; emulates for
|
---|
82 | any guest operating system provides all the basic features,
|
---|
83 | the custom video drivers that are installed with the Guest
|
---|
84 | Additions provide you with extra high and non-standard video
|
---|
85 | modes, as well as accelerated video performance.
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <para>
|
---|
89 | In addition, with Windows, Linux, and Oracle Solaris guests,
|
---|
90 | you can resize the virtual machine's window if the Guest
|
---|
91 | Additions are installed. The video resolution in the guest
|
---|
92 | will be automatically adjusted, as if you had manually entered
|
---|
93 | an arbitrary resolution in the guest's
|
---|
94 | <emphasis role="bold">Display</emphasis> settings. See
|
---|
95 | <xref linkend="intro-resize-window" />.
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | If the Guest Additions are installed, 3D graphics and 2D video
|
---|
100 | for guest applications can be accelerated. See
|
---|
101 | <xref linkend="guestadd-video" />.
|
---|
102 | </para>
|
---|
103 | </listitem>
|
---|
104 |
|
---|
105 | <listitem>
|
---|
106 | <para>
|
---|
107 | <emphasis role="bold">Seamless windows.</emphasis> With this
|
---|
108 | feature, the individual windows that are displayed on the
|
---|
109 | desktop of the virtual machine can be mapped on the host's
|
---|
110 | desktop, as if the underlying application was actually running
|
---|
111 | on the host. See <xref linkend="seamlesswindows" />.
|
---|
112 | </para>
|
---|
113 | </listitem>
|
---|
114 |
|
---|
115 | <listitem>
|
---|
116 | <para>
|
---|
117 | <emphasis role="bold">Generic host/guest communication
|
---|
118 | channels.</emphasis> The Guest Additions enable you to control
|
---|
119 | and monitor guest execution. The <emphasis>guest
|
---|
120 | properties</emphasis> provide a generic string-based mechanism
|
---|
121 | to exchange data bits between a guest and a host, some of
|
---|
122 | which have special meanings for controlling and monitoring the
|
---|
123 | guest. See <xref linkend="guestadd-guestprops" />.
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <para>
|
---|
127 | Additionally, applications can be started in a guest from the
|
---|
128 | host. See <xref linkend="guestadd-guestcontrol" />.
|
---|
129 | </para>
|
---|
130 | </listitem>
|
---|
131 |
|
---|
132 | <listitem>
|
---|
133 | <para>
|
---|
134 | <emphasis role="bold">Time synchronization.</emphasis> With
|
---|
135 | the Guest Additions installed, &product-name; can ensure that
|
---|
136 | the guest's system time is better synchronized with that of
|
---|
137 | the host.
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | For various reasons, the time in the guest might run at a
|
---|
142 | slightly different rate than the time on the host. The host
|
---|
143 | could be receiving updates through NTP and its own time might
|
---|
144 | not run linearly. A VM could also be paused, which stops the
|
---|
145 | flow of time in the guest for a shorter or longer period of
|
---|
146 | time. When the wall clock time between the guest and host only
|
---|
147 | differs slightly, the time synchronization service attempts to
|
---|
148 | gradually and smoothly adjust the guest time in small
|
---|
149 | increments to either catch up or lose time. When the
|
---|
150 | difference is too great, for example if a VM paused for hours
|
---|
151 | or restored from saved state, the guest time is changed
|
---|
152 | immediately, without a gradual adjustment.
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | The Guest Additions will resynchronize the time regularly. See
|
---|
157 | <xref linkend="changetimesync" /> for how to configure the
|
---|
158 | parameters of the time synchronization mechanism.
|
---|
159 | </para>
|
---|
160 | </listitem>
|
---|
161 |
|
---|
162 | <listitem>
|
---|
163 | <para>
|
---|
164 | <emphasis role="bold">Shared clipboard.</emphasis> With the
|
---|
165 | Guest Additions installed, the clipboard of the guest
|
---|
166 | operating system can optionally be shared with your host
|
---|
167 | operating system. See <xref linkend="generalsettings" />.
|
---|
168 | </para>
|
---|
169 | </listitem>
|
---|
170 |
|
---|
171 | <listitem>
|
---|
172 | <para>
|
---|
173 | <emphasis role="bold">Automated logins.</emphasis> Also called
|
---|
174 | credentials passing. See <xref linkend="autologon" />.
|
---|
175 | </para>
|
---|
176 | </listitem>
|
---|
177 |
|
---|
178 | </itemizedlist>
|
---|
179 |
|
---|
180 | <para>
|
---|
181 | Each version of &product-name;, even minor releases, ship with
|
---|
182 | their own version of the Guest Additions. While the interfaces
|
---|
183 | through which the &product-name; core communicates with the Guest
|
---|
184 | Additions are kept stable so that Guest Additions already
|
---|
185 | installed in a VM should continue to work when &product-name; is
|
---|
186 | upgraded on the host, for best results, it is recommended to keep
|
---|
187 | the Guest Additions at the same version.
|
---|
188 | </para>
|
---|
189 |
|
---|
190 | <para>
|
---|
191 | The Windows and Linux Guest Additions therefore check
|
---|
192 | automatically whether they have to be updated. If the host is
|
---|
193 | running a newer &product-name; version than the Guest Additions, a
|
---|
194 | notification with further instructions is displayed in the guest.
|
---|
195 | </para>
|
---|
196 |
|
---|
197 | <para>
|
---|
198 | To disable this update check for the Guest Additions of a given
|
---|
199 | virtual machine, set the value of its
|
---|
200 | <literal>/VirtualBox/GuestAdd/CheckHostVersion</literal> guest
|
---|
201 | property to <literal>0</literal>. See
|
---|
202 | <xref linkend="guestadd-guestprops" />.
|
---|
203 | </para>
|
---|
204 |
|
---|
205 | </sect1>
|
---|
206 |
|
---|
207 | <sect1 id="guestadd-install">
|
---|
208 |
|
---|
209 | <title>Installing and Maintaining Guest Additions</title>
|
---|
210 |
|
---|
211 | <para>
|
---|
212 | Guest Additions are available for virtual machines running
|
---|
213 | Windows, Linux, Oracle Solaris, or OS/2. The following sections
|
---|
214 | describe the specifics of each variant in detail.
|
---|
215 | </para>
|
---|
216 |
|
---|
217 | <sect2 id="additions-windows">
|
---|
218 |
|
---|
219 | <title>Guest Additions for Windows</title>
|
---|
220 |
|
---|
221 | <para>
|
---|
222 | The &product-name; Windows Guest Additions are designed to be
|
---|
223 | installed in a virtual machine running a Windows operating
|
---|
224 | system. The following versions of Windows guests are supported:
|
---|
225 | </para>
|
---|
226 |
|
---|
227 | <itemizedlist>
|
---|
228 |
|
---|
229 | <listitem>
|
---|
230 | <para>
|
---|
231 | Microsoft Windows NT 4.0 (any service pack)
|
---|
232 | </para>
|
---|
233 | </listitem>
|
---|
234 |
|
---|
235 | <listitem>
|
---|
236 | <para>
|
---|
237 | Microsoft Windows 2000 (any service pack)
|
---|
238 | </para>
|
---|
239 | </listitem>
|
---|
240 |
|
---|
241 | <listitem>
|
---|
242 | <para>
|
---|
243 | Microsoft Windows XP (any service pack)
|
---|
244 | </para>
|
---|
245 | </listitem>
|
---|
246 |
|
---|
247 | <listitem>
|
---|
248 | <para>
|
---|
249 | Microsoft Windows Server 2003 (any service pack)
|
---|
250 | </para>
|
---|
251 | </listitem>
|
---|
252 |
|
---|
253 | <listitem>
|
---|
254 | <para>
|
---|
255 | Microsoft Windows Server 2008
|
---|
256 | </para>
|
---|
257 | </listitem>
|
---|
258 |
|
---|
259 | <listitem>
|
---|
260 | <para>
|
---|
261 | Microsoft Windows Vista (all editions)
|
---|
262 | </para>
|
---|
263 | </listitem>
|
---|
264 |
|
---|
265 | <listitem>
|
---|
266 | <para>
|
---|
267 | Microsoft Windows 7 (all editions)
|
---|
268 | </para>
|
---|
269 | </listitem>
|
---|
270 |
|
---|
271 | <listitem>
|
---|
272 | <para>
|
---|
273 | Microsoft Windows 8 (all editions)
|
---|
274 | </para>
|
---|
275 | </listitem>
|
---|
276 |
|
---|
277 | <listitem>
|
---|
278 | <para>
|
---|
279 | Microsoft Windows 10 RTM build 10240
|
---|
280 | </para>
|
---|
281 | </listitem>
|
---|
282 |
|
---|
283 | <listitem>
|
---|
284 | <para>
|
---|
285 | Microsoft Windows Server 2012
|
---|
286 | </para>
|
---|
287 | </listitem>
|
---|
288 |
|
---|
289 | </itemizedlist>
|
---|
290 |
|
---|
291 | <sect3 id="mountingadditionsiso">
|
---|
292 |
|
---|
293 | <title>Installing the Windows Guest Additions</title>
|
---|
294 |
|
---|
295 | <para>
|
---|
296 | In the <emphasis role="bold">Devices</emphasis> menu in the
|
---|
297 | virtual machine's menu bar, &product-name; has a menu item
|
---|
298 | <emphasis role="bold">Insert Guest Additions CD
|
---|
299 | Image</emphasis>, which mounts the Guest Additions ISO file
|
---|
300 | inside your virtual machine. A Windows guest should then
|
---|
301 | automatically start the Guest Additions installer, which
|
---|
302 | installs the Guest Additions on your Windows guest.
|
---|
303 | </para>
|
---|
304 |
|
---|
305 | <para>
|
---|
306 | For other guest operating systems, or if automatic start of
|
---|
307 | software on a CD is disabled, you need to do a manual start of
|
---|
308 | the installer.
|
---|
309 | </para>
|
---|
310 |
|
---|
311 | <note>
|
---|
312 | <para>
|
---|
313 | For the basic Direct3D acceleration to work in a Windows
|
---|
314 | guest, you have to install the WDDM video driver available
|
---|
315 | for Windows Vista or later.
|
---|
316 | </para>
|
---|
317 |
|
---|
318 | <para>
|
---|
319 | For Windows 8 and later, only the WDDM Direct3D video driver
|
---|
320 | is available. For basic Direct3D acceleration to work in
|
---|
321 | Windows XP guests, you have to install the Guest Additions
|
---|
322 | in Safe Mode. See <xref linkend="KnownIssues" /> for
|
---|
323 | details.
|
---|
324 | </para>
|
---|
325 | </note>
|
---|
326 |
|
---|
327 | <para>
|
---|
328 | If you prefer to mount the Guest Additions manually, you can
|
---|
329 | perform the following steps:
|
---|
330 | </para>
|
---|
331 |
|
---|
332 | <orderedlist>
|
---|
333 |
|
---|
334 | <listitem>
|
---|
335 | <para>
|
---|
336 | Start the virtual machine in which you have installed
|
---|
337 | Windows.
|
---|
338 | </para>
|
---|
339 | </listitem>
|
---|
340 |
|
---|
341 | <listitem>
|
---|
342 | <para>
|
---|
343 | Select <emphasis role="bold">Optical Drives</emphasis>
|
---|
344 | from the <emphasis role="bold">Devices</emphasis> menu in
|
---|
345 | the virtual machine's menu bar and then
|
---|
346 | <emphasis role="bold">Choose/Create a Disk
|
---|
347 | Image</emphasis>. This displays the Virtual Media Manager,
|
---|
348 | described in <xref linkend="vdis" />.
|
---|
349 | </para>
|
---|
350 | </listitem>
|
---|
351 |
|
---|
352 | <listitem>
|
---|
353 | <para>
|
---|
354 | In the Virtual Media Manager, click
|
---|
355 | <emphasis role="bold">Add</emphasis> and browse your host
|
---|
356 | file system for the
|
---|
357 | <filename>VBoxGuestAdditions.iso</filename> file.
|
---|
358 | </para>
|
---|
359 |
|
---|
360 | <itemizedlist>
|
---|
361 |
|
---|
362 | <listitem>
|
---|
363 | <para>
|
---|
364 | On a Windows host, this file is in the &product-name;
|
---|
365 | installation directory, usually in
|
---|
366 | <filename>C:\Program
|
---|
367 | files\Oracle\VirtualBox</filename>.
|
---|
368 | </para>
|
---|
369 | </listitem>
|
---|
370 |
|
---|
371 | <listitem>
|
---|
372 | <para>
|
---|
373 | On Mac OS X hosts, this file is in the application
|
---|
374 | bundle of &product-name;. Right-click on the
|
---|
375 | &product-name; icon in Finder and choose
|
---|
376 | <emphasis role="bold">Show Package
|
---|
377 | Contents</emphasis>. The file is located in the
|
---|
378 | <filename>Contents/MacOS</filename> folder.
|
---|
379 | </para>
|
---|
380 | </listitem>
|
---|
381 |
|
---|
382 | <listitem>
|
---|
383 | <para>
|
---|
384 | On a Linux host, this file is in the
|
---|
385 | <filename>additions</filename> folder where you
|
---|
386 | installed &product-name;, usually
|
---|
387 | <filename>/opt/VirtualBox/</filename>.
|
---|
388 | </para>
|
---|
389 | </listitem>
|
---|
390 |
|
---|
391 | <listitem>
|
---|
392 | <para>
|
---|
393 | On Oracle Solaris hosts, this file is in the
|
---|
394 | <filename>additions</filename> folder where you
|
---|
395 | installed &product-name;, usually
|
---|
396 | <filename>/opt/VirtualBox</filename>.
|
---|
397 | </para>
|
---|
398 | </listitem>
|
---|
399 |
|
---|
400 | </itemizedlist>
|
---|
401 | </listitem>
|
---|
402 |
|
---|
403 | <listitem>
|
---|
404 | <para>
|
---|
405 | In the Virtual Media Manager, select the ISO file and
|
---|
406 | click the <emphasis role="bold">Add</emphasis> button.
|
---|
407 | This mounts the ISO file and presents it to your Windows
|
---|
408 | guest as a CD-ROM.
|
---|
409 | </para>
|
---|
410 | </listitem>
|
---|
411 |
|
---|
412 | </orderedlist>
|
---|
413 |
|
---|
414 | <para>
|
---|
415 | Unless you have the Autostart feature disabled in your Windows
|
---|
416 | guest, Windows will now autostart the &product-name; Guest
|
---|
417 | Additions installation program from the Additions ISO. If the
|
---|
418 | Autostart feature has been turned off, choose
|
---|
419 | <filename>VBoxWindowsAdditions.exe</filename> from the CD/DVD
|
---|
420 | drive inside the guest to start the installer.
|
---|
421 | </para>
|
---|
422 |
|
---|
423 | <para>
|
---|
424 | The installer will add several device drivers to the Windows
|
---|
425 | driver database and then invoke the hardware detection wizard.
|
---|
426 | </para>
|
---|
427 |
|
---|
428 | <para>
|
---|
429 | Depending on your configuration, it might display warnings
|
---|
430 | that the drivers are not digitally signed. You must confirm
|
---|
431 | these in order to continue the installation and properly
|
---|
432 | install the Additions.
|
---|
433 | </para>
|
---|
434 |
|
---|
435 | <para>
|
---|
436 | After installation, reboot your guest operating system to
|
---|
437 | activate the Additions.
|
---|
438 | </para>
|
---|
439 |
|
---|
440 | </sect3>
|
---|
441 |
|
---|
442 | <sect3 id="additions-windows-updating">
|
---|
443 |
|
---|
444 | <title>Updating the Windows Guest Additions</title>
|
---|
445 |
|
---|
446 | <para>
|
---|
447 | Windows Guest Additions can be updated by running the
|
---|
448 | installation program again. This replaces the previous
|
---|
449 | Additions drivers with updated versions.
|
---|
450 | </para>
|
---|
451 |
|
---|
452 | <para>
|
---|
453 | Alternatively, you can also open the Windows Device Manager
|
---|
454 | and select <emphasis role="bold">Update Driver...</emphasis>
|
---|
455 | for the following devices:
|
---|
456 | </para>
|
---|
457 |
|
---|
458 | <itemizedlist>
|
---|
459 |
|
---|
460 | <listitem>
|
---|
461 | <para>
|
---|
462 | &product-name; Graphics Adapter
|
---|
463 | </para>
|
---|
464 | </listitem>
|
---|
465 |
|
---|
466 | <listitem>
|
---|
467 | <para>
|
---|
468 | &product-name; System Device
|
---|
469 | </para>
|
---|
470 | </listitem>
|
---|
471 |
|
---|
472 | </itemizedlist>
|
---|
473 |
|
---|
474 | <para>
|
---|
475 | For each, choose the option to provide your own driver, click
|
---|
476 | <emphasis role="bold">Have Disk</emphasis> and navigate to the
|
---|
477 | CD-ROM drive with the Guest Additions.
|
---|
478 | </para>
|
---|
479 |
|
---|
480 | </sect3>
|
---|
481 |
|
---|
482 | <sect3 id="additions-windows-install-unattended">
|
---|
483 |
|
---|
484 | <title>Unattended Installation</title>
|
---|
485 |
|
---|
486 | <para>
|
---|
487 | To avoid popups when performing an unattended installation of
|
---|
488 | the &product-name; Guest Additions, the code signing
|
---|
489 | certificates used to sign the drivers needs to be installed in
|
---|
490 | the correct certificate stores on the guest operating system.
|
---|
491 | Failure to do this will cause a typical Windows installation
|
---|
492 | to display multiple dialogs asking whether you want to install
|
---|
493 | a particular driver.
|
---|
494 | </para>
|
---|
495 |
|
---|
496 | <note>
|
---|
497 | <para>
|
---|
498 | On some Windows versions, such as Windows 2000 and Windows
|
---|
499 | XP, the user intervention popups mentioned above are always
|
---|
500 | displayed, even after importing the Oracle certificates.
|
---|
501 | </para>
|
---|
502 | </note>
|
---|
503 |
|
---|
504 | <para>
|
---|
505 | Installing the code signing certificates on a Windows guest
|
---|
506 | can be done automatically. Use the
|
---|
507 | <filename>VBoxCertUtil.exe</filename> utility from the
|
---|
508 | <filename>cert</filename> folder on the Guest Additions
|
---|
509 | installation CD.
|
---|
510 | </para>
|
---|
511 |
|
---|
512 | <para>
|
---|
513 | Use the following steps:
|
---|
514 | </para>
|
---|
515 |
|
---|
516 | <orderedlist>
|
---|
517 |
|
---|
518 | <listitem>
|
---|
519 | <para>
|
---|
520 | Log in as Administrator on the guest.
|
---|
521 | </para>
|
---|
522 | </listitem>
|
---|
523 |
|
---|
524 | <listitem>
|
---|
525 | <para>
|
---|
526 | Mount the &product-name; Guest Additions .ISO.
|
---|
527 | </para>
|
---|
528 | </listitem>
|
---|
529 |
|
---|
530 | <listitem>
|
---|
531 | <para>
|
---|
532 | Open a command line window on the guest and change to the
|
---|
533 | <filename>cert</filename> folder on the &product-name;
|
---|
534 | Guest Additions CD.
|
---|
535 | </para>
|
---|
536 | </listitem>
|
---|
537 |
|
---|
538 | <listitem>
|
---|
539 | <para>
|
---|
540 | Run the following command:
|
---|
541 | </para>
|
---|
542 |
|
---|
543 | <screen>VBoxCertUtil.exe add-trusted-publisher vbox*.cer --root vbox*.cer</screen>
|
---|
544 |
|
---|
545 | <para>
|
---|
546 | This command installs the certificates to the certificate
|
---|
547 | store. When installing the same certificate more than
|
---|
548 | once, an appropriate error will be displayed.
|
---|
549 | </para>
|
---|
550 | </listitem>
|
---|
551 |
|
---|
552 | </orderedlist>
|
---|
553 |
|
---|
554 | <para>
|
---|
555 | To allow for completely unattended guest installations, you
|
---|
556 | can specify a command line parameter to the install launcher:
|
---|
557 | </para>
|
---|
558 |
|
---|
559 | <screen>VBoxWindowsAdditions.exe /S</screen>
|
---|
560 |
|
---|
561 | <para>
|
---|
562 | This automatically installs the right files and drivers for
|
---|
563 | the corresponding platform, either 32-bit or 64-bit.
|
---|
564 | </para>
|
---|
565 |
|
---|
566 | <note>
|
---|
567 | <para>
|
---|
568 | By default on an unattended installation on a Vista or
|
---|
569 | Windows 7 guest, there will be the XPDM graphics driver
|
---|
570 | installed. This graphics driver does not support Windows
|
---|
571 | Aero / Direct3D on the guest. Instead, the WDDM graphics
|
---|
572 | driver needs to be installed. To select this driver by
|
---|
573 | default, add the command line parameter
|
---|
574 | <literal>/with_wddm</literal> when invoking the Windows
|
---|
575 | Guest Additions installer. This is only required for Vista
|
---|
576 | and Windows 7.
|
---|
577 | </para>
|
---|
578 | </note>
|
---|
579 |
|
---|
580 | <note>
|
---|
581 | <para>
|
---|
582 | For Windows Aero to run correctly on a guest, the guest's
|
---|
583 | VRAM size needs to be configured to at least 128 MB.
|
---|
584 | </para>
|
---|
585 | </note>
|
---|
586 |
|
---|
587 | <para>
|
---|
588 | For more options regarding unattended guest installations,
|
---|
589 | consult the command line help by using the command:
|
---|
590 | </para>
|
---|
591 |
|
---|
592 | <screen>VBoxWindowsAdditions.exe /?</screen>
|
---|
593 |
|
---|
594 | </sect3>
|
---|
595 |
|
---|
596 | <sect3 id="windows-guest-file-extraction">
|
---|
597 |
|
---|
598 | <title>Manual File Extraction</title>
|
---|
599 |
|
---|
600 | <para>
|
---|
601 | If you would like to install the files and drivers manually,
|
---|
602 | you can extract the files from the Windows Guest Additions
|
---|
603 | setup as follows:
|
---|
604 | </para>
|
---|
605 |
|
---|
606 | <screen>VBoxWindowsAdditions.exe /extract</screen>
|
---|
607 |
|
---|
608 | <para>
|
---|
609 | To explicitly extract the Windows Guest Additions for another
|
---|
610 | platform than the current running one, such as 64-bit files on
|
---|
611 | a 32-bit system, you must use the appropriate platform
|
---|
612 | installer. Use
|
---|
613 | <filename>VBoxWindowsAdditions-x86.exe</filename> or
|
---|
614 | <filename>VBoxWindowsAdditions-amd64.exe</filename> with the
|
---|
615 | <literal>/extract</literal> parameter.
|
---|
616 | </para>
|
---|
617 |
|
---|
618 | </sect3>
|
---|
619 |
|
---|
620 | </sect2>
|
---|
621 |
|
---|
622 | <sect2 id="additions-linux">
|
---|
623 |
|
---|
624 | <title>Guest Additions for Linux</title>
|
---|
625 |
|
---|
626 | <para>
|
---|
627 | Like the Windows Guest Additions, the &product-name; Guest
|
---|
628 | Additions for Linux are a set of device drivers and system
|
---|
629 | applications which may be installed in the guest operating
|
---|
630 | system.
|
---|
631 | </para>
|
---|
632 |
|
---|
633 | <para>
|
---|
634 | The following Linux distributions are officially supported:
|
---|
635 | </para>
|
---|
636 |
|
---|
637 | <itemizedlist>
|
---|
638 |
|
---|
639 | <listitem>
|
---|
640 | <para>
|
---|
641 | Oracle Linux as of version 5, including UEK kernels
|
---|
642 | </para>
|
---|
643 | </listitem>
|
---|
644 |
|
---|
645 | <listitem>
|
---|
646 | <para>
|
---|
647 | Fedora as of Fedora Core 4
|
---|
648 | </para>
|
---|
649 | </listitem>
|
---|
650 |
|
---|
651 | <listitem>
|
---|
652 | <para>
|
---|
653 | Red Hat Enterprise Linux as of version 3
|
---|
654 | </para>
|
---|
655 | </listitem>
|
---|
656 |
|
---|
657 | <listitem>
|
---|
658 | <para>
|
---|
659 | SUSE and openSUSE Linux as of version 9
|
---|
660 | </para>
|
---|
661 | </listitem>
|
---|
662 |
|
---|
663 | <listitem>
|
---|
664 | <para>
|
---|
665 | Ubuntu as of version 5.10
|
---|
666 | </para>
|
---|
667 | </listitem>
|
---|
668 |
|
---|
669 | </itemizedlist>
|
---|
670 |
|
---|
671 | <para>
|
---|
672 | Many other distributions are known to work with the Guest
|
---|
673 | Additions.
|
---|
674 | </para>
|
---|
675 |
|
---|
676 | <para>
|
---|
677 | The version of the Linux kernel supplied by default in SUSE and
|
---|
678 | openSUSE 10.2, Ubuntu 6.10 (all versions) and Ubuntu 6.06
|
---|
679 | (server edition) contains a bug which can cause it to crash
|
---|
680 | during startup when it is run in a virtual machine. The Guest
|
---|
681 | Additions work in those distributions.
|
---|
682 | </para>
|
---|
683 |
|
---|
684 | <para>
|
---|
685 | Note that some Linux distributions already come with all or part
|
---|
686 | of the &product-name; Guest Additions. You may choose to keep
|
---|
687 | the distribution's version of the Guest Additions but these are
|
---|
688 | often not up to date and limited in functionality, so we
|
---|
689 | recommend replacing them with the Guest Additions that come with
|
---|
690 | &product-name;. The &product-name; Linux Guest Additions
|
---|
691 | installer tries to detect an existing installation and replace
|
---|
692 | them but depending on how the distribution integrates the Guest
|
---|
693 | Additions, this may require some manual interaction. It is
|
---|
694 | highly recommended to take a snapshot of the virtual machine
|
---|
695 | before replacing preinstalled Guest Additions.
|
---|
696 | </para>
|
---|
697 |
|
---|
698 | <sect3 id="additions-linux-install">
|
---|
699 |
|
---|
700 | <title>Installing the Linux Guest Additions</title>
|
---|
701 |
|
---|
702 | <para>
|
---|
703 | The &product-name; Guest Additions for Linux are provided on
|
---|
704 | the same virtual CD-ROM file as the Guest Additions for
|
---|
705 | Windows. See <xref linkend="mountingadditionsiso"/>. They also
|
---|
706 | come with an installation program that guides you through the
|
---|
707 | setup process. However, due to the significant differences
|
---|
708 | between Linux distributions, installation may be slightly more
|
---|
709 | complex when compared to Windows.
|
---|
710 | </para>
|
---|
711 |
|
---|
712 | <para>
|
---|
713 | Installation generally involves the following steps:
|
---|
714 | </para>
|
---|
715 |
|
---|
716 | <orderedlist>
|
---|
717 |
|
---|
718 | <listitem>
|
---|
719 | <para>
|
---|
720 | Before installing the Guest Additions, you prepare your
|
---|
721 | guest system for building external kernel modules. This
|
---|
722 | works as described in
|
---|
723 | <xref linkend="externalkernelmodules" />, except that this
|
---|
724 | step must be performed in your Linux
|
---|
725 | <emphasis>guest</emphasis> instead of on a Linux host
|
---|
726 | system.
|
---|
727 | </para>
|
---|
728 |
|
---|
729 | <para>
|
---|
730 | If you suspect that something has gone wrong, check that
|
---|
731 | your guest is set up correctly and run the following
|
---|
732 | command as root:
|
---|
733 | </para>
|
---|
734 |
|
---|
735 | <screen>rcvboxadd setup</screen>
|
---|
736 | </listitem>
|
---|
737 |
|
---|
738 | <listitem>
|
---|
739 | <para>
|
---|
740 | Insert the <filename>VBoxGuestAdditions.iso</filename> CD
|
---|
741 | file into your Linux guest's virtual CD-ROM drive, as
|
---|
742 | described for a Windows guest in
|
---|
743 | <xref linkend="mountingadditionsiso" />.
|
---|
744 | </para>
|
---|
745 | </listitem>
|
---|
746 |
|
---|
747 | <listitem>
|
---|
748 | <para>
|
---|
749 | Change to the directory where your CD-ROM drive is mounted
|
---|
750 | and run the following command as root:
|
---|
751 | </para>
|
---|
752 |
|
---|
753 | <screen>sh ./VBoxLinuxAdditions.run</screen>
|
---|
754 | </listitem>
|
---|
755 |
|
---|
756 | </orderedlist>
|
---|
757 |
|
---|
758 | </sect3>
|
---|
759 |
|
---|
760 | <sect3 id="additions-linux-graphics-mouse">
|
---|
761 |
|
---|
762 | <title>Graphics and Mouse Integration</title>
|
---|
763 |
|
---|
764 | <para>
|
---|
765 | In Linux and Oracle Solaris guests, &product-name; graphics
|
---|
766 | and mouse integration goes through the X Window System.
|
---|
767 | &product-name; can use the X.Org variant of the system, or
|
---|
768 | XFree86 version 4.3 which is identical to the first X.Org
|
---|
769 | release. During the installation process, the X.Org display
|
---|
770 | server will be set up to use the graphics and mouse drivers
|
---|
771 | which come with the Guest Additions.
|
---|
772 | </para>
|
---|
773 |
|
---|
774 | <para>
|
---|
775 | After installing the Guest Additions into a fresh installation
|
---|
776 | of a supported Linux distribution or Oracle Solaris system,
|
---|
777 | many unsupported systems will work correctly too, the guest's
|
---|
778 | graphics mode will change to fit the size of the
|
---|
779 | &product-name; window on the host when it is resized. You can
|
---|
780 | also ask the guest system to switch to a particular resolution
|
---|
781 | by sending a video mode hint using the
|
---|
782 | <command>VBoxManage</command> tool.
|
---|
783 | </para>
|
---|
784 |
|
---|
785 | <para>
|
---|
786 | Multiple guest monitors are supported in guests using the
|
---|
787 | X.Org server version 1.3, which is part of release 7.3 of the
|
---|
788 | X Window System version 11, or a later version. The layout of
|
---|
789 | the guest screens can be adjusted as needed using the tools
|
---|
790 | which come with the guest operating system.
|
---|
791 | </para>
|
---|
792 |
|
---|
793 | <para>
|
---|
794 | If you want to understand more about the details of how the
|
---|
795 | X.Org drivers are set up, in particular if you wish to use
|
---|
796 | them in a setting which our installer does not handle
|
---|
797 | correctly, see <xref linkend="guestxorgsetup" />.
|
---|
798 | </para>
|
---|
799 |
|
---|
800 | </sect3>
|
---|
801 |
|
---|
802 | <sect3 id="additions-linux-updating">
|
---|
803 |
|
---|
804 | <title>Updating the Linux Guest Additions</title>
|
---|
805 |
|
---|
806 | <para>
|
---|
807 | The Guest Additions can simply be updated by going through the
|
---|
808 | installation procedure again with an updated CD-ROM image.
|
---|
809 | This will replace the drivers with updated versions. You
|
---|
810 | should reboot after updating the Guest Additions.
|
---|
811 | </para>
|
---|
812 |
|
---|
813 | </sect3>
|
---|
814 |
|
---|
815 | <sect3 id="additions-linux-uninstall">
|
---|
816 |
|
---|
817 | <title>Uninstalling the Linux Guest Additions</title>
|
---|
818 |
|
---|
819 | <para>
|
---|
820 | If you have a version of the Guest Additions installed on your
|
---|
821 | virtual machine and wish to remove it without installing new
|
---|
822 | ones, you can do so by inserting the Guest Additions CD image
|
---|
823 | into the virtual CD-ROM drive as described above. Then run the
|
---|
824 | installer for the current Guest Additions with the
|
---|
825 | <literal>uninstall</literal> parameter from the path that the
|
---|
826 | CD image is mounted on in the guest, as follows:
|
---|
827 | </para>
|
---|
828 |
|
---|
829 | <screen>sh ./VBoxLinuxAdditions.run uninstall</screen>
|
---|
830 |
|
---|
831 | <para>
|
---|
832 | While this will normally work without issues, you may need to
|
---|
833 | do some manual cleanup of the guest in some cases, especially
|
---|
834 | of the XFree86Config or xorg.conf file. In particular, if the
|
---|
835 | Additions version installed or the guest operating system were
|
---|
836 | very old, or if you made your own changes to the Guest
|
---|
837 | Additions setup after you installed them.
|
---|
838 | </para>
|
---|
839 |
|
---|
840 | <para>
|
---|
841 | You can uninstall the Additions as follows:
|
---|
842 | </para>
|
---|
843 |
|
---|
844 | <screen>/opt/VBoxGuestAdditions-<replaceable>version</replaceable>/uninstall.sh</screen>
|
---|
845 |
|
---|
846 | <para>
|
---|
847 | Replace
|
---|
848 | <filename>/opt/VBoxGuestAdditions-<replaceable>version</replaceable></filename>
|
---|
849 | with the correct Guest Additions installation directory.
|
---|
850 | </para>
|
---|
851 |
|
---|
852 | </sect3>
|
---|
853 |
|
---|
854 | </sect2>
|
---|
855 |
|
---|
856 | <sect2 id="additions-solaris">
|
---|
857 |
|
---|
858 | <title>Guest Additions for Oracle Solaris</title>
|
---|
859 |
|
---|
860 | <para>
|
---|
861 | Like the Windows Guest Additions, the &product-name; Guest
|
---|
862 | Additions for Oracle Solaris take the form of a set of device
|
---|
863 | drivers and system applications which may be installed in the
|
---|
864 | guest operating system.
|
---|
865 | </para>
|
---|
866 |
|
---|
867 | <para>
|
---|
868 | The following Oracle Solaris distributions are officially
|
---|
869 | supported:
|
---|
870 | </para>
|
---|
871 |
|
---|
872 | <itemizedlist>
|
---|
873 |
|
---|
874 | <listitem>
|
---|
875 | <para>
|
---|
876 | Oracle Solaris 11, including Oracle Solaris 11 Express
|
---|
877 | </para>
|
---|
878 | </listitem>
|
---|
879 |
|
---|
880 | <listitem>
|
---|
881 | <para>
|
---|
882 | Oracle Solaris 10 4/08 and later
|
---|
883 | </para>
|
---|
884 | </listitem>
|
---|
885 |
|
---|
886 | </itemizedlist>
|
---|
887 |
|
---|
888 | <para>
|
---|
889 | Other distributions may work if they are based on comparable
|
---|
890 | software releases.
|
---|
891 | </para>
|
---|
892 |
|
---|
893 | <sect3 id="additions-solaris-install">
|
---|
894 |
|
---|
895 | <title>Installing the Oracle Solaris Guest Additions</title>
|
---|
896 |
|
---|
897 | <para>
|
---|
898 | The &product-name; Guest Additions for Oracle Solaris are
|
---|
899 | provided on the same ISO CD-ROM as the Additions for Windows
|
---|
900 | and Linux. They come with an installation program that guides
|
---|
901 | you through the setup process.
|
---|
902 | </para>
|
---|
903 |
|
---|
904 | <para>
|
---|
905 | Installation involves the following steps:
|
---|
906 | </para>
|
---|
907 |
|
---|
908 | <orderedlist>
|
---|
909 |
|
---|
910 | <listitem>
|
---|
911 | <para>
|
---|
912 | Mount the <filename>VBoxGuestAdditions.iso</filename> file
|
---|
913 | as your Oracle Solaris guest's virtual CD-ROM drive,
|
---|
914 | exactly the same way as described for a Windows guest in
|
---|
915 | <xref
|
---|
916 | linkend="mountingadditionsiso" />.
|
---|
917 | </para>
|
---|
918 |
|
---|
919 | <para>
|
---|
920 | If the CD-ROM drive on the guest does not get mounted, as
|
---|
921 | seen with some versions of Oracle Solaris 10, run the
|
---|
922 | following command as root:
|
---|
923 | </para>
|
---|
924 |
|
---|
925 | <screen>svcadm restart volfs</screen>
|
---|
926 | </listitem>
|
---|
927 |
|
---|
928 | <listitem>
|
---|
929 | <para>
|
---|
930 | Change to the directory where your CD-ROM drive is mounted
|
---|
931 | and run the following command as root:
|
---|
932 | </para>
|
---|
933 |
|
---|
934 | <screen>pkgadd -G -d ./VBoxSolarisAdditions.pkg</screen>
|
---|
935 | </listitem>
|
---|
936 |
|
---|
937 | <listitem>
|
---|
938 | <para>
|
---|
939 | Choose <emphasis role="bold">1</emphasis> and confirm
|
---|
940 | installation of the Guest Additions package. After the
|
---|
941 | installation is complete, log out and log in to X server
|
---|
942 | on your guest, to activate the X11 Guest Additions.
|
---|
943 | </para>
|
---|
944 | </listitem>
|
---|
945 |
|
---|
946 | </orderedlist>
|
---|
947 |
|
---|
948 | </sect3>
|
---|
949 |
|
---|
950 | <sect3 id="additions-solaris-uninstall">
|
---|
951 |
|
---|
952 | <title>Uninstalling the Oracle Solaris Guest Additions</title>
|
---|
953 |
|
---|
954 | <para>
|
---|
955 | The Oracle Solaris Guest Additions can be safely removed by
|
---|
956 | removing the package from the guest. Open a root terminal
|
---|
957 | session and run the following command:
|
---|
958 | </para>
|
---|
959 |
|
---|
960 | <screen>pkgrm SUNWvboxguest</screen>
|
---|
961 |
|
---|
962 | </sect3>
|
---|
963 |
|
---|
964 | <sect3 id="additions-solaris-updating">
|
---|
965 |
|
---|
966 | <title>Updating the Oracle Solaris Guest Additions</title>
|
---|
967 |
|
---|
968 | <para>
|
---|
969 | The Guest Additions should be updated by first uninstalling
|
---|
970 | the existing Guest Additions and then installing the new ones.
|
---|
971 | Attempting to install new Guest Additions without removing the
|
---|
972 | existing ones is not possible.
|
---|
973 | </para>
|
---|
974 |
|
---|
975 | </sect3>
|
---|
976 |
|
---|
977 | </sect2>
|
---|
978 |
|
---|
979 | <sect2 id="additions-os2">
|
---|
980 |
|
---|
981 | <title>Guest Additions for OS/2</title>
|
---|
982 |
|
---|
983 | <para>
|
---|
984 | &product-name; also ships with a set of drivers that improve
|
---|
985 | running OS/2 in a virtual machine. Due to restrictions of OS/2
|
---|
986 | itself, this variant of the Guest Additions has a limited
|
---|
987 | feature set. See <xref linkend="KnownIssues" /> for details.
|
---|
988 | </para>
|
---|
989 |
|
---|
990 | <para>
|
---|
991 | The OS/2 Guest Additions are provided on the same ISO CD-ROM as
|
---|
992 | those for the other platforms. Mount the ISO in OS/2 as
|
---|
993 | described previously. The OS/2 Guest Additions are located in
|
---|
994 | the directory <filename>\OS2</filename>.
|
---|
995 | </para>
|
---|
996 |
|
---|
997 | <para>
|
---|
998 | We do not provide an automatic installer at this time. See the
|
---|
999 | <filename>readme.txt</filename> file in the CD-ROM directory,
|
---|
1000 | which describes how to install the OS/2 Guest Additions
|
---|
1001 | manually.
|
---|
1002 | </para>
|
---|
1003 |
|
---|
1004 | </sect2>
|
---|
1005 |
|
---|
1006 | </sect1>
|
---|
1007 |
|
---|
1008 | <sect1 id="sharedfolders">
|
---|
1009 |
|
---|
1010 | <title>Shared Folders</title>
|
---|
1011 |
|
---|
1012 | <para>
|
---|
1013 | With the <emphasis>shared folders</emphasis> feature of
|
---|
1014 | &product-name;, you can access files of your host system from
|
---|
1015 | within the guest system. This is similar to how you would use
|
---|
1016 | network shares in Windows networks, except that shared folders do
|
---|
1017 | not require networking, only the Guest Additions. Shared folders
|
---|
1018 | are supported with Windows 2000 or later, Linux, and Oracle
|
---|
1019 | Solaris guests. &product-name; includes experimental support for
|
---|
1020 | Mac OS X and OS/2 guests.
|
---|
1021 | </para>
|
---|
1022 |
|
---|
1023 | <para>
|
---|
1024 | Shared folders physically reside on the <emphasis>host</emphasis>
|
---|
1025 | and are then shared with the guest, which uses a special file
|
---|
1026 | system driver in the Guest Additions to talk to the host. For
|
---|
1027 | Windows guests, shared folders are implemented as a pseudo-network
|
---|
1028 | redirector. For Linux and Oracle Solaris guests, the Guest
|
---|
1029 | Additions provide a virtual file system.
|
---|
1030 | </para>
|
---|
1031 |
|
---|
1032 | <para>
|
---|
1033 | To share a host folder with a virtual machine in &product-name;,
|
---|
1034 | you must specify the path of the folder and choose a
|
---|
1035 | <emphasis>share name</emphasis> that the guest can use to access
|
---|
1036 | the shared folder. This happens on the host. In the guest you can
|
---|
1037 | then use the share name to connect to it and access files.
|
---|
1038 | </para>
|
---|
1039 |
|
---|
1040 | <para>
|
---|
1041 | There are several ways in which shared folders can be set up for a
|
---|
1042 | virtual machine:
|
---|
1043 | </para>
|
---|
1044 |
|
---|
1045 | <itemizedlist>
|
---|
1046 |
|
---|
1047 | <listitem>
|
---|
1048 | <para>
|
---|
1049 | In the window of a running VM, you select
|
---|
1050 | <emphasis role="bold">Shared Folders</emphasis> from the
|
---|
1051 | <emphasis role="bold">Devices</emphasis> menu, or click on the
|
---|
1052 | folder icon on the status bar in the bottom right corner.
|
---|
1053 | </para>
|
---|
1054 | </listitem>
|
---|
1055 |
|
---|
1056 | <listitem>
|
---|
1057 | <para>
|
---|
1058 | If a VM is not currently running, you can configure shared
|
---|
1059 | folders in the virtual machine's
|
---|
1060 | <emphasis role="bold">Settings</emphasis> dialog.
|
---|
1061 | </para>
|
---|
1062 | </listitem>
|
---|
1063 |
|
---|
1064 | <listitem>
|
---|
1065 | <para>
|
---|
1066 | From the command line, you can create shared folders using
|
---|
1067 | <command>VBoxManage</command>, as follows:
|
---|
1068 | </para>
|
---|
1069 |
|
---|
1070 | <screen>VBoxManage sharedfolder add "VM name" --name "sharename" --hostpath "C:\test"</screen>
|
---|
1071 |
|
---|
1072 | <para>
|
---|
1073 | See <xref linkend="vboxmanage-sharedfolder" />.
|
---|
1074 | </para>
|
---|
1075 | </listitem>
|
---|
1076 |
|
---|
1077 | </itemizedlist>
|
---|
1078 |
|
---|
1079 | <para>
|
---|
1080 | There are two types of shares:
|
---|
1081 | </para>
|
---|
1082 |
|
---|
1083 | <itemizedlist>
|
---|
1084 |
|
---|
1085 | <listitem>
|
---|
1086 | <para>
|
---|
1087 | Permanent shares, that are saved with the VM settings.
|
---|
1088 | </para>
|
---|
1089 | </listitem>
|
---|
1090 |
|
---|
1091 | <listitem>
|
---|
1092 | <para>
|
---|
1093 | Transient shares, that are added at runtime and disappear when
|
---|
1094 | the VM is powered off. These can be created using a check box
|
---|
1095 | in the VirtualBox Manager, or by using the
|
---|
1096 | <option>--transient</option> option of the <command>VBoxManage
|
---|
1097 | sharedfolder add</command> command.
|
---|
1098 | </para>
|
---|
1099 | </listitem>
|
---|
1100 |
|
---|
1101 | </itemizedlist>
|
---|
1102 |
|
---|
1103 | <para>
|
---|
1104 | Shared folders can either be read-write or read-only. This means
|
---|
1105 | that the guest is either allowed to both read and write, or just
|
---|
1106 | read files on the host. By default, shared folders are read-write.
|
---|
1107 | Read-only folders can be created using a check box in the
|
---|
1108 | VirtualBox Manager, or with the <option>--readonly</option> option
|
---|
1109 | of the <command>VBoxManage sharedfolder add</command> command.
|
---|
1110 | </para>
|
---|
1111 |
|
---|
1112 | <para>
|
---|
1113 | &product-name; shared folders also support symbolic links, also
|
---|
1114 | called <emphasis>symlinks</emphasis>, under the following
|
---|
1115 | conditions:
|
---|
1116 | </para>
|
---|
1117 |
|
---|
1118 | <itemizedlist>
|
---|
1119 |
|
---|
1120 | <listitem>
|
---|
1121 | <para>
|
---|
1122 | The host operating system must support symlinks. For example,
|
---|
1123 | a Mac OS X, Linux, or Oracle Solaris host is required.
|
---|
1124 | </para>
|
---|
1125 | </listitem>
|
---|
1126 |
|
---|
1127 | <listitem>
|
---|
1128 | <para>
|
---|
1129 | Currently only Linux and Oracle Solaris Guest Additions
|
---|
1130 | support symlinks.
|
---|
1131 | </para>
|
---|
1132 | </listitem>
|
---|
1133 |
|
---|
1134 | <listitem>
|
---|
1135 | <para>
|
---|
1136 | For security reasons the guest OS is not allowed to create
|
---|
1137 | symlinks by default. If you trust the guest OS to not abuse
|
---|
1138 | the functionality, you can enable creation of symlinks for a
|
---|
1139 | shared folder as follows:
|
---|
1140 | </para>
|
---|
1141 |
|
---|
1142 | <screen>VBoxManage setextradata "VM name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/<replaceable>sharename</replaceable> 1</screen>
|
---|
1143 | </listitem>
|
---|
1144 |
|
---|
1145 | </itemizedlist>
|
---|
1146 |
|
---|
1147 | <sect2 id="sf_mount_manual">
|
---|
1148 |
|
---|
1149 | <title>Manual Mounting</title>
|
---|
1150 |
|
---|
1151 | <para>
|
---|
1152 | You can mount the shared folder from inside a VM, in the same
|
---|
1153 | way as you would mount an ordinary network share:
|
---|
1154 | </para>
|
---|
1155 |
|
---|
1156 | <itemizedlist>
|
---|
1157 |
|
---|
1158 | <listitem>
|
---|
1159 | <para>
|
---|
1160 | In a Windows guest, shared folders are browseable and
|
---|
1161 | therefore visible in Windows Explorer. To attach the host's
|
---|
1162 | shared folder to your Windows guest, open Windows Explorer
|
---|
1163 | and look for the folder in <emphasis role="bold">My
|
---|
1164 | Networking Places</emphasis>, <emphasis role="bold">Entire
|
---|
1165 | Network</emphasis>, <emphasis role="bold">&product-name;
|
---|
1166 | Shared Folders</emphasis>. By right-clicking on a shared
|
---|
1167 | folder and selecting <emphasis role="bold">Map Network
|
---|
1168 | Drive</emphasis> from the menu that pops up, you can assign
|
---|
1169 | a drive letter to that shared folder.
|
---|
1170 | </para>
|
---|
1171 |
|
---|
1172 | <para>
|
---|
1173 | Alternatively, on the Windows command line, use the
|
---|
1174 | following command:
|
---|
1175 | </para>
|
---|
1176 |
|
---|
1177 | <screen>net use x: \\vboxsvr\sharename</screen>
|
---|
1178 |
|
---|
1179 | <para>
|
---|
1180 | While <literal>vboxsvr</literal> is a fixed name, note that
|
---|
1181 | <literal>vboxsrv</literal> would also work, replace
|
---|
1182 | <replaceable>x:</replaceable> with the drive letter that you
|
---|
1183 | want to use for the share, and
|
---|
1184 | <replaceable>sharename</replaceable> with the share name
|
---|
1185 | specified with <command>VBoxManage</command>.
|
---|
1186 | </para>
|
---|
1187 | </listitem>
|
---|
1188 |
|
---|
1189 | <listitem>
|
---|
1190 | <para>
|
---|
1191 | In a Linux guest, use the following command:
|
---|
1192 | </para>
|
---|
1193 |
|
---|
1194 | <screen>mount -t vboxsf [-o OPTIONS] sharename mountpoint</screen>
|
---|
1195 |
|
---|
1196 | <para>
|
---|
1197 | To mount a shared folder during boot, add the following
|
---|
1198 | entry to <filename>/etc/fstab</filename>:
|
---|
1199 | </para>
|
---|
1200 |
|
---|
1201 | <screen>sharename mountpoint vboxsf defaults 0 0</screen>
|
---|
1202 | </listitem>
|
---|
1203 |
|
---|
1204 | <listitem>
|
---|
1205 | <para>
|
---|
1206 | In a Oracle Solaris guest, use the following command:
|
---|
1207 | </para>
|
---|
1208 |
|
---|
1209 | <screen>mount -F vboxfs [-o OPTIONS] sharename mountpoint</screen>
|
---|
1210 |
|
---|
1211 | <para>
|
---|
1212 | Replace <replaceable>sharename</replaceable>, use a
|
---|
1213 | lowercase string, with the share name specified with
|
---|
1214 | <command>VBoxManage</command> or the VirtualBox Manager.
|
---|
1215 | Replace <replaceable>mountpoint</replaceable> with the path
|
---|
1216 | where you want the share to be mounted on the guest, such as
|
---|
1217 | <filename>/mnt/share</filename>. The usual mount rules
|
---|
1218 | apply. For example, create this directory first if it does
|
---|
1219 | not exist yet.
|
---|
1220 | </para>
|
---|
1221 |
|
---|
1222 | <para>
|
---|
1223 | Here is an example of mounting the shared folder for the
|
---|
1224 | user jack on Oracle Solaris:
|
---|
1225 | </para>
|
---|
1226 |
|
---|
1227 | <screen>$ id
|
---|
1228 | uid=5000(jack) gid=1(other)
|
---|
1229 | $ mkdir /export/home/jack/mount
|
---|
1230 | $ pfexec mount -F vboxfs -o uid=5000,gid=1 jackshare /export/home/jack/mount
|
---|
1231 | $ cd ~/mount
|
---|
1232 | $ ls
|
---|
1233 | sharedfile1.mp3 sharedfile2.txt
|
---|
1234 | $</screen>
|
---|
1235 |
|
---|
1236 | <para>
|
---|
1237 | Beyond the standard options supplied by the
|
---|
1238 | <command>mount</command> command, the following are
|
---|
1239 | available:
|
---|
1240 | </para>
|
---|
1241 |
|
---|
1242 | <screen>iocharset CHARSET</screen>
|
---|
1243 |
|
---|
1244 | <para>
|
---|
1245 | This option sets the character set used for I/O operations.
|
---|
1246 | Note that on Linux guests, if the
|
---|
1247 | <literal>iocharset</literal> option is not specified, then
|
---|
1248 | the Guest Additions driver will attempt to use the character
|
---|
1249 | set specified by the CONFIG_NLS_DEFAULT kernel option. If
|
---|
1250 | this option is not set either, then UTF-8 is used.
|
---|
1251 | </para>
|
---|
1252 |
|
---|
1253 | <screen>convertcp CHARSET</screen>
|
---|
1254 |
|
---|
1255 | <para>
|
---|
1256 | This option specifies the character set used for the shared
|
---|
1257 | folder name. This is UTF-8 by default.
|
---|
1258 | </para>
|
---|
1259 |
|
---|
1260 | <para>
|
---|
1261 | The generic mount options, documented in the
|
---|
1262 | <command>mount</command> manual page, apply also. Especially
|
---|
1263 | useful are the options <literal>uid</literal>,
|
---|
1264 | <literal>gid</literal> and <literal>mode</literal>, as they
|
---|
1265 | can allow access by normal users in read/write mode,
|
---|
1266 | depending on the settings, even if root has mounted the
|
---|
1267 | filesystem.
|
---|
1268 | </para>
|
---|
1269 | </listitem>
|
---|
1270 |
|
---|
1271 | <listitem>
|
---|
1272 | <para>
|
---|
1273 | In an OS/2 guest, use the <command>VBoxControl</command>
|
---|
1274 | command to manage shared folders. For example:
|
---|
1275 | </para>
|
---|
1276 |
|
---|
1277 | <screen>VBoxControl sharedfolder use D: MyShareName
|
---|
1278 | VBoxControl sharedfolder unuse D:
|
---|
1279 | VBoxControl sharedfolder list</screen>
|
---|
1280 |
|
---|
1281 | <para>
|
---|
1282 | As with Windows guests, shared folders can also be accessed
|
---|
1283 | via UNC using <filename>\\VBoxSF\</filename>,
|
---|
1284 | <filename>\\VBoxSvr\</filename> or
|
---|
1285 | <filename>\\VBoxSrv\</filename> as the server name and the
|
---|
1286 | shared folder name as <replaceable>sharename</replaceable>.
|
---|
1287 | </para>
|
---|
1288 | </listitem>
|
---|
1289 |
|
---|
1290 | </itemizedlist>
|
---|
1291 |
|
---|
1292 | </sect2>
|
---|
1293 |
|
---|
1294 | <sect2 id="sf_mount_auto">
|
---|
1295 |
|
---|
1296 | <title>Automatic Mounting</title>
|
---|
1297 |
|
---|
1298 | <para>
|
---|
1299 | &product-name; provides the option to mount shared folders
|
---|
1300 | automatically. When automatic mounting is enabled for a shared
|
---|
1301 | folder, the Guest Additions service will mount it for you
|
---|
1302 | automatically. For Windows or OS/2, a preferred drive letter can
|
---|
1303 | also be specified. For Linux or Oracle Solaris, a mount point
|
---|
1304 | directory can also be specified.
|
---|
1305 | </para>
|
---|
1306 |
|
---|
1307 | <para>
|
---|
1308 | If a drive letter or mount point is not specified, or is in use
|
---|
1309 | already, an alternative location is found by the Guest Additions
|
---|
1310 | service. The service searches for an alternative location
|
---|
1311 | depending on the guest OS, as follows:
|
---|
1312 | </para>
|
---|
1313 |
|
---|
1314 | <itemizedlist>
|
---|
1315 |
|
---|
1316 | <listitem>
|
---|
1317 | <para>
|
---|
1318 | <emphasis role="bold">Windows and OS/2 guests.</emphasis>
|
---|
1319 | Search for a free drive letter, starting at
|
---|
1320 | <filename>Z:</filename>. If all drive letters are assigned,
|
---|
1321 | the folder is not mounted.
|
---|
1322 | </para>
|
---|
1323 | </listitem>
|
---|
1324 |
|
---|
1325 | <listitem>
|
---|
1326 | <para>
|
---|
1327 | <emphasis role="bold">Linux and Oracle Solaris
|
---|
1328 | guests.</emphasis> Folders are mounted under the
|
---|
1329 | <filename>/media</filename> directory. The folder name is
|
---|
1330 | normalized (no spaces, slashes or colons) and is prefixed
|
---|
1331 | with <filename>sf_</filename>.
|
---|
1332 | </para>
|
---|
1333 |
|
---|
1334 | <para>
|
---|
1335 | For example, if you have a shared folder called
|
---|
1336 | <filename>myfiles</filename>, it will appear as
|
---|
1337 | <filename>/media/sf_myfiles</filename> in the guest.
|
---|
1338 | </para>
|
---|
1339 |
|
---|
1340 | <para>
|
---|
1341 | The guest properties
|
---|
1342 | <literal>/VirtualBox/GuestAdd/SharedFolders/MountDir</literal>
|
---|
1343 | and the more generic
|
---|
1344 | <literal>/VirtualBox/GuestAdd/SharedFolders/MountPrefix</literal>
|
---|
1345 | can be used to override the automatic mount directory and
|
---|
1346 | prefix. See <xref linkend="guestadd-guestprops" />.
|
---|
1347 | </para>
|
---|
1348 | </listitem>
|
---|
1349 |
|
---|
1350 | </itemizedlist>
|
---|
1351 |
|
---|
1352 | <para>
|
---|
1353 | Access to an automatically mounted shared folder is granted to
|
---|
1354 | everyone in a Windows guest, including the guest user. For Linux
|
---|
1355 | and Oracle Solaris guests, access is restricted to members of
|
---|
1356 | the group <literal>vboxsf</literal> and the
|
---|
1357 | <literal>root</literal> user.
|
---|
1358 | </para>
|
---|
1359 |
|
---|
1360 | </sect2>
|
---|
1361 |
|
---|
1362 | </sect1>
|
---|
1363 |
|
---|
1364 | <sect1 id="guestadd-dnd">
|
---|
1365 |
|
---|
1366 | <title>Drag and Drop</title>
|
---|
1367 |
|
---|
1368 | <para>
|
---|
1369 | &product-name; enables you to drag and drop content from the host
|
---|
1370 | to the guest, and vice versa. For this to work the latest version
|
---|
1371 | of the Guest Additions must be installed on the guest.
|
---|
1372 | </para>
|
---|
1373 |
|
---|
1374 | <para>
|
---|
1375 | Drag and drop transparently allows copying or opening files,
|
---|
1376 | directories, and even certain clipboard formats from one end to
|
---|
1377 | the other. For example, from the host to the guest or from the
|
---|
1378 | guest to the host. You then can perform drag and drop operations
|
---|
1379 | between the host and a VM, as it would be a native drag and drop
|
---|
1380 | operation on the host OS.
|
---|
1381 | </para>
|
---|
1382 |
|
---|
1383 | <para>
|
---|
1384 | At the moment drag and drop is implemented for Windows-based and
|
---|
1385 | X-Windows-based systems, both on the host and guest side. As
|
---|
1386 | X-Windows supports many different drag and drop protocols only the
|
---|
1387 | most common one, XDND, is supported for now. Applications using
|
---|
1388 | other protocols, such as Motif or OffiX, will not be recognized by
|
---|
1389 | &product-name;.
|
---|
1390 | </para>
|
---|
1391 |
|
---|
1392 | <para>
|
---|
1393 | In the context of using drag and drop, the origin of the data is
|
---|
1394 | called the <emphasis>source</emphasis>. That is, where the actual
|
---|
1395 | data comes from and is specified. The
|
---|
1396 | <emphasis>destination</emphasis> specifies where the data from the
|
---|
1397 | source should go to. Transferring data from the source to the
|
---|
1398 | destination can be done in various ways, such as copying, moving,
|
---|
1399 | or linking.
|
---|
1400 | </para>
|
---|
1401 |
|
---|
1402 | <note>
|
---|
1403 | <para>
|
---|
1404 | At the moment only copying of data is supported. Moving or
|
---|
1405 | linking is not yet implemented.
|
---|
1406 | </para>
|
---|
1407 | </note>
|
---|
1408 |
|
---|
1409 | <para>
|
---|
1410 | When transferring data from the host to the guest OS, the host in
|
---|
1411 | this case is the source, whereas the guest OS is the destination.
|
---|
1412 | However, when transferring data from the guest OS to the host, the
|
---|
1413 | guest OS this time became the source and the host is the
|
---|
1414 | destination.
|
---|
1415 | </para>
|
---|
1416 |
|
---|
1417 | <para>
|
---|
1418 | For security reasons drag and drop can be configured at runtime on
|
---|
1419 | a per-VM basis either using the <emphasis role="bold">Drag and
|
---|
1420 | Drop</emphasis> menu item in the
|
---|
1421 | <emphasis role="bold">Devices</emphasis> menu of the virtual
|
---|
1422 | machine, as shown below, or the <command>VBoxManage</command>
|
---|
1423 | command.
|
---|
1424 | </para>
|
---|
1425 |
|
---|
1426 | <figure id="fig-drag-drop-options">
|
---|
1427 | <title>Drag and Drop Menu Options</title>
|
---|
1428 | <mediaobject>
|
---|
1429 | <imageobject>
|
---|
1430 | <imagedata align="center" fileref="images/dnd-modes.png"
|
---|
1431 | width="10cm" />
|
---|
1432 | </imageobject>
|
---|
1433 | </mediaobject>
|
---|
1434 | </figure>
|
---|
1435 |
|
---|
1436 | <para>
|
---|
1437 | The following drag and drop modes are available:
|
---|
1438 | </para>
|
---|
1439 |
|
---|
1440 | <itemizedlist>
|
---|
1441 |
|
---|
1442 | <listitem>
|
---|
1443 | <para>
|
---|
1444 | <emphasis role="bold">Disabled.</emphasis> Disables the drag
|
---|
1445 | and drop feature entirely. This is the default when creating a
|
---|
1446 | new VM.
|
---|
1447 | </para>
|
---|
1448 | </listitem>
|
---|
1449 |
|
---|
1450 | <listitem>
|
---|
1451 | <para>
|
---|
1452 | <emphasis role="bold">Host To Guest.</emphasis> Enables drag
|
---|
1453 | and drop operations from the host to the guest only.
|
---|
1454 | </para>
|
---|
1455 | </listitem>
|
---|
1456 |
|
---|
1457 | <listitem>
|
---|
1458 | <para>
|
---|
1459 | <emphasis role="bold">Guest To Host.</emphasis> Enables drag
|
---|
1460 | and drop operations from the guest to the host only.
|
---|
1461 | </para>
|
---|
1462 | </listitem>
|
---|
1463 |
|
---|
1464 | <listitem>
|
---|
1465 | <para>
|
---|
1466 | <emphasis role="bold">Bidirectional.</emphasis> Enables drag
|
---|
1467 | and drop operations in both directions: from the host to the
|
---|
1468 | guest, and from the guest to the host.
|
---|
1469 | </para>
|
---|
1470 | </listitem>
|
---|
1471 |
|
---|
1472 | </itemizedlist>
|
---|
1473 |
|
---|
1474 | <note>
|
---|
1475 | <para>
|
---|
1476 | Drag and drop support depends on the frontend being used. At the
|
---|
1477 | moment, only the VirtualBox Manager frontend provides this
|
---|
1478 | functionality.
|
---|
1479 | </para>
|
---|
1480 | </note>
|
---|
1481 |
|
---|
1482 | <para>
|
---|
1483 | To use the <command>VBoxManage</command> command to control the
|
---|
1484 | current drag and drop mode, see <xref linkend="vboxmanage" />. The
|
---|
1485 | <command>modifyvm</command> and <command>controlvm</command>
|
---|
1486 | commands enable setting of a VM's current drag and drop mode from
|
---|
1487 | the command line.
|
---|
1488 | </para>
|
---|
1489 |
|
---|
1490 | <sect2 id="guestadd-dnd-formats">
|
---|
1491 |
|
---|
1492 | <title>Supported Formats</title>
|
---|
1493 |
|
---|
1494 | <para>
|
---|
1495 | As &product-name; can run on a variety of host operating systems
|
---|
1496 | and also supports a wide range of guests, certain data formats
|
---|
1497 | must be translated after transfer. This is so that the
|
---|
1498 | destination operating system, which receives the data, is able
|
---|
1499 | to handle them in an appropriate manner.
|
---|
1500 | </para>
|
---|
1501 |
|
---|
1502 | <note>
|
---|
1503 | <para>
|
---|
1504 | When dragging files no data conversion is done in any way. For
|
---|
1505 | example, when transferring a file from a Linux guest to a
|
---|
1506 | Windows host the Linux-specific line endings are not converted
|
---|
1507 | to Windows line endings.
|
---|
1508 | </para>
|
---|
1509 | </note>
|
---|
1510 |
|
---|
1511 | <para>
|
---|
1512 | The following formats are handled by the &product-name; drag and
|
---|
1513 | drop service:
|
---|
1514 | </para>
|
---|
1515 |
|
---|
1516 | <itemizedlist>
|
---|
1517 |
|
---|
1518 | <listitem>
|
---|
1519 | <para>
|
---|
1520 | <emphasis role="bold">Plain text:</emphasis> From
|
---|
1521 | applications such as text editors, internet browsers and
|
---|
1522 | terminal windows.
|
---|
1523 | </para>
|
---|
1524 | </listitem>
|
---|
1525 |
|
---|
1526 | <listitem>
|
---|
1527 | <para>
|
---|
1528 | <emphasis role="bold">Files:</emphasis> From file managers
|
---|
1529 | such as Windows Explorer, Nautilus, and Finder.
|
---|
1530 | </para>
|
---|
1531 | </listitem>
|
---|
1532 |
|
---|
1533 | <listitem>
|
---|
1534 | <para>
|
---|
1535 | <emphasis role="bold">Directories:</emphasis> For
|
---|
1536 | directories, the same formats apply as for files.
|
---|
1537 | </para>
|
---|
1538 | </listitem>
|
---|
1539 |
|
---|
1540 | </itemizedlist>
|
---|
1541 |
|
---|
1542 | </sect2>
|
---|
1543 |
|
---|
1544 | <sect2 id="guestadd-dnd-limitations">
|
---|
1545 |
|
---|
1546 | <title>Known Limitations</title>
|
---|
1547 |
|
---|
1548 | <para>
|
---|
1549 | The following limitations are known for drag and drop:
|
---|
1550 | </para>
|
---|
1551 |
|
---|
1552 | <para>
|
---|
1553 | On Windows hosts, dragging and dropping content between
|
---|
1554 | UAC-elevated (User Account Control) programs and
|
---|
1555 | non-UAC-elevated programs is not allowed. If you start
|
---|
1556 | &product-name; with Administrator privileges then drag and drop
|
---|
1557 | will not work with Windows Explorer, which runs with regular
|
---|
1558 | user privileges by default.
|
---|
1559 | </para>
|
---|
1560 |
|
---|
1561 | <para>
|
---|
1562 | On Linux hosts and guests, programs can query for drag and drop
|
---|
1563 | data while the drag operation is still in progress. For example,
|
---|
1564 | on LXDE using the PCManFM file manager. This currently is not
|
---|
1565 | supported. As a workaround, a different file manager, such as
|
---|
1566 | Nautilus, can be used instead.
|
---|
1567 | </para>
|
---|
1568 |
|
---|
1569 | </sect2>
|
---|
1570 |
|
---|
1571 | </sect1>
|
---|
1572 |
|
---|
1573 | <sect1 id="guestadd-video">
|
---|
1574 |
|
---|
1575 | <title>Hardware-Accelerated Graphics</title>
|
---|
1576 |
|
---|
1577 | <sect2 id="guestadd-3d">
|
---|
1578 |
|
---|
1579 | <title>Hardware 3D Acceleration (OpenGL and Direct3D 8/9)</title>
|
---|
1580 |
|
---|
1581 | <para>
|
---|
1582 | The &product-name; Guest Additions contain experimental hardware
|
---|
1583 | 3D support for Windows, Linux, and Oracle Solaris guests.
|
---|
1584 | </para>
|
---|
1585 |
|
---|
1586 | <para>
|
---|
1587 | With this feature, if an application inside your virtual machine
|
---|
1588 | uses 3D features through the OpenGL or Direct3D 8/9 programming
|
---|
1589 | interfaces, instead of emulating them in software, which would
|
---|
1590 | be slow, &product-name; will attempt to use your host's 3D
|
---|
1591 | hardware. This works for all supported host platforms, provided
|
---|
1592 | that your host operating system can make use of your accelerated
|
---|
1593 | 3D hardware in the first place.
|
---|
1594 | </para>
|
---|
1595 |
|
---|
1596 | <para>
|
---|
1597 | The 3D acceleration feature currently has the following
|
---|
1598 | preconditions:
|
---|
1599 | </para>
|
---|
1600 |
|
---|
1601 | <itemizedlist>
|
---|
1602 |
|
---|
1603 | <listitem>
|
---|
1604 | <para>
|
---|
1605 | It is only available for certain Windows, Linux, and Oracle
|
---|
1606 | Solaris guests. In particular:
|
---|
1607 | </para>
|
---|
1608 |
|
---|
1609 | <itemizedlist>
|
---|
1610 |
|
---|
1611 | <listitem>
|
---|
1612 | <para>
|
---|
1613 | 3D acceleration with Windows guests requires Windows
|
---|
1614 | 2000 or later. Apart from on Windows 2000 guests, both
|
---|
1615 | OpenGL and Direct3D 8/9 are supported on an experimental
|
---|
1616 | basis.
|
---|
1617 | </para>
|
---|
1618 | </listitem>
|
---|
1619 |
|
---|
1620 | <listitem>
|
---|
1621 | <para>
|
---|
1622 | OpenGL on Linux requires kernel 2.6.27 or later, as well
|
---|
1623 | as X.org server version 1.5 or later. Ubuntu 10.10 and
|
---|
1624 | Fedora 14 have been tested and confirmed as working.
|
---|
1625 | </para>
|
---|
1626 | </listitem>
|
---|
1627 |
|
---|
1628 | <listitem>
|
---|
1629 | <para>
|
---|
1630 | OpenGL on Oracle Solaris guests requires X.org server
|
---|
1631 | version 1.5 or later.
|
---|
1632 | </para>
|
---|
1633 | </listitem>
|
---|
1634 |
|
---|
1635 | </itemizedlist>
|
---|
1636 | </listitem>
|
---|
1637 |
|
---|
1638 | <listitem>
|
---|
1639 | <para>
|
---|
1640 | The Guest Additions must be installed.
|
---|
1641 | </para>
|
---|
1642 |
|
---|
1643 | <note>
|
---|
1644 | <para>
|
---|
1645 | For the basic Direct3D acceleration to work in a Windows
|
---|
1646 | Guest, &product-name; needs to replace Windows system
|
---|
1647 | files in the virtual machine. As a result, the Guest
|
---|
1648 | Additions installation program offers Direct3D
|
---|
1649 | acceleration as an option that must be explicitly enabled.
|
---|
1650 | Also, you must install the Guest Additions in Safe Mode.
|
---|
1651 | This does <emphasis>not</emphasis> apply to the WDDM
|
---|
1652 | Direct3D video driver available for Windows Vista and
|
---|
1653 | later. See <xref linkend="KnownIssues" /> for details.
|
---|
1654 | </para>
|
---|
1655 | </note>
|
---|
1656 | </listitem>
|
---|
1657 |
|
---|
1658 | <listitem>
|
---|
1659 | <para>
|
---|
1660 | Because 3D support is still experimental at this time, it is
|
---|
1661 | disabled by default and must be <emphasis>manually
|
---|
1662 | enabled</emphasis> in the VM settings. See
|
---|
1663 | <xref linkend="settings-display" />.
|
---|
1664 | </para>
|
---|
1665 |
|
---|
1666 | <note>
|
---|
1667 | <para>
|
---|
1668 | Untrusted guest systems should not be allowed to use the
|
---|
1669 | 3D acceleration features of &product-name;, just as
|
---|
1670 | untrusted host software should not be allowed to use 3D
|
---|
1671 | acceleration. Drivers for 3D hardware are generally too
|
---|
1672 | complex to be made properly secure and any software which
|
---|
1673 | is allowed to access them may be able to compromise the
|
---|
1674 | operating system running them. In addition, enabling 3D
|
---|
1675 | acceleration gives the guest direct access to a large body
|
---|
1676 | of additional program code in the &product-name; host
|
---|
1677 | process which it might conceivably be able to use to crash
|
---|
1678 | the virtual machine.
|
---|
1679 | </para>
|
---|
1680 | </note>
|
---|
1681 | </listitem>
|
---|
1682 |
|
---|
1683 | </itemizedlist>
|
---|
1684 |
|
---|
1685 | <para>
|
---|
1686 | To enable Aero theme support, the &product-name; WDDM video
|
---|
1687 | driver must be installed, which is available with the Guest
|
---|
1688 | Additions installation. The WDDM driver is not installed by
|
---|
1689 | default for Vista and Windows 7 guests and must be
|
---|
1690 | <emphasis>manually selected</emphasis> in the Guest Additions
|
---|
1691 | installer by clicking <emphasis role="bold">No</emphasis> in the
|
---|
1692 | <emphasis role="bold">Would You Like to Install Basic Direct3D
|
---|
1693 | Support</emphasis> dialog displayed when the Direct3D feature is
|
---|
1694 | selected.
|
---|
1695 | </para>
|
---|
1696 |
|
---|
1697 | <para>
|
---|
1698 | The Aero theme is not enabled by default on Windows. See your
|
---|
1699 | Windows platform documentation for details of how to enable the
|
---|
1700 | Aero theme.
|
---|
1701 | </para>
|
---|
1702 |
|
---|
1703 | <para>
|
---|
1704 | Technically, &product-name; implements 3D acceleration by
|
---|
1705 | installing an additional hardware 3D driver inside the guest
|
---|
1706 | when the Guest Additions are installed. This driver acts as a
|
---|
1707 | hardware 3D driver and reports to the guest operating system
|
---|
1708 | that the virtual hardware is capable of 3D hardware
|
---|
1709 | acceleration. When an application in the guest then requests
|
---|
1710 | hardware acceleration through the OpenGL or Direct3D programming
|
---|
1711 | interfaces, these are sent to the host through a special
|
---|
1712 | communication tunnel implemented by &product-name;. The
|
---|
1713 | <emphasis>host</emphasis> then performs the requested 3D
|
---|
1714 | operation using the host's programming interfaces.
|
---|
1715 | </para>
|
---|
1716 |
|
---|
1717 | </sect2>
|
---|
1718 |
|
---|
1719 | <sect2 id="guestadd-2d">
|
---|
1720 |
|
---|
1721 | <title>Hardware 2D Video Acceleration for Windows Guests</title>
|
---|
1722 |
|
---|
1723 | <para>
|
---|
1724 | The &product-name; Guest Additions contain experimental hardware
|
---|
1725 | 2D video acceleration support for Windows guests.
|
---|
1726 | </para>
|
---|
1727 |
|
---|
1728 | <para>
|
---|
1729 | With this feature, if an application such as a video player
|
---|
1730 | inside your Windows VM uses 2D video overlays to play a movie
|
---|
1731 | clip, then &product-name; will attempt to use your host's video
|
---|
1732 | acceleration hardware instead of performing overlay stretching
|
---|
1733 | and color conversion in software, which would be slow. This
|
---|
1734 | currently works for Windows, Linux and Mac OS X host platforms,
|
---|
1735 | provided that your host operating system can make use of 2D
|
---|
1736 | video acceleration in the first place.
|
---|
1737 | </para>
|
---|
1738 |
|
---|
1739 | <para>
|
---|
1740 | Hardware 2D video acceleration currently has the following
|
---|
1741 | preconditions:
|
---|
1742 | </para>
|
---|
1743 |
|
---|
1744 | <itemizedlist>
|
---|
1745 |
|
---|
1746 | <listitem>
|
---|
1747 | <para>
|
---|
1748 | Only available for Windows guests, running Windows XP or
|
---|
1749 | later.
|
---|
1750 | </para>
|
---|
1751 | </listitem>
|
---|
1752 |
|
---|
1753 | <listitem>
|
---|
1754 | <para>
|
---|
1755 | Guest Additions must be installed.
|
---|
1756 | </para>
|
---|
1757 | </listitem>
|
---|
1758 |
|
---|
1759 | <listitem>
|
---|
1760 | <para>
|
---|
1761 | Because 2D support is still experimental at this time, it is
|
---|
1762 | disabled by default and must be <emphasis>manually
|
---|
1763 | enabled</emphasis> in the VM settings. See
|
---|
1764 | <xref linkend="settings-display" />.
|
---|
1765 | </para>
|
---|
1766 | </listitem>
|
---|
1767 |
|
---|
1768 | </itemizedlist>
|
---|
1769 |
|
---|
1770 | <para>
|
---|
1771 | Technically, &product-name; implements this by exposing video
|
---|
1772 | overlay DirectDraw capabilities in the Guest Additions video
|
---|
1773 | driver. The driver sends all overlay commands to the host
|
---|
1774 | through a special communication tunnel implemented by
|
---|
1775 | &product-name;. On the host side, OpenGL is then used to
|
---|
1776 | implement color space transformation and scaling.
|
---|
1777 | </para>
|
---|
1778 |
|
---|
1779 | </sect2>
|
---|
1780 |
|
---|
1781 | </sect1>
|
---|
1782 |
|
---|
1783 | <sect1 id="seamlesswindows">
|
---|
1784 |
|
---|
1785 | <title>Seamless Windows</title>
|
---|
1786 |
|
---|
1787 | <para>
|
---|
1788 | With the <emphasis>seamless windows</emphasis> feature of
|
---|
1789 | &product-name;, you can have the windows that are displayed within
|
---|
1790 | a virtual machine appear side by side next to the windows of your
|
---|
1791 | host. This feature is supported for the following guest operating
|
---|
1792 | systems, provided that the Guest Additions are installed:
|
---|
1793 | </para>
|
---|
1794 |
|
---|
1795 | <itemizedlist>
|
---|
1796 |
|
---|
1797 | <listitem>
|
---|
1798 | <para>
|
---|
1799 | Windows guests.
|
---|
1800 | </para>
|
---|
1801 | </listitem>
|
---|
1802 |
|
---|
1803 | <listitem>
|
---|
1804 | <para>
|
---|
1805 | Supported Linux or Oracle Solaris guests running the X Window
|
---|
1806 | System.
|
---|
1807 | </para>
|
---|
1808 | </listitem>
|
---|
1809 |
|
---|
1810 | </itemizedlist>
|
---|
1811 |
|
---|
1812 | <para>
|
---|
1813 | After seamless windows are enabled, &product-name; suppresses the
|
---|
1814 | display of the desktop background of your guest, allowing you to
|
---|
1815 | run the windows of your guest operating system seamlessly next to
|
---|
1816 | the windows of your host.
|
---|
1817 | </para>
|
---|
1818 |
|
---|
1819 | <figure id="fig-seamless-windows">
|
---|
1820 | <title>Seamless Windows on a Host Desktop</title>
|
---|
1821 | <mediaobject>
|
---|
1822 | <imageobject>
|
---|
1823 | <imagedata align="center" fileref="images/seamless.png" width="14cm" />
|
---|
1824 | </imageobject>
|
---|
1825 | </mediaobject>
|
---|
1826 | </figure>
|
---|
1827 |
|
---|
1828 | <para>
|
---|
1829 | To enable seamless mode, after starting the virtual machine, press
|
---|
1830 | the <emphasis role="bold">Host key + L</emphasis>. The Host key is
|
---|
1831 | normally the right control key. This will enlarge the size of the
|
---|
1832 | VM's display to the size of your host screen and mask out the
|
---|
1833 | guest operating system's background. To disable seamless windows
|
---|
1834 | and go back to the normal VM display, press the Host key + L
|
---|
1835 | again.
|
---|
1836 | </para>
|
---|
1837 |
|
---|
1838 | </sect1>
|
---|
1839 |
|
---|
1840 | <sect1 id="guestadd-guestprops">
|
---|
1841 |
|
---|
1842 | <title>Guest Properties</title>
|
---|
1843 |
|
---|
1844 | <para>
|
---|
1845 | &product-name; enables requests of some properties from a running
|
---|
1846 | guest, provided that the &product-name; Guest Additions are
|
---|
1847 | installed and the VM is running. This provides the following
|
---|
1848 | advantages:
|
---|
1849 | </para>
|
---|
1850 |
|
---|
1851 | <itemizedlist>
|
---|
1852 |
|
---|
1853 | <listitem>
|
---|
1854 | <para>
|
---|
1855 | A number of predefined VM characteristics are automatically
|
---|
1856 | maintained by &product-name; and can be retrieved on the host.
|
---|
1857 | For example, to monitor VM performance and statistics.
|
---|
1858 | </para>
|
---|
1859 | </listitem>
|
---|
1860 |
|
---|
1861 | <listitem>
|
---|
1862 | <para>
|
---|
1863 | Arbitrary string data can be exchanged between guest and host.
|
---|
1864 | This works in both directions.
|
---|
1865 | </para>
|
---|
1866 | </listitem>
|
---|
1867 |
|
---|
1868 | </itemizedlist>
|
---|
1869 |
|
---|
1870 | <para>
|
---|
1871 | To accomplish this, &product-name; establishes a private
|
---|
1872 | communication channel between the &product-name; Guest Additions
|
---|
1873 | and the host, and software on both sides can use this channel to
|
---|
1874 | exchange string data for arbitrary purposes. Guest properties are
|
---|
1875 | simply string keys to which a value is attached. They can be set,
|
---|
1876 | or written to, by either the host and the guest. They can also be
|
---|
1877 | read from both sides.
|
---|
1878 | </para>
|
---|
1879 |
|
---|
1880 | <para>
|
---|
1881 | In addition to establishing the general mechanism of reading and
|
---|
1882 | writing values, a set of predefined guest properties is
|
---|
1883 | automatically maintained by the &product-name; Guest Additions to
|
---|
1884 | allow for retrieving interesting guest data such as the guest's
|
---|
1885 | exact operating system and service pack level, the installed
|
---|
1886 | version of the Guest Additions, users that are currently logged
|
---|
1887 | into the guest OS, network statistics and more. These predefined
|
---|
1888 | properties are all prefixed with <literal>/VirtualBox/</literal>
|
---|
1889 | and organized into a hierarchical tree of keys.
|
---|
1890 | </para>
|
---|
1891 |
|
---|
1892 | <para>
|
---|
1893 | Some of this runtime information is shown when you select
|
---|
1894 | <emphasis role="bold">Session Information Dialog</emphasis> from a
|
---|
1895 | virtual machine's <emphasis role="bold">Machine</emphasis> menu.
|
---|
1896 | </para>
|
---|
1897 |
|
---|
1898 | <para>
|
---|
1899 | A more flexible way to use this channel is with the
|
---|
1900 | <command>VBoxManage guestproperty</command> command. See
|
---|
1901 | <xref linkend="vboxmanage-guestproperty" />. For example, to have
|
---|
1902 | <emphasis>all</emphasis> the available guest properties for a
|
---|
1903 | given running VM listed with their respective values, use this
|
---|
1904 | command:
|
---|
1905 | </para>
|
---|
1906 |
|
---|
1907 | <screen>$ VBoxManage guestproperty enumerate "Windows Vista III"
|
---|
1908 | VirtualBox Command Line Management Interface Version <replaceable>version-number</replaceable>
|
---|
1909 | (C) 2005-2019 Oracle Corporation
|
---|
1910 | All rights reserved.
|
---|
1911 |
|
---|
1912 | Name: /VirtualBox/GuestInfo/OS/Product, value: Windows Vista Business Edition,
|
---|
1913 | timestamp: 1229098278843087000, flags:
|
---|
1914 | Name: /VirtualBox/GuestInfo/OS/Release, value: 6.0.6001,
|
---|
1915 | timestamp: 1229098278950553000, flags:
|
---|
1916 | Name: /VirtualBox/GuestInfo/OS/ServicePack, value: 1,
|
---|
1917 | timestamp: 1229098279122627000, flags:
|
---|
1918 | Name: /VirtualBox/GuestAdd/InstallDir,
|
---|
1919 | value: C:/Program Files/Oracle/VirtualBox
|
---|
1920 | Guest Additions, timestamp: 1229098279269739000, flags:
|
---|
1921 | Name: /VirtualBox/GuestAdd/Revision, value: 40720,
|
---|
1922 | timestamp: 1229098279345664000, flags:
|
---|
1923 | Name: /VirtualBox/GuestAdd/Version, value: <replaceable>version-number</replaceable>,
|
---|
1924 | timestamp: 1229098279479515000, flags:
|
---|
1925 | Name: /VirtualBox/GuestAdd/Components/VBoxControl.exe, value: <replaceable>version-number</replaceable>r40720,
|
---|
1926 | timestamp: 1229098279651731000, flags:
|
---|
1927 | Name: /VirtualBox/GuestAdd/Components/VBoxHook.dll, value: <replaceable>version-number</replaceable>r40720,
|
---|
1928 | timestamp: 1229098279804835000, flags:
|
---|
1929 | Name: /VirtualBox/GuestAdd/Components/VBoxDisp.dll, value: <replaceable>version-number</replaceable>r40720,
|
---|
1930 | timestamp: 1229098279880611000, flags:
|
---|
1931 | Name: /VirtualBox/GuestAdd/Components/VBoxMRXNP.dll, value: <replaceable>version-number</replaceable>r40720,
|
---|
1932 | timestamp: 1229098279882618000, flags:
|
---|
1933 | Name: /VirtualBox/GuestAdd/Components/VBoxService.exe, value: <replaceable>version-number</replaceable>r40720,
|
---|
1934 | timestamp: 1229098279883195000, flags:
|
---|
1935 | Name: /VirtualBox/GuestAdd/Components/VBoxTray.exe, value: <replaceable>version-number</replaceable>r40720,
|
---|
1936 | timestamp: 1229098279885027000, flags:
|
---|
1937 | Name: /VirtualBox/GuestAdd/Components/VBoxGuest.sys, value: <replaceable>version-number</replaceable>r40720,
|
---|
1938 | timestamp: 1229098279886838000, flags:
|
---|
1939 | Name: /VirtualBox/GuestAdd/Components/VBoxMouse.sys, value: <replaceable>version-number</replaceable>r40720,
|
---|
1940 | timestamp: 1229098279890600000, flags:
|
---|
1941 | Name: /VirtualBox/GuestAdd/Components/VBoxSF.sys, value: <replaceable>version-number</replaceable>r40720,
|
---|
1942 | timestamp: 1229098279893056000, flags:
|
---|
1943 | Name: /VirtualBox/GuestAdd/Components/VBoxVideo.sys, value: <replaceable>version-number</replaceable>r40720,
|
---|
1944 | timestamp: 1229098279895767000, flags:
|
---|
1945 | Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1,
|
---|
1946 | timestamp: 1229099826317660000, flags:
|
---|
1947 | Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: false,
|
---|
1948 | timestamp: 1229098455580553000, flags:
|
---|
1949 | Name: /VirtualBox/GuestInfo/Net/Count, value: 1,
|
---|
1950 | timestamp: 1229099826299785000, flags:
|
---|
1951 | Name: /VirtualBox/HostInfo/GUI/LanguageID, value: C,
|
---|
1952 | timestamp: 1229098151272771000, flags:
|
---|
1953 | Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 192.168.2.102,
|
---|
1954 | timestamp: 1229099826300088000, flags:
|
---|
1955 | Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 255.255.255.255,
|
---|
1956 | timestamp: 1229099826300220000, flags:
|
---|
1957 | Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0,
|
---|
1958 | timestamp: 1229099826300350000, flags:
|
---|
1959 | Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up,
|
---|
1960 | timestamp: 1229099826300524000, flags:
|
---|
1961 | Name: /VirtualBox/GuestInfo/OS/LoggedInUsersList, value: username,
|
---|
1962 | timestamp: 1229099826317386000, flags:</screen>
|
---|
1963 |
|
---|
1964 | <para>
|
---|
1965 | To query the value of a single property, use the
|
---|
1966 | <command>get</command> subcommand as follows:
|
---|
1967 | </para>
|
---|
1968 |
|
---|
1969 | <screen>$ VBoxManage guestproperty get "Windows Vista III" "/VirtualBox/GuestInfo/OS/Product"
|
---|
1970 | VirtualBox Command Line Management Interface Version <replaceable>version-number</replaceable>
|
---|
1971 | (C) 2005-2019 Oracle Corporation
|
---|
1972 | All rights reserved.
|
---|
1973 |
|
---|
1974 | Value: Windows Vista Business Edition</screen>
|
---|
1975 |
|
---|
1976 | <para>
|
---|
1977 | To add or change guest properties from the guest, use the tool
|
---|
1978 | <command>VBoxControl</command>. This tool is included in the Guest
|
---|
1979 | Additions. When started from a Linux guest, this tool requires
|
---|
1980 | root privileges for security reasons.
|
---|
1981 | </para>
|
---|
1982 |
|
---|
1983 | <screen>$ sudo VBoxControl guestproperty enumerate
|
---|
1984 | VirtualBox Guest Additions Command Line Management Interface Version <replaceable>version-number</replaceable>
|
---|
1985 | (C) 2005-2019 Oracle Corporation
|
---|
1986 | All rights reserved.
|
---|
1987 |
|
---|
1988 | Name: /VirtualBox/GuestInfo/OS/Release, value: 2.6.28-18-generic,
|
---|
1989 | timestamp: 1265813265835667000, flags: <NULL>
|
---|
1990 | Name: /VirtualBox/GuestInfo/OS/Version, value: #59-Ubuntu SMP Thu Jan 28 01:23:03 UTC 2010,
|
---|
1991 | timestamp: 1265813265836305000, flags: <NULL>
|
---|
1992 | ...</screen>
|
---|
1993 |
|
---|
1994 | <para>
|
---|
1995 | For more complex needs, you can use the &product-name; programming
|
---|
1996 | interfaces. See <xref linkend="VirtualBoxAPI" />.
|
---|
1997 | </para>
|
---|
1998 |
|
---|
1999 | <sect2 id="guestadd-guestprops-waits">
|
---|
2000 |
|
---|
2001 | <title>Using Guest Properties to Wait on VM Events</title>
|
---|
2002 |
|
---|
2003 | <para>
|
---|
2004 | The properties <literal>/VirtualBox/HostInfo/VBoxVer</literal>,
|
---|
2005 | <literal>/VirtualBox/HostInfo/VBoxVerExt</literal> or
|
---|
2006 | <literal>/VirtualBox/HostInfo/VBoxRev</literal> can be waited on
|
---|
2007 | to detect that the VM state was restored from saved state or
|
---|
2008 | snapshot:
|
---|
2009 | </para>
|
---|
2010 |
|
---|
2011 | <screen>$ VBoxControl guestproperty wait /VirtualBox/HostInfo/VBoxVer</screen>
|
---|
2012 |
|
---|
2013 | <para>
|
---|
2014 | Similarly the
|
---|
2015 | <literal>/VirtualBox/HostInfo/ResumeCounter</literal> can be
|
---|
2016 | used to detect that a VM was resumed from the paused state or
|
---|
2017 | saved state.
|
---|
2018 | </para>
|
---|
2019 |
|
---|
2020 | </sect2>
|
---|
2021 |
|
---|
2022 | </sect1>
|
---|
2023 |
|
---|
2024 | <sect1 id="guestadd-gc-file-manager">
|
---|
2025 |
|
---|
2026 | <title>Guest Control File Manager</title>
|
---|
2027 |
|
---|
2028 | <para>
|
---|
2029 | The Guest Control File Manager is a feature of the Guest Additions
|
---|
2030 | that enables easy copying and moving of files between a guest and
|
---|
2031 | the host system. Other file management operations provide support
|
---|
2032 | to create new folders and to rename or delete files.
|
---|
2033 | </para>
|
---|
2034 |
|
---|
2035 | <figure id="fig-guest-control-fm">
|
---|
2036 | <title>Guest Control File Manager</title>
|
---|
2037 | <mediaobject>
|
---|
2038 | <imageobject>
|
---|
2039 | <imagedata align="center" fileref="images/guest-fm.png"
|
---|
2040 | width="12cm" />
|
---|
2041 | </imageobject>
|
---|
2042 | </mediaobject>
|
---|
2043 | </figure>
|
---|
2044 |
|
---|
2045 | <para>
|
---|
2046 | The Guest Control File Manager works by mounting the host file
|
---|
2047 | system. Guest users must authenticate and create a guest session
|
---|
2048 | before they can transfer files.
|
---|
2049 | </para>
|
---|
2050 |
|
---|
2051 | <sect2 id="guestadd-gc-file-manager-using">
|
---|
2052 |
|
---|
2053 | <title>Using the Guest Control File Manager</title>
|
---|
2054 |
|
---|
2055 | <para>
|
---|
2056 | The following steps describe how to use the Guest Control File
|
---|
2057 | Manager.
|
---|
2058 | </para>
|
---|
2059 |
|
---|
2060 | <orderedlist>
|
---|
2061 |
|
---|
2062 | <listitem>
|
---|
2063 | <para>
|
---|
2064 | Open the Guest Control File Manager.
|
---|
2065 | </para>
|
---|
2066 |
|
---|
2067 | <para>
|
---|
2068 | In the guest VM, select
|
---|
2069 | <emphasis role="bold">Machine</emphasis>,
|
---|
2070 | <emphasis role="bold">File Manager</emphasis>.
|
---|
2071 | </para>
|
---|
2072 |
|
---|
2073 | <para>
|
---|
2074 | The left pane shows the files on the host system.
|
---|
2075 | </para>
|
---|
2076 | </listitem>
|
---|
2077 |
|
---|
2078 | <listitem>
|
---|
2079 | <para>
|
---|
2080 | Create a guest session.
|
---|
2081 | </para>
|
---|
2082 |
|
---|
2083 | <para>
|
---|
2084 | At the bottom of the Guest Control File Manager, enter
|
---|
2085 | authentication credentials for a user on the guest system.
|
---|
2086 | </para>
|
---|
2087 |
|
---|
2088 | <para>
|
---|
2089 | Click <emphasis role="bold">Create Session</emphasis>.
|
---|
2090 | </para>
|
---|
2091 |
|
---|
2092 | <para>
|
---|
2093 | The contents of the guest VM file system appears in the
|
---|
2094 | right pane of the Guest Control File Manager.
|
---|
2095 | </para>
|
---|
2096 | </listitem>
|
---|
2097 |
|
---|
2098 | <listitem>
|
---|
2099 | <para>
|
---|
2100 | Transfer files between the guest and the host system by
|
---|
2101 | using the move and copy file transfer icons.
|
---|
2102 | </para>
|
---|
2103 |
|
---|
2104 | <para>
|
---|
2105 | You can copy and move files from a guest to the host system
|
---|
2106 | or from the host system to the guest.
|
---|
2107 | </para>
|
---|
2108 | </listitem>
|
---|
2109 |
|
---|
2110 | <listitem>
|
---|
2111 | <para>
|
---|
2112 | Close the Guest Control File Manager.
|
---|
2113 | </para>
|
---|
2114 |
|
---|
2115 | <para>
|
---|
2116 | Click <emphasis role="bold">Close</emphasis> to end the
|
---|
2117 | guest session.
|
---|
2118 | </para>
|
---|
2119 | </listitem>
|
---|
2120 |
|
---|
2121 | </orderedlist>
|
---|
2122 |
|
---|
2123 | </sect2>
|
---|
2124 |
|
---|
2125 | </sect1>
|
---|
2126 |
|
---|
2127 | <sect1 id="guestadd-guestcontrol">
|
---|
2128 |
|
---|
2129 | <title>Guest Control of Applications</title>
|
---|
2130 |
|
---|
2131 | <para>
|
---|
2132 | The Guest Additions enable starting of applications inside a guest
|
---|
2133 | VM from the host system. This feature can be used to automate
|
---|
2134 | deployment of software within the guest.
|
---|
2135 | </para>
|
---|
2136 |
|
---|
2137 | <para>
|
---|
2138 | For this to work, the application needs to be installed on the
|
---|
2139 | guest. No additional software needs to be installed on the host.
|
---|
2140 | Additionally, text mode output to stdout and stderr can be shown
|
---|
2141 | on the host for further processing. There are options to specify
|
---|
2142 | user credentials and a timeout value, in milliseconds, to limit
|
---|
2143 | the time the application is able to run.
|
---|
2144 | </para>
|
---|
2145 |
|
---|
2146 | <para>
|
---|
2147 | The Guest Additions for Windows allow for automatic updating. This
|
---|
2148 | applies for already installed Guest Additions versions. Also,
|
---|
2149 | copying files from host to the guest as well as remotely creating
|
---|
2150 | guest directories is available.
|
---|
2151 | </para>
|
---|
2152 |
|
---|
2153 | <para>
|
---|
2154 | To use these features, use the &product-name; command line. See
|
---|
2155 | <xref linkend="vboxmanage-guestcontrol" />.
|
---|
2156 | </para>
|
---|
2157 |
|
---|
2158 | </sect1>
|
---|
2159 |
|
---|
2160 | <sect1 id="guestadd-memory-usage">
|
---|
2161 |
|
---|
2162 | <title>Memory Overcommitment</title>
|
---|
2163 |
|
---|
2164 | <para>
|
---|
2165 | In server environments with many VMs, the Guest Additions can be
|
---|
2166 | used to share physical host memory between several VMs. This
|
---|
2167 | reduces the total amount of memory in use by the VMs. If memory
|
---|
2168 | usage is the limiting factor and CPU resources are still
|
---|
2169 | available, this can help with running more VMs on each host.
|
---|
2170 | </para>
|
---|
2171 |
|
---|
2172 | <sect2 id="guestadd-balloon">
|
---|
2173 |
|
---|
2174 | <title>Memory Ballooning</title>
|
---|
2175 |
|
---|
2176 | <para>
|
---|
2177 | The Guest Additions can change the amount of host memory that a
|
---|
2178 | VM uses, while the machine is running. Because of how this is
|
---|
2179 | implemented, this feature is called <emphasis>memory
|
---|
2180 | ballooning</emphasis>.
|
---|
2181 | </para>
|
---|
2182 |
|
---|
2183 | <note>
|
---|
2184 | <itemizedlist>
|
---|
2185 |
|
---|
2186 | <listitem>
|
---|
2187 | <para>
|
---|
2188 | &product-name; supports memory ballooning only on 64-bit
|
---|
2189 | hosts. It is not supported on Mac OS X hosts.
|
---|
2190 | </para>
|
---|
2191 | </listitem>
|
---|
2192 |
|
---|
2193 | <listitem>
|
---|
2194 | <para>
|
---|
2195 | Memory ballooning does not work with large pages enabled.
|
---|
2196 | To turn off large pages support for a VM, run
|
---|
2197 | <command>VBoxManage modifyvm
|
---|
2198 | <replaceable>vmname</replaceable> --largepages
|
---|
2199 | off</command>
|
---|
2200 | </para>
|
---|
2201 | </listitem>
|
---|
2202 |
|
---|
2203 | </itemizedlist>
|
---|
2204 | </note>
|
---|
2205 |
|
---|
2206 | <para>
|
---|
2207 | Normally, to change the amount of memory allocated to a virtual
|
---|
2208 | machine, you have to shut down the virtual machine entirely and
|
---|
2209 | modify its settings. With memory ballooning, memory that was
|
---|
2210 | allocated for a virtual machine can be given to another virtual
|
---|
2211 | machine without having to shut the machine down.
|
---|
2212 | </para>
|
---|
2213 |
|
---|
2214 | <para>
|
---|
2215 | When memory ballooning is requested, the &product-name; Guest
|
---|
2216 | Additions, which run inside the guest, allocate physical memory
|
---|
2217 | from the guest operating system on the kernel level and lock
|
---|
2218 | this memory down in the guest. This ensures that the guest will
|
---|
2219 | not use that memory any longer. No guest applications can
|
---|
2220 | allocate it, and the guest kernel will not use it either.
|
---|
2221 | &product-name; can then reuse this memory and give it to another
|
---|
2222 | virtual machine.
|
---|
2223 | </para>
|
---|
2224 |
|
---|
2225 | <para>
|
---|
2226 | The memory made available through the ballooning mechanism is
|
---|
2227 | only available for reuse by &product-name;. It is
|
---|
2228 | <emphasis>not</emphasis> returned as free memory to the host.
|
---|
2229 | Requesting balloon memory from a running guest will therefore
|
---|
2230 | not increase the amount of free, unallocated memory on the host.
|
---|
2231 | Effectively, memory ballooning is therefore a memory
|
---|
2232 | overcommitment mechanism for multiple virtual machines while
|
---|
2233 | they are running. This can be useful to temporarily start
|
---|
2234 | another machine, or in more complicated environments, for
|
---|
2235 | sophisticated memory management of many virtual machines that
|
---|
2236 | may be running in parallel depending on how memory is used by
|
---|
2237 | the guests.
|
---|
2238 | </para>
|
---|
2239 |
|
---|
2240 | <para>
|
---|
2241 | At this time, memory ballooning is only supported through
|
---|
2242 | <command>VBoxManage</command>. Use the following command to
|
---|
2243 | increase or decrease the size of the memory balloon within a
|
---|
2244 | running virtual machine that has Guest Additions installed:
|
---|
2245 | </para>
|
---|
2246 |
|
---|
2247 | <screen>VBoxManage controlvm "VM name" guestmemoryballoon n</screen>
|
---|
2248 |
|
---|
2249 | <para>
|
---|
2250 | where <replaceable>VM name</replaceable> is the name or UUID of
|
---|
2251 | the virtual machine in question and <replaceable>n</replaceable>
|
---|
2252 | is the amount of memory to allocate from the guest in megabytes.
|
---|
2253 | See <xref
|
---|
2254 | linkend="vboxmanage-controlvm" />.
|
---|
2255 | </para>
|
---|
2256 |
|
---|
2257 | <para>
|
---|
2258 | You can also set a default balloon that will automatically be
|
---|
2259 | requested from the VM every time after it has started up with
|
---|
2260 | the following command:
|
---|
2261 | </para>
|
---|
2262 |
|
---|
2263 | <screen>VBoxManage modifyvm "VM name" --guestmemoryballoon n</screen>
|
---|
2264 |
|
---|
2265 | <para>
|
---|
2266 | By default, no balloon memory is allocated. This is a VM
|
---|
2267 | setting, like other <command>modifyvm</command> settings, and
|
---|
2268 | therefore can only be set while the machine is shut down. See
|
---|
2269 | <xref
|
---|
2270 | linkend="vboxmanage-modifyvm" />.
|
---|
2271 | </para>
|
---|
2272 |
|
---|
2273 | </sect2>
|
---|
2274 |
|
---|
2275 | <sect2 id="guestadd-pagefusion">
|
---|
2276 |
|
---|
2277 | <title>Page Fusion</title>
|
---|
2278 |
|
---|
2279 | <para>
|
---|
2280 | Whereas memory ballooning simply reduces the amount of RAM that
|
---|
2281 | is available to a VM, Page Fusion works differently. It avoids
|
---|
2282 | memory duplication between several similar running VMs.
|
---|
2283 | </para>
|
---|
2284 |
|
---|
2285 | <para>
|
---|
2286 | In a server environment running several similar VMs on the same
|
---|
2287 | host, lots of memory pages are identical. For example, if the
|
---|
2288 | VMs are using identical operating systems. &product-name;'s Page
|
---|
2289 | Fusion technology can efficiently identify these identical
|
---|
2290 | memory pages and share them between multiple VMs.
|
---|
2291 | </para>
|
---|
2292 |
|
---|
2293 | <note>
|
---|
2294 | <para>
|
---|
2295 | &product-name; supports Page Fusion only on 64-bit hosts, and
|
---|
2296 | it is not supported on Mac OS X hosts. Page Fusion currently
|
---|
2297 | works only with Windows 2000 and later guests.
|
---|
2298 | </para>
|
---|
2299 | </note>
|
---|
2300 |
|
---|
2301 | <para>
|
---|
2302 | The more similar the VMs on a given host are, the more
|
---|
2303 | efficiently Page Fusion can reduce the amount of host memory
|
---|
2304 | that is in use. It therefore works best if all VMs on a host run
|
---|
2305 | identical operating systems. Instead of having a complete copy
|
---|
2306 | of each operating system in each VM, Page Fusion identifies the
|
---|
2307 | identical memory pages in use by these operating systems and
|
---|
2308 | eliminates the duplicates, sharing host memory between several
|
---|
2309 | machines. This is called <emphasis>deduplication</emphasis>. If
|
---|
2310 | a VM tries to modify a page that has been shared with other VMs,
|
---|
2311 | a new page is allocated again for that VM with a copy of the
|
---|
2312 | shared page. This is called <emphasis>copy on write</emphasis>.
|
---|
2313 | All this is fully transparent to the virtual machine.
|
---|
2314 | </para>
|
---|
2315 |
|
---|
2316 | <para>
|
---|
2317 | You may be familiar with this kind of memory overcommitment from
|
---|
2318 | other hypervisor products, which call this feature
|
---|
2319 | <emphasis>page sharing</emphasis> or <emphasis>same page
|
---|
2320 | merging</emphasis>. However, Page Fusion differs significantly
|
---|
2321 | from those other solutions, whose approaches have several
|
---|
2322 | drawbacks:
|
---|
2323 | </para>
|
---|
2324 |
|
---|
2325 | <itemizedlist>
|
---|
2326 |
|
---|
2327 | <listitem>
|
---|
2328 | <para>
|
---|
2329 | Traditional hypervisors scan <emphasis>all</emphasis> guest
|
---|
2330 | memory and compute checksums, also called hashes, for every
|
---|
2331 | single memory page. Then, they look for pages with identical
|
---|
2332 | hashes and compare the entire content of those pages. If two
|
---|
2333 | pages produce the same hash, it is very likely that the
|
---|
2334 | pages are identical in content. This process can take rather
|
---|
2335 | long, especially if the system is not idling. As a result,
|
---|
2336 | the additional memory only becomes available after a
|
---|
2337 | significant amount of time, such as hours or sometimes days.
|
---|
2338 | Even worse, this kind of page sharing algorithm generally
|
---|
2339 | consumes significant CPU resources and increases the
|
---|
2340 | virtualization overhead by 10 to 20%.
|
---|
2341 | </para>
|
---|
2342 |
|
---|
2343 | <para>
|
---|
2344 | Page Fusion in &product-name; uses logic in the
|
---|
2345 | &product-name; Guest Additions to quickly identify memory
|
---|
2346 | cells that are most likely identical across VMs. It can
|
---|
2347 | therefore achieve most of the possible savings of page
|
---|
2348 | sharing almost immediately and with almost no overhead.
|
---|
2349 | </para>
|
---|
2350 | </listitem>
|
---|
2351 |
|
---|
2352 | <listitem>
|
---|
2353 | <para>
|
---|
2354 | Page Fusion is also much less likely to be confused by
|
---|
2355 | identical memory that it will eliminate, just to learn
|
---|
2356 | seconds later that the memory will now change and having to
|
---|
2357 | perform a highly expensive and often service-disrupting
|
---|
2358 | reallocation.
|
---|
2359 | </para>
|
---|
2360 | </listitem>
|
---|
2361 |
|
---|
2362 | </itemizedlist>
|
---|
2363 |
|
---|
2364 | <para>
|
---|
2365 | At this time, Page Fusion can only be controlled with
|
---|
2366 | <command>VBoxManage</command>, and only while a VM is shut down.
|
---|
2367 | To enable Page Fusion for a VM, use the following command:
|
---|
2368 | </para>
|
---|
2369 |
|
---|
2370 | <screen>VBoxManage modifyvm "VM name" --pagefusion on</screen>
|
---|
2371 |
|
---|
2372 | <para>
|
---|
2373 | You can observe Page Fusion operation using some metrics.
|
---|
2374 | <literal>RAM/VMM/Shared</literal> shows the total amount of
|
---|
2375 | fused pages, whereas the per-VM metric
|
---|
2376 | <literal>Guest/RAM/Usage/Shared</literal> will return the amount
|
---|
2377 | of fused memory for a given VM. See
|
---|
2378 | <xref linkend="vboxmanage-metrics" /> for information on how to
|
---|
2379 | query metrics.
|
---|
2380 | </para>
|
---|
2381 |
|
---|
2382 | <note>
|
---|
2383 | <para>
|
---|
2384 | Enabling Page Fusion might indirectly increase the chances for
|
---|
2385 | malicious guests to successfully attack other VMs running on
|
---|
2386 | the same host. See <xref linkend="pot-insecure"/>.
|
---|
2387 | </para>
|
---|
2388 | </note>
|
---|
2389 |
|
---|
2390 | </sect2>
|
---|
2391 |
|
---|
2392 | </sect1>
|
---|
2393 |
|
---|
2394 | <sect1 id="guestadd-resizing">
|
---|
2395 |
|
---|
2396 | <title>Controlling Virtual Monitor Topology</title>
|
---|
2397 |
|
---|
2398 | <sect2 id="guestadd-resizing-linux">
|
---|
2399 |
|
---|
2400 | <title>X11/Wayland Desktop Environments</title>
|
---|
2401 |
|
---|
2402 | <para>
|
---|
2403 | The Guest Additions provide services for controlling the guest
|
---|
2404 | system's monitor topology. Monitor topology means the resolution
|
---|
2405 | of each virtual monitor and its state (disabled/enabled). The
|
---|
2406 | resolution of a virtual monitor can be modified from the host
|
---|
2407 | side either by resizing the window that hosts the virtual monitor,
|
---|
2408 | through the view menu or through
|
---|
2409 | <code>VBoxManage controlvm "vmname" setscreenlayout</code>.
|
---|
2410 | On guest operating systems with X11/Wayland desktops this is
|
---|
2411 | put into effect by either of two following services:
|
---|
2412 | </para>
|
---|
2413 |
|
---|
2414 | <screen>
|
---|
2415 | VBoxClient --vmsvga
|
---|
2416 | VBoxDRMClient
|
---|
2417 | </screen>
|
---|
2418 |
|
---|
2419 | <para>
|
---|
2420 | Here are some details about guest screen resolution control
|
---|
2421 | functionality:
|
---|
2422 | </para>
|
---|
2423 |
|
---|
2424 | <itemizedlist>
|
---|
2425 |
|
---|
2426 | <listitem>
|
---|
2427 | <para>
|
---|
2428 | On X11/Wayland desktops the resizing service is started during
|
---|
2429 | desktop session initialization, that is desktop login. On X11
|
---|
2430 | desktops <code>VBoxClient --vmsvga</code> handles screen
|
---|
2431 | topology through the RandR extension.
|
---|
2432 | On Wayland clients <code>VBoxDRMClient</code> is used. The
|
---|
2433 | decision is made automatically at each desktop session start.
|
---|
2434 | </para>
|
---|
2435 | </listitem>
|
---|
2436 | <listitem>
|
---|
2437 | <para>
|
---|
2438 | On 32 bit guest operating systems <code>VBoxDRMClient</code>
|
---|
2439 | is always used, in order to work around bugs.
|
---|
2440 | </para>
|
---|
2441 | </listitem>
|
---|
2442 | <listitem>
|
---|
2443 | <para>
|
---|
2444 | Since the mentioned monitor topology control services are
|
---|
2445 | initialized during the desktop session start, it is impossible
|
---|
2446 | to control the monitor resolution of display managers such as
|
---|
2447 | gdm, lightdm. This default behavior can be changed by setting
|
---|
2448 | the guest property <code>/VirtualBox/GuestAdd/DRMResize</code>
|
---|
2449 | of the virtual machine to any value. Please refer to
|
---|
2450 | <xref linkend="guestadd-guestprops" /> for updating guest
|
---|
2451 | properties. When this guest property is set then
|
---|
2452 | <code>VBoxDRMClient</code> is started during the guest OS boot
|
---|
2453 | and stays active all the time, for both ithe display manager
|
---|
2454 | login screen and the desktop session.
|
---|
2455 | </para>
|
---|
2456 | </listitem>
|
---|
2457 |
|
---|
2458 | </itemizedlist>
|
---|
2459 |
|
---|
2460 | <sect3 id="guestadd-resizing-linux-limitations">
|
---|
2461 |
|
---|
2462 | <title>Known Limitations</title>
|
---|
2463 | <para>
|
---|
2464 | <code>VBoxDRMClient</code> is not able to handle arbitrary guest
|
---|
2465 | monitor topologies. Specifically, disabling a guest monitor
|
---|
2466 | (except the last one) invalidates the monitor topology due to
|
---|
2467 | limitations in the Linux kernel module <code>vmwgfx.ko</code>.
|
---|
2468 | iFor example, when the guest is configured to have 4 monitors
|
---|
2469 | it is not recommended to disable the 2nd or 3rd monitor.
|
---|
2470 | </para>
|
---|
2471 |
|
---|
2472 | </sect3>
|
---|
2473 |
|
---|
2474 | </sect2>
|
---|
2475 |
|
---|
2476 | </sect1>
|
---|
2477 |
|
---|
2478 | </chapter>
|
---|