VirtualBox

source: vbox/trunk/doc/manual/en_US/user_BasicConcepts.xml@ 39407

Last change on this file since 39407 was 39407, checked in by vboxsync, 13 years ago

doc/manual: some more detailed notes regarding the minimum amount of the guest video RAM

File size: 62.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
4<chapter id="BasicConcepts">
5 <title>Configuring virtual machines</title>
6
7 <para>Whereas <xref linkend="Introduction" /> gave you a quick introduction
8 to VirtualBox and how to get your first virtual machine running, the
9 following chapter describes in detail how to configure virtual
10 machines.</para>
11
12 <para>You have considerable latitude in deciding what virtual hardware will
13 be provided to the guest. The virtual hardware can be used for communicating
14 with the host system or with other guests. For instance, if you provide
15 VirtualBox with the image of a CD-ROM in an ISO file, VirtualBox can present
16 this image to a guest system as if it were a physical CD-ROM. Similarly, you
17 can give a guest system access to the real network via its virtual network
18 card, and, if you so choose, give the host system, other guests, or
19 computers on the Internet access to the guest system.</para>
20
21 <sect1>
22 <title id="guestossupport">Supported guest operating systems</title>
23
24 <para>Since VirtualBox is designed to provide a generic virtualization
25 environment for x86 systems, it may run operating systems of any kind,
26 even those not listed here. However, the focus is to optimize VirtualBox
27 for the following guest systems:</para>
28
29 <para><glosslist>
30 <glossentry>
31 <glossterm>Windows NT 4.0</glossterm>
32
33 <glossdef>
34 <para>All versions, editions and service packs are fully
35 supported; however, there are some issues with older service
36 packs. We recommend to install service pack 6a. Guest Additions
37 are available with a limited feature set.</para>
38 </glossdef>
39 </glossentry>
40
41 <glossentry>
42 <glossterm>Windows 2000 / XP / Server 2003 / Vista / Server 2008 /
43 Windows 7</glossterm>
44
45 <glossdef>
46 <para>All versions, editions and service packs are fully supported
47 (including 64-bit versions, under the preconditions listed below).
48 Guest Additions are available.</para>
49 </glossdef>
50 </glossentry>
51
52 <glossentry>
53 <glossterm>DOS / Windows 3.x / 95 / 98 / ME</glossterm>
54
55 <glossdef>
56 <para>Limited testing has been performed. Use beyond legacy
57 installation mechanisms not recommended. No Guest Additions
58 available.</para>
59 </glossdef>
60 </glossentry>
61
62 <glossentry>
63 <glossterm>Linux 2.4</glossterm>
64
65 <glossdef>
66 <para>Limited support.</para>
67 </glossdef>
68 </glossentry>
69
70 <glossentry>
71 <glossterm>Linux 2.6</glossterm>
72
73 <glossdef>
74 <para>All versions/editions are fully supported (32 bits and 64
75 bits). Guest Additions are available.</para>
76
77 <para>We strongly recommend using a Linux kernel version 2.6.13 or
78 higher for better performance.<note>
79 <para>Certain Linux kernel releases have bugs that prevent
80 them from executing in a virtual environment; please see <xref
81 linkend="trouble-linux-buggy" /> for details.</para>
82 </note></para>
83 </glossdef>
84 </glossentry>
85
86 <glossentry>
87 <glossterm>Solaris 10, OpenSolaris</glossterm>
88
89 <glossdef>
90 <para>Fully supported (32 bits and 64 bits). Guest Additions are
91 available.</para>
92 </glossdef>
93 </glossentry>
94
95 <glossentry>
96 <glossterm>FreeBSD</glossterm>
97
98 <glossdef>
99 <para>Requires hardware virtualization to be enabled. Limited
100 support. Guest Additions are not available yet.</para>
101 </glossdef>
102 </glossentry>
103
104 <glossentry>
105 <glossterm>OpenBSD</glossterm>
106
107 <glossdef>
108 <para>Requires hardware virtualization to be enabled. Versions 3.7
109 and later are supported. Guest Additions are not available
110 yet.</para>
111 </glossdef>
112 </glossentry>
113
114 <glossentry>
115 <glossterm>OS/2 Warp 4.5</glossterm>
116
117 <glossdef>
118 <para>Requires hardware virtualization to be enabled. We
119 officially support MCP2 only; other OS/2 versions may or may not
120 work. Guest Additions are available with a limited feature
121 set.<footnote>
122 <para>See <xref linkend="KnownIssues" />.</para>
123 </footnote></para>
124 </glossdef>
125 </glossentry>
126
127 <glossentry>
128 <glossterm>Mac OS X Server</glossterm>
129
130 <glossdef>
131 <para>VirtualBox 3.2 added experimental support for Mac OS X
132 Server guests, but this comes with restrictions. Please see the
133 following section as well as <xref
134 linkend="KnownIssues" />.</para>
135 </glossdef>
136 </glossentry>
137 </glosslist></para>
138
139 <sect2 id="intro-macosxguests">
140 <title>Mac OS X Server guests</title>
141
142 <para>Starting with version 3.2, VirtualBox has experimental support for
143 Mac OS X Server guests. This allows you to install and execute
144 unmodified versions of Mac OS X Server on supported host
145 hardware.</para>
146
147 <para>Whereas competing solutions perform modifications to the Mac OS X
148 Server install DVDs (e.g. different boot loader and replaced files),
149 VirtualBox is the first product to provide the modern PC architecture
150 expected by OS X without requiring any "hacks".</para>
151
152 <para>You should be aware of a number of <emphasis role="bold">important
153 issues</emphasis> before attempting to install a Mac OS X Server
154 guest:<orderedlist>
155 <listitem>
156 <para>Mac OS X is commercial, licensed software and contains
157 <emphasis role="bold">both license and technical
158 restrictions</emphasis> that limit its use to certain hardware and
159 usage scenarios. It is important that you understand and obey
160 these restrictions.</para>
161
162 <para>In particular, for most versions of Mac OS X Server, Apple
163 prohibits installing them on non-Apple hardware. Also, only the
164 server versions of Mac OS X are designed to be used in a virtual
165 environment; as a result, VirtualBox does not support client
166 versions of Mac OS X as a guest.</para>
167
168 <para>These license restrictions are also enforced on a technical
169 level. Mac OS X Server verifies whether it is running on Apple
170 hardware, and most DVDs that that come with Apple hardware even
171 check for an exact model. These restrictions are
172 <emphasis>not</emphasis> circumvented by VirtualBox and continue
173 to apply.</para>
174 </listitem>
175
176 <listitem>
177 <para>Only <emphasis role="bold">CPUs</emphasis> known and tested
178 by Apple are supported. As a result, if your Intel CPU is newer
179 than the build of Mac OS X Server, or if you have a non-Intel CPU,
180 it will most likely panic during bootup with an "Unsupported CPU"
181 exception. It is generally best to use the Mac OS X Server DVD
182 that came with your Apple hardware.</para>
183 </listitem>
184
185 <listitem>
186 <para>The Mac OS X Server installer expects the harddisk to be
187 <emphasis role="bold">partitioned</emphasis> so when it does not
188 offer a selection, you have to launch the Disk Utility from the
189 "Tools" menu and partition the hard disk. Then close the Disk
190 Utility and proceed with the installation.</para>
191 </listitem>
192
193 <listitem>
194 <para>In addition, as Mac OS X Server support in VirtualBox is
195 currently still experimental, please refer also to <xref
196 linkend="KnownIssues" />.</para>
197 </listitem>
198 </orderedlist></para>
199 </sect2>
200
201 <sect2 id="intro-64bitguests">
202 <title>64-bit guests</title>
203
204 <para>VirtualBox supports 64-bit guest operating systems, even on 32-bit
205 host operating systems,<footnote>
206 <para>64-bit guest support was added with VirtualBox 2.0; support
207 for 64-bit guests on 32-bit hosts was added with VirtualBox
208 2.1.</para>
209 </footnote> provided that the following conditions are
210 met:<orderedlist>
211 <listitem>
212 <para>You need a 64-bit processor with hardware virtualization
213 support (see <xref linkend="hwvirt" />).</para>
214 </listitem>
215
216 <listitem>
217 <para>You must enable hardware virtualization for the particular
218 VM for which you want 64-bit support; software virtualization is
219 not supported for 64-bit VMs.</para>
220 </listitem>
221
222 <listitem>
223 <para>If you want to use 64-bit guest support on a 32-bit host
224 operating system, you must also select a 64-bit operating system
225 for the particular VM. Since supporting 64 bits on 32-bit hosts
226 incurs additional overhead, VirtualBox only enables this support
227 upon explicit request.</para>
228
229 <para>On 64-bit hosts (which typically come with hardware
230 virtualization support), 64-bit guest operating systems are always
231 supported regardless of settings, so you can simply install a
232 64-bit operating system in the guest.</para>
233 </listitem>
234 </orderedlist></para>
235
236 <para><warning>
237 <para>On any host, you should enable the <emphasis role="bold">I/O
238 APIC</emphasis> for virtual machines that you intend to use in
239 64-bit mode. This is especially true for 64-bit Windows VMs. See
240 <xref linkend="settings-general-advanced" />. In addition, for
241 64-bit Windows guests, you should make sure that the VM uses the
242 <emphasis role="bold">Intel networking device</emphasis>, since
243 there is no 64-bit driver support for the AMD PCNet card; see <xref
244 linkend="nichardware" />.</para>
245 </warning></para>
246
247 <para>If you use the "Create VM" wizard of the VirtualBox graphical user
248 interface (see <xref linkend="gui-createvm" />), VirtualBox will
249 automatically use the correct settings for each selected 64-bit
250 operating system type.</para>
251 </sect2>
252 </sect1>
253
254 <sect1>
255 <title>Emulated hardware</title>
256
257 <para>VirtualBox virtualizes nearly all hardware of the host. Depending on
258 a VM's configuration, the guest will see the following virtual
259 hardware:<itemizedlist>
260 <listitem>
261 <para><emphasis role="bold">Input devices.</emphasis> By default,
262 VirtualBox emulates a standard PS/2 keyboard and mouse. These
263 devices are supported by almost all past and present operating
264 systems.</para>
265
266 <para>In addition, VirtualBox can provide virtual USB input devices
267 to avoid having to capture mouse and keyboard, as described in <xref
268 linkend="keyb_mouse_normal" />.</para>
269 </listitem>
270
271 <listitem>
272 <para><emphasis role="bold">Graphics.</emphasis> The VirtualBox
273 graphics device (sometimes referred to as VGA device) is, unlike
274 nearly all other emulated devices, not based on any physical
275 counterpart. It is a simple, synthetic device which provides
276 compatibility with standard VGA and several extended registers used
277 by the VESA BIOS Extensions (VBE).</para>
278 </listitem>
279
280 <listitem>
281 <para><emphasis role="bold">Storage.</emphasis> VirtualBox currently
282 emulates the standard ATA interface found on Intel PIIX3/PIIX4
283 chips, the SATA (AHCI) interface, and two SCSI adapters (LSI Logic
284 and BusLogic); see <xref linkend="harddiskcontrollers" /> for
285 details. Whereas providing one of these would be enough for
286 VirtualBox by itself, this multitude of storage adapters is required
287 for compatibility with other hypervisors. Windows is particularly
288 picky about its boot devices, and migrating VMs between hypervisors
289 is very difficult or impossible if the storage controllers are
290 different.</para>
291 </listitem>
292
293 <listitem>
294 <para><emphasis role="bold">Networking.</emphasis> See <xref
295 linkend="nichardware" />.</para>
296 </listitem>
297
298 <listitem>
299 <para><emphasis role="bold">USB.</emphasis> VirtualBox emulates two
300 USB host controllers, EHCI and OHCI. There is a need for two host
301 controllers because OHCI only handles USB low- and full-speed
302 devices (both USB 1.x and 2.0), while EHCI only handles high-speed
303 devices (USB 2.0 only). The emulated USB controllers do not
304 communicate directly with devices on the host but rather with a
305 virtual USB layer which abstracts the USB protocol and allows the
306 use of remote USB devices.</para>
307 </listitem>
308
309 <listitem>
310 <para><emphasis role="bold">Audio.</emphasis> See <xref
311 linkend="settings-audio" />.</para>
312 </listitem>
313 </itemizedlist></para>
314 </sect1>
315
316 <sect1 id="generalsettings">
317 <title>General settings</title>
318
319 <para>In the Settings window, under "General", you can configure the most
320 fundamental aspects of the virtual machine such as memory and essential
321 hardware. There are three tabs, "Basic", "Advanced" and
322 "Description".</para>
323
324 <sect2>
325 <title>"Basic" tab</title>
326
327 <para>Under the "Basic" tab of the "General" settings category, you can
328 find these settings:</para>
329
330 <glosslist>
331 <glossentry>
332 <glossterm>Name</glossterm>
333
334 <glossdef>
335 <para>The name under which the VM is shown in the list of VMs in
336 the main window. Under this name, VirtualBox also saves the VM's
337 configuration files. By changing the name, VirtualBox renames
338 these files as well. As a result, you can only use characters
339 which are allowed in your host operating system's file
340 names.</para>
341
342 <para>Note that internally, VirtualBox uses unique identifiers
343 (UUIDs) to identify virtual machines. You can display these with
344 <computeroutput>VBoxManage</computeroutput>.</para>
345 </glossdef>
346 </glossentry>
347
348 <glossentry>
349 <glossterm>Operating system / version</glossterm>
350
351 <glossdef>
352 <para>The type of the guest operating system that is (or will be)
353 installed in the VM. This is the same setting that was specified
354 in the "New Virtual Machine" wizard, as described in <xref
355 linkend="gui-createvm" />.</para>
356
357 <para>Whereas the default settings of a newly created VM depend on
358 the selected operating system type, changing the type later has no
359 effect on VM settings; this value is then purely informational and
360 decorative.</para>
361 </glossdef>
362 </glossentry>
363 </glosslist>
364 </sect2>
365
366 <sect2 id="settings-general-advanced">
367 <title>"Advanced" tab</title>
368
369 <para><glosslist>
370 <glossentry>
371 <glossterm>Snapshot folder</glossterm>
372
373 <glossdef>
374 <para>By default, VirtualBox saves snapshot data together with
375 your other VirtualBox configuration data; see <xref
376 linkend="vboxconfigdata" />. With this setting, you can specify
377 any other folder for each VM.</para>
378 </glossdef>
379 </glossentry>
380
381 <glossentry>
382 <glossterm>Shared clipboard</glossterm>
383
384 <glossdef>
385 <para>You can select here whether the clipboard of the guest
386 operating system should be shared with that of your host. If you
387 select "Bidirectional", then VirtualBox will always make sure
388 that both clipboards contain the same data. If you select "Host
389 to guest" or "Guest to host", then VirtualBox will only ever
390 copy clipboard data in one direction.</para>
391
392 <para>Clipboard sharing requires that the VirtualBox Guest
393 Additions be installed. As a result, this setting has no effect
394 otherwise; see <xref linkend="guestadditions" /> for
395 details.</para>
396 </glossdef>
397 </glossentry>
398
399 <glossentry>
400 <glossterm>Removable media: remember runtime changes</glossterm>
401
402 <glossdef>
403 <para>If this is checked, VirtualBox will save the state of what
404 media has been mounted between several runs of a virtual
405 machine.</para>
406 </glossdef>
407 </glossentry>
408
409 <glossentry>
410 <glossterm>Mini toolbar</glossterm>
411
412 <glossdef>
413 <para>In full screen or seamless mode, VirtualBox can display a
414 small toolbar that contains some of the items that are normally
415 available from the virtual machine's menu bar. This toolbar
416 reduces itself to a small gray line unless you move the mouse
417 over it. With the toolbar, you can return from full screen or
418 seamless mode, control machine execution or enable certain
419 devices. If you don't want to see the toolbar, disable this
420 setting.</para>
421 </glossdef>
422 </glossentry>
423 </glosslist></para>
424 </sect2>
425
426 <sect2>
427 <title>"Description" tab</title>
428
429 <para>Here you can enter any description for your virtual machine, if
430 you want. This has no effect on the functionality of the machine, but
431 you may find this space useful to note down things like the
432 configuration of a virtual machine and the software that has been
433 installed into it.</para>
434 </sect2>
435 </sect1>
436
437 <sect1 id="settings-system">
438 <title>System settings</title>
439
440 <para>The "System" category groups various settings that are related to
441 the basic hardware that is presented to the virtual machine.<note>
442 <para>As the activation mechanism of Microsoft Windows is sensitive to
443 hardware changes, if you are changing hardware settings for a Windows
444 guest, some of these changes may trigger a request for another
445 activation with Microsoft.</para>
446 </note></para>
447
448 <sect2 id="settings-motherboard">
449 <title>"Motherboard" tab</title>
450
451 <para>On the "Motherboard" tab, you can influence virtual hardware that
452 would normally be on the motherboard of a real computer.<glosslist>
453 <glossentry>
454 <glossterm>Base memory</glossterm>
455
456 <glossdef>
457 <para>This sets the amount of RAM that is allocated and given to
458 the VM when it is running. The specified amount of memory will
459 be requested from the host operating system, so it must be
460 available or made available as free memory on the host when
461 attempting to start the VM and will not be available to the host
462 while the VM is running. This is the same setting that was
463 specified in the "New Virtual Machine" wizard, as described with
464 guidelines under <xref linkend="gui-createvm" /> above.</para>
465
466 <para>Generally, it is possible to change the memory size after
467 installing the guest operating system (provided you do not
468 reduce the memory to an amount where the operating system would
469 no longer boot).</para>
470 </glossdef>
471 </glossentry>
472
473 <glossentry>
474 <glossterm>Boot order</glossterm>
475
476 <glossdef>
477 <para>This setting determines the order in which the guest
478 operating system will attempt to boot from the various virtual
479 boot devices. Analogous to a real PC's BIOS setting, VirtualBox
480 can tell a guest OS to start from the virtual floppy, the
481 virtual CD/DVD drive, the virtual hard drive (each of these as
482 defined by the other VM settings), the network, or none of
483 these.</para>
484
485 <para>If you select "Network", the VM will attempt to boot from
486 a network via the PXE mechanism. This needs to be configured in
487 detail on the command line; please see <xref
488 linkend="vboxmanage-modifyvm" />.</para>
489 </glossdef>
490 </glossentry>
491
492 <glossentry>
493 <glossterm>Chipset</glossterm>
494
495 <glossdef>
496 <para>Here you can select which chipset will be presented to the
497 virtual machine. Before VirtualBox 4.0, PIIX3 was the only
498 available option here. For modern guest operating systems such
499 as Mac OS X server, that old chipset is no longer well
500 supported. As a result, VirtualBox 4.0 introduced an emulation
501 of the more modern ICH9 chipset, which supports PCI express,
502 three PCI buses, PCI-to-PCI bridges and Message Signalled
503 Interrupts (MSI). This allows modern operating systems to
504 address more PCI devices and no longer requires IRQ sharing.
505 Note that the ICH9 support is experimental and not recommended
506 for guest operating systems which do not require it.</para>
507 </glossdef>
508 </glossentry>
509
510 <glossentry>
511 <glossterm>Enable I/O APIC</glossterm>
512
513 <glossdef>
514 <para>Advanced Programmable Interrupt Controllers (APICs) are a
515 newer x86 hardware feature that have replaced old-style
516 Programmable Interrupt Controllers (PICs) in recent years. With
517 an I/O APIC, operating systems can use more than 16 interrupt
518 requests (IRQs) and therefore avoid IRQ sharing for improved
519 reliability.<note>
520 <para>Enabling the I/O APIC is <emphasis>required</emphasis>
521 for 64-bit guest operating systems, especially Windows
522 Vista; it is also required if you want to use more than one
523 virtual CPU in a virtual machine.</para>
524 </note></para>
525
526 <para>However, software support for I/O APICs has been
527 unreliable with some operating systems other than Windows. Also,
528 the use of an I/O APIC slightly increases the overhead of
529 virtualization and therefore slows down the guest OS a
530 little.<warning>
531 <para>All Windows operating systems starting with Windows
532 2000 install different kernels depending on whether an I/O
533 APIC is available. As with ACPI, the I/O APIC therefore
534 <emphasis>must not be turned off after
535 installation</emphasis> of a Windows guest OS. Turning it on
536 after installation will have no effect however.</para>
537 </warning></para>
538 </glossdef>
539 </glossentry>
540
541 <glossentry>
542 <glossterm>Enable EFI</glossterm>
543
544 <glossdef>
545 <para>This enables Extensible Firmware Interface (EFI), which
546 replaces the legacy BIOS and may be useful for certain
547 advanced use cases. Please refer to <xref linkend="efi" /> for
548 details.</para>
549 </glossdef>
550 </glossentry>
551
552 <glossentry>
553 <glossterm>Hardware clock in UTC time</glossterm>
554
555 <glossdef>
556 <para>If checked, VirtualBox will report the system time in UTC
557 format to the guest instead of local (host) time. This affects
558 how the virtual real-time clock (RTC) operates and may be useful
559 for Unix-like guest operating systems, which typically expect
560 the hardware clock to be set to UTC.</para>
561 </glossdef>
562 </glossentry>
563
564 <glossentry>
565 <glossterm>Enable absolute pointing device</glossterm>
566
567 <glossdef>
568 <para>If enabled, VirtualBox reports to the virtual machine that
569 a USB tablet device is present and communicates mouse events to
570 the virtual machine through this device. If disabled, mouse
571 events are communicated through a traditional PS/2 virtual mouse
572 device.</para>
573
574 <para>Using the virtual USB tablet has the advantage that
575 movements are reported in absolute coordinates (instead of as
576 relative position changes), which allows VirtualBox to translate
577 mouse events over the VM window into tablet events without
578 having to "capture" the mouse in the guest as described in <xref
579 linkend="keyb_mouse_normal" />. This makes using the VM less
580 tedious even if Guest Additions are not installed.<footnote>
581 <para>The virtual USB tablet was added with VirtualBox 3.2.
582 Depending on the guest operating system selected, this is
583 now enabled by default for new virtual machines.</para>
584 </footnote></para>
585 </glossdef>
586 </glossentry>
587 </glosslist></para>
588
589 <para>In addition, you can turn off the <emphasis role="bold">Advanced
590 Configuration and Power Interface (ACPI)</emphasis> which VirtualBox
591 presents to the guest operating system by default. ACPI is the current
592 industry standard to allow operating systems to recognize hardware,
593 configure motherboards and other devices and manage power. As all modern
594 PCs contain this feature and Windows and Linux have been supporting it
595 for years, it is also enabled by default in VirtualBox. It can only be
596 turned off on the command line; see <xref
597 linkend="vboxmanage-modifyvm" />.<warning>
598 <para>All Windows operating systems starting with Windows 2000
599 install different kernels depending on whether ACPI is available, so
600 ACPI <emphasis>must not be turned off</emphasis> after installation
601 of a Windows guest OS. Turning it on after installation will have no
602 effect however.</para>
603 </warning></para>
604 </sect2>
605
606 <sect2 id="settings-processor">
607 <title>"Processor" tab</title>
608
609 <para>On the "Processor" tab, you can set how many virtual <emphasis
610 role="bold">CPU cores</emphasis> the guest operating systems should see.
611 Starting with version 3.0, VirtualBox supports symmetrical
612 multiprocessing (SMP) and can present up to 32 virtual CPU cores to each
613 virtual machine.</para>
614
615 <para>You should not, however, configure virtual machines to use more
616 CPU cores than you have available physically.</para>
617
618 <para>On this tab you can also set the CPU execution cap. This setting
619 limits the amount of time a host CPU spents to emulate a virtual CPU.
620 The default setting is 100% meaning that there is no limitation. A setting
621 of 50% implies a single virtual CPU can use up to 50% of a single host
622 CPU. Notet that limiting the execution time of the virtual CPUs may induce
623 guest timing problems.</para>
624
625 <para>In addition, the <emphasis role="bold">"Enable PAE/NX"</emphasis>
626 setting determines whether the PAE and NX capabilities of the host CPU
627 will be exposed to the virtual machine. PAE stands for "Physical Address
628 Extension". Normally, if enabled and supported by the operating system,
629 then even a 32-bit x86 CPU can access more than 4 GB of RAM. This is
630 made possible by adding another 4 bits to memory addresses, so that with
631 36 bits, up to 64 GB can be addressed. Some operating systems (such as
632 Ubuntu Server) require PAE support from the CPU and cannot be run in a
633 virtual machine without it.</para>
634
635 <para>With virtual machines running modern server operating systems,
636 VirtualBox also supports CPU hot-plugging. For details about this,
637 please refer to <xref linkend="cpuhotplug" />.</para>
638 </sect2>
639
640 <sect2>
641 <title>"Acceleration" tab</title>
642
643 <para>On this page, you can determine whether and how VirtualBox should
644 use hardware virtualization extensions that your host CPU may support.
645 This is the case with most CPUs built after 2006.</para>
646
647 <para>You can select for each virtual machine individually whether
648 VirtualBox should use software or hardware virtualization.<footnote>
649 <para>Prior to VirtualBox version 2.2, software virtualization was
650 the default; starting with version 2.2, VirtualBox will enable
651 hardware virtualization by default for new virtual machines that you
652 create. (Existing virtual machines are not automatically changed for
653 compatibility reasons, and the default can of course be changed for
654 each virtual machine.)</para>
655 </footnote></para>
656
657 <para>In most cases, the default settings will be fine; VirtualBox will
658 have picked sensible defaults depending on the operating system that you
659 selected when you created the virtual machine. In certain situations,
660 however, you may want to change these preconfigured defaults.</para>
661
662 <para>Advanced users may be interested in technical details about
663 software vs. hardware virtualization; please see <xref
664 linkend="hwvirt" />.</para>
665
666 <para>If your host's CPU supports the <emphasis role="bold">nested
667 paging</emphasis> (AMD-V) or <emphasis role="bold">EPT</emphasis> (Intel
668 VT-x) features, then you can expect a significant performance increase
669 by enabling nested paging in addition to hardware virtualization. For
670 technical details, see <xref linkend="nestedpaging" />.</para>
671 </sect2>
672 </sect1>
673
674 <sect1 id="settings-display">
675 <title>Display settings</title>
676
677 <glosslist>
678 <glossentry>
679 <glossterm>Video memory size</glossterm>
680
681 <glossdef>
682 <para>This sets the size of the memory provided by the virtual
683 graphics card available to the guest, in MB. As with the main
684 memory, the specified amount will be allocated from the host's
685 resident memory. Based on the amount of video memory, higher
686 resolutions and color depths may be available.</para>
687 <para>The GUI will show a warning if the amount of video memory
688 is too small to be able to switch the VM into full screen mode.
689 The minimum value depends on the number of virtual monitors, the
690 screen resolution and the color depth of the host display as well
691 as of the activation of <emphasis>3D acceleration</emphasis> and
692 <emphasis>2D video acceleration</emphasis>. A rough estimate
693 is (<emphasis>color depth</emphasis> / 8) x
694 <emphasis>vertical pixels</emphasis> x
695 <emphasis>horizontal pixels</emphasis> x
696 <emphasis>number of screens</emphasis> = <emphasis>number of bytes</emphasis>.
697 Like said above, there might be extra memory required for any
698 activated display acceleration setting.</para>
699 </glossdef>
700 </glossentry>
701
702 <glossentry>
703 <glossterm>Monitor count</glossterm>
704
705 <glossdef>
706 <para>With this setting VirtualBox can provide more than one virtual
707 monitor to a virtual machine. If a guest operating system (such as
708 Windows) supports multiple attached monitors, VirtualBox can pretend
709 that multiple virtual monitors are present.<footnote>
710 <para>Multiple monitor support was added with VirtualBox
711 3.2.</para>
712 </footnote> Up to 8 such virtual monitors are supported.</para>
713
714 <para>The output of the multiple monitors will be displayed on the
715 host in multiple VM windows which are running side by side.</para>
716
717 <para>However, in full screen and seamless mode, they will use the
718 available physical monitors attached to the host. As a result, for
719 full screen and seamless modes to work with multiple monitors, you
720 will need at least as many physical monitors as you have virtual
721 monitors configured, or VirtualBox will report an error. You can
722 configure the relationship between guest and host monitors using the
723 view menu by pressing Host key + Home when you are in full screen or
724 seamless mode.</para>
725
726 <para>Please see <xref linkend="KnownIssues" /> also.</para>
727 </glossdef>
728 </glossentry>
729
730 <glossentry>
731 <glossterm>Enable 3D acceleration</glossterm>
732
733 <glossdef>
734 <para>If a virtual machine has Guest Additions installed, you can
735 select here whether the guest should support accelerated 3D
736 graphics. Please refer to <xref linkend="guestadd-3d" /> for
737 details.</para>
738 </glossdef>
739 </glossentry>
740
741 <glossentry>
742 <glossterm>Enable 2D video acceleration</glossterm>
743
744 <glossdef>
745 <para>If a virtual machine with Microsoft Windows has Guest
746 Additions installed, you can select here whether the guest should
747 support accelerated 2D video graphics. Please refer to <xref
748 linkend="guestadd-2d" /> for details.</para>
749 </glossdef>
750 </glossentry>
751
752 <glossentry>
753 <glossterm>Remote display</glossterm>
754
755 <glossdef>
756 <para>Under the "Remote display" tab, if the VirtualBox Remote
757 Display Extension (VRDE) is installed, you can enable the VRDP server
758 that is built into VirtualBox. This allows you to connect to the
759 console of the virtual machine remotely with any standard RDP viewer,
760 such as <computeroutput>mstsc.exe</computeroutput> that comes with
761 Microsoft Windows. On Linux and Solaris systems you can use the
762 standard open-source <computeroutput>rdesktop</computeroutput>
763 program. These features are described in detail in
764 <xref linkend="vrde" />.</para>
765 </glossdef>
766 </glossentry>
767 </glosslist>
768 </sect1>
769
770 <sect1 id="settings-storage">
771 <title>Storage settings</title>
772
773 <para>The "Storage" category in the VM settings allows you to connect
774 virtual hard disk, CD/DVD and floppy images and drives to your virtual
775 machine.</para>
776
777 <para>In a real PC, so-called "storage controllers" connect physical disk
778 drives to the rest of the computer. Similarly, VirtualBox presents virtual
779 storage controllers to a virtual machine. Under each controller, the
780 virtual devices (hard disks, CD/DVD or floppy drives) attached to the
781 controller are shown.<note>
782 <para>This section can only give you a quick introduction to the
783 VirtualBox storage settings. Since VirtualBox gives you an enormous
784 wealth of options in this area, we have dedicated an entire chapter of
785 this User Manual to explaining all the details: please see <xref
786 linkend="storage" />.</para>
787 </note></para>
788
789 <para>If you have used the "Create VM" wizard to create a machine, you
790 will normally see something like the following:</para>
791
792 <para><mediaobject>
793 <imageobject>
794 <imagedata align="center" fileref="images/vm-settings-harddisk.png"
795 width="10cm" />
796 </imageobject>
797 </mediaobject></para>
798
799 <para>Depending on the guest operating system type that you selected when
800 you created the VM, the typical layout of storage devices in a new VM is
801 as follows:<itemizedlist>
802 <listitem>
803 <para>You will see an <emphasis role="bold">IDE
804 controller,</emphasis> to which a virtual CD/DVD drive has been
805 attached (to the "secondary master" port of the IDE
806 controller).</para>
807 </listitem>
808
809 <listitem>
810 <para>You will also see a <emphasis role="bold">SATA
811 controller,</emphasis> which is a more modern type of storage
812 controller for higher hard disk data throughput, to which the
813 virtual hard disks are attached. Initially you will normally have
814 one such virtual disk, but as you can see in the above screenshot,
815 you can have more than one, each represented by a disk image file
816 (VDI files, in this case).</para>
817 </listitem>
818 </itemizedlist></para>
819
820 <para>If you created your VM with an older version of VirtualBox, the
821 default storage layout may differ. You might then only have an IDE
822 controller to which both the CD/DVD drive and the hard disks have been
823 attached. This might also apply if you selected an older operating system
824 type when you created the VM. Since older operating systems do not support
825 SATA without additional drivers, VirtualBox will make sure that no such
826 devices are present initially. Please see <xref
827 linkend="harddiskcontrollers" /> for additional information.</para>
828
829 <para>VirtualBox also provides a <emphasis role="bold">floppy
830 controller</emphasis>, which is special: you cannot add devices other than
831 floppy drives to it. Virtual floppy drives, like virtual CD/DVD drives,
832 can be connected to either a host floppy drive (if you have one) or a disk
833 image, which in this case must be in RAW format.</para>
834
835 <para>You can modify these media attachments freely. For example, if you
836 wish to copy some files from another virtual disk that you created, you
837 can connect that disk as a second hard disk, as in the above screenshot.
838 You could also add a second virtual CD/DVD drive, or change where these
839 items are attached. The following options are available:<itemizedlist>
840 <listitem>
841 <para>To <emphasis role="bold">add another virtual hard disk, or a
842 CD/DVD or floppy drive,</emphasis> select the storage controller to
843 which it should be added (IDE, SATA, SCSI, SAS, floppy controller)
844 and then click on the "add disk" button below the tree. You can then
845 either select "Add CD/DVD device" or "Add Hard Disk". (If you
846 clicked on a floppy controller, you can add a floppy drive instead.)
847 Alternatively, right-click on the storage controller and select a
848 menu item there.</para>
849
850 <para>On the right part of the window, you can then set the
851 following:<orderedlist>
852 <listitem>
853 <para>You can then select to which <emphasis
854 role="bold">device slot</emphasis> of the controller the
855 virtual disk should be connected to. IDE controllers have four
856 slots which have traditionally been called "primary master",
857 "primary slave", "secondary master" and "secondary slave". By
858 contrast, SATA and SCSI controllers offer you up to 30 slots
859 to which virtual devices can be attached.</para>
860 </listitem>
861
862 <listitem>
863 <para>You can select which <emphasis role="bold">image
864 file</emphasis> to use.<itemizedlist>
865 <listitem>
866 <para>For virtual hard disks, a button with a drop-down
867 list appears on the right, offering you to either select
868 a <emphasis role="bold">virtual hard disk
869 file</emphasis> using a standard file dialog or to
870 <emphasis role="bold">create a new hard disk</emphasis>
871 (image file), which will bring up the "Create new disk"
872 wizard, which was described in <xref
873 linkend="gui-createvm" />.</para>
874
875 <para>For details on the image file types that are
876 supported, please see <xref
877 linkend="vdidetails" />.</para>
878 </listitem>
879
880 <listitem>
881 <para>For virtual CD/DVD drives, the image files will
882 typically be in the standard ISO format instead. Most
883 commonly, you will select this option when installing an
884 operating system from an ISO file that you have obtained
885 from the Internet. For example, most Linux distributions
886 are available in this way.</para>
887
888 <para>For virtual CD/DVD drives, the following
889 additional options are available:</para>
890
891 <para><itemizedlist>
892 <listitem>
893 <para>If you select <emphasis role="bold">"Host
894 drive"</emphasis> from the list, then the physical
895 device of the host computer is connected to the VM,
896 so that the guest operating system can read from and
897 write to your physical device. This is, for
898 instance, useful if you want to install Windows from
899 a real installation CD. In this case, select your
900 host drive from the drop-down list presented.</para>
901
902 <para>If you want to write (burn) CDs or DVDs using
903 the host drive, you need to also enable the
904 <emphasis role="bold">"Passthrough"</emphasis>
905 option; see <xref linkend="storage-cds" />.</para>
906 </listitem>
907
908 <listitem>
909 <para>If you select <emphasis role="bold">"Remove
910 disk from virtual drive",</emphasis> VirtualBox will
911 present an empty CD/DVD drive to the guest into
912 which no media has been inserted.</para>
913 </listitem>
914 </itemizedlist></para>
915 </listitem>
916 </itemizedlist></para>
917 </listitem>
918 </orderedlist></para>
919 </listitem>
920
921 <listitem>
922 <para>To <emphasis role="bold">remove an attachment,</emphasis>
923 select it and click on the "remove" icon at the bottom (or
924 right-click on it and select the menu item).</para>
925 </listitem>
926 </itemizedlist></para>
927
928 <para>Removable media (CD/DVDs and floppies) can be changed while the
929 guest is running. Since the "Settings" dialog is not available at that
930 time, you can also access these settings from the "Devices" menu of your
931 virtual machine window.</para>
932 </sect1>
933
934 <sect1 id="settings-audio">
935 <title>Audio settings</title>
936
937 <para>The "Audio" section in a virtual machine's Settings window
938 determines whether the VM will see a sound card connected, and whether the
939 audio output should be heard on the host system.</para>
940
941 <para>If audio is enabled for a guest, you can choose between the
942 emulation of an Intel AC'97 controller, an Intel HD Audio
943 controller<footnote>
944 <para>Intel HD Audio support was added with VirtualBox 4.0 because
945 Windows 7 (32-bit and 64-bit versions) as well as 64-bit Windows Vista
946 do not support the Intel AC'97 controller.</para>
947 </footnote> or a SoundBlaster 16 card. In any case, you can select what
948 audio driver VirtualBox will use on the host.</para>
949
950 <para>On a Linux host, depending on your host configuration, you can also
951 select between the OSS, ALSA or the PulseAudio subsystem. On newer Linux
952 distributions (Fedora 8 and above, Ubuntu 8.04 and above) the PulseAudio
953 subsystem should be preferred.</para>
954 </sect1>
955
956 <sect1 id="settings-network">
957 <title>Network settings</title>
958
959 <para>The "Network" section in a virtual machine's Settings window allows
960 you to configure how VirtualBox presents virtual network cards to your VM,
961 and how they operate.</para>
962
963 <para>When you first create a virtual machine, VirtualBox by default
964 enables one virtual network card and selects the "Network Address
965 Translation" (NAT) mode for it. This way the guest can connect to the
966 outside world using the host's networking and the outside world can
967 connect to services on the guest which you choose to make visible outside
968 of the virtual machine.</para>
969
970 <para>This default setup is good for probably 95% of VirtualBox users.
971 However, VirtualBox is extremely flexible in how it can virtualize
972 networking. It supports many virtual network cards per virtual machine,
973 the first four of which can be configured in detail in the Manager window.
974 Additional network cards can be configured on the command line with
975 VBoxManage. </para>
976
977 <para>Because of the vast array of options available, we have dedicated an
978 entire chapter of this manual to discussing networking configuration;
979 please see <xref linkend="networkingdetails" />.</para>
980 </sect1>
981
982 <sect1 id="serialports">
983 <title>Serial ports</title>
984
985 <para>VirtualBox fully supports virtual serial ports in a virtual machine
986 in an easy-to-use manner.<footnote>
987 <para>Serial port support was added with VirtualBox 1.5.</para>
988 </footnote></para>
989
990 <para>Ever since the original IBM PC, personal computers have been
991 equipped with one or two serial ports (also called COM ports by DOS and
992 Windows). Serial ports were commonly used with modems, and some
993 computer mice used to be connected to serial ports before USB became
994 commonplace.
995 </para>
996
997 <para>While serial ports are no longer as ubiquitous as they used to be,
998 there are still some important uses left for them. For example, serial
999 ports can be used to set up a primitive network over a null-modem cable,
1000 in case Ethernet is not available. Also, serial ports are indispensable
1001 for system programmers needing to do kernel debugging, since kernel
1002 debugging software usually interacts with developers over a serial port.
1003 With virtual serial ports, system programmers can do kernel debugging on a
1004 virtual machine instead of needing a real computer to connect to.</para>
1005
1006 <para>If a virtual serial port is enabled, the guest operating system sees
1007 a standard 16550A compatible UART device. Both receiving and transmitting
1008 data is supported. How this virtual serial port is then connected to the
1009 host is configurable, and the details depend on your host operating system.
1010 </para>
1011
1012 <para>You can use either the graphical user interface or the command-line
1013 <computeroutput>VBoxManage</computeroutput> tool to set up virtual serial
1014 ports. For the latter, please refer to <xref
1015 linkend="vboxmanage-modifyvm" />; in that section, look for the
1016 <computeroutput>--uart</computeroutput> and
1017 <computeroutput>--uartmode</computeroutput> options.</para>
1018
1019 <para>In either case, you can configure up to two virtual serial ports per
1020 virtual machine. For each such device, you will need to
1021 determine<orderedlist>
1022 <listitem>
1023 <para>what kind of serial port the virtual machine should see by
1024 selecting an I/O base address and interrupt (IRQ). For these, we
1025 recommend to use the traditional values<footnote>
1026 <para>See, for example, <ulink
1027 url="http://en.wikipedia.org/wiki/COM_(hardware_interface)">http://en.wikipedia.org/wiki/COM_(hardware_interface)</ulink>.</para>
1028 </footnote>, which are:</para>
1029
1030 <para><orderedlist>
1031 <listitem>
1032 <para>COM1: I/O base 0x3F8, IRQ 4</para>
1033 </listitem>
1034
1035 <listitem>
1036 <para>COM2: I/O base 0x2F8, IRQ 3</para>
1037 </listitem>
1038
1039 <listitem>
1040 <para>COM3: I/O base 0x3E8, IRQ 4</para>
1041 </listitem>
1042
1043 <listitem>
1044 <para>COM4: I/O base 0x2E8, IRQ 3</para>
1045 </listitem>
1046 </orderedlist></para>
1047 </listitem>
1048
1049 <listitem>
1050 <para>Then, you will need to determine what this virtual port should
1051 be connected to. For each virtual serial port, you have the
1052 following options:</para>
1053
1054 <para><itemizedlist>
1055 <listitem>
1056 <para>You can elect to have the virtual serial port
1057 "disconnected", which means that the guest will see the
1058 device, but it will behave as if no cable had been connected
1059 to it.</para>
1060 </listitem>
1061
1062 <listitem>
1063 <para>You can connect the virtual serial port to a physical
1064 serial port on your host. (On a Windows host, this will be a
1065 name like <computeroutput>COM1</computeroutput>; on Linux or
1066 Solaris hosts, it will be a device node like
1067 <computeroutput>/dev/ttyS0</computeroutput>). VirtualBox will
1068 then simply redirect all data received from and sent to the
1069 virtual serial port to the physical device.</para>
1070 </listitem>
1071
1072 <listitem>
1073 <para>You can tell VirtualBox to connect the virtual serial
1074 port to a software pipe on the host. This depends on your host
1075 operating system:<itemizedlist>
1076 <listitem>
1077 <para>On a Windows host, data will be sent and received
1078 through a named pipe. The pipe name must be in the format
1079 <computeroutput>\\.\pipe\&lt;name&gt;</computeroutput>
1080 where <computeroutput>&lt;name&gt;</computeroutput> should
1081 identify the virtual machine but may be freely
1082 chosen.</para>
1083 <para>For forwarding serial traffic, you can use a helper
1084 program called VMware Serial Line Gateway, available for
1085 download at
1086 <literal> <ulink
1087 url="http://www.l4ka.org/91.php">http://www.l4ka.org/91.php</ulink>
1088 </literal>. This tool provides a fixed server mode named
1089 pipe at
1090 <computeroutput>\\.\pipe\vmwaredebug</computeroutput>
1091 and connects incoming TCP connections on port 567 with
1092 the named pipe.</para>
1093 </listitem>
1094
1095 <listitem>
1096 <para>On a Mac, Linux or Solaris host, a local
1097 domain socket is used instead. The socket filename must be
1098 chosen such that the user running VirtualBox has
1099 sufficient privileges to create and write to it. The
1100 <computeroutput>/tmp</computeroutput> directory is often a
1101 good candidate.</para>
1102 <para>On Linux there are various tools which can connect
1103 to a local domain socket or create one in server mode. The
1104 most flexible tool is
1105 <computeroutput>socat</computeroutput> and is available
1106 as part of many distributions.</para>
1107 </listitem>
1108 </itemizedlist></para>
1109
1110 <para>In this case, you can configure whether VirtualBox
1111 should create the named pipe (or, on non-Windows hosts, the
1112 local domain socket) itself or whether VirtualBox should
1113 assume that the pipe (or socket) exists already. With the
1114 <computeroutput>VBoxManage</computeroutput> command-line
1115 options, this is referred to as "server" or "client" mode,
1116 respectively.</para>
1117
1118 <para>For a direct connection between two virtual machines
1119 (corresponding to a null-modem cable), simply configure one VM
1120 to create a pipe/socket and another to attach to it.
1121 </para>
1122 </listitem>
1123
1124 <listitem>
1125 <para>You can send the virtual serial port output to a file.
1126 This option is very useful for capturing diagnostic output from
1127 a guest. Any file may be used for this purpose, as long as the
1128 user running VirtualBox has sufficient privileges to create and
1129 write to the file.
1130 </para>
1131 </listitem>
1132 </itemizedlist></para>
1133 </listitem>
1134 </orderedlist>Up to two serial ports can be configured per virtual
1135 machine, but you can pick any port numbers out of the above. However,
1136 serial ports cannot reliably share interrupts; if both ports are to be
1137 used at the same time, they must use different interrupt levels, for
1138 example COM1 and COM2, but not COM1 and COM3.
1139 </para>
1140 </sect1>
1141
1142 <sect1>
1143 <title>USB support</title>
1144
1145 <sect2 id="settings-usb">
1146 <title>USB settings</title>
1147
1148 <para>The "USB" section in a virtual machine's Settings window allows
1149 you to configure VirtualBox's sophisticated USB support.</para>
1150
1151 <para>VirtualBox can allow virtual machines to access the USB devices on
1152 your host directly. To achieve this, VirtualBox presents the guest
1153 operating system with a virtual USB controller. As soon as the guest
1154 system starts using a USB device, it will appear as unavailable on the
1155 host.<note>
1156 <orderedlist>
1157 <listitem>
1158 <para>Be careful with USB devices that are currently in use on
1159 the host! For example, if you allow your guest to connect to
1160 your USB hard disk that is currently mounted on the host, when
1161 the guest is activated, it will be disconnected from the host
1162 without a proper shutdown. This may cause data loss.</para>
1163 </listitem>
1164
1165 <listitem>
1166 <para>Solaris hosts have a few known limitations regarding USB
1167 support; please see <xref linkend="KnownIssues" />.</para>
1168 </listitem>
1169 </orderedlist>
1170 </note></para>
1171
1172 <para>In addition to allowing a guest access to your local USB devices,
1173 VirtualBox even allows your guests to connect to remote USB devices by
1174 use of the VirtualBox Remote Desktop Extension (VRDE). For details about
1175 this, see <xref linkend="usb-over-rdp" />.</para>
1176
1177 <para>In the Settings dialog, you can first configure whether USB is
1178 available in the guest at all, and in addition also optionally enable
1179 the USB 2.0 (EHCI) controller for the guest. If so, you can determine in
1180 detail which devices are available. For this, you must create so-called
1181 "filters" by specifying certain properties of the USB device.<note>
1182 <para>The EHCI controller is shipped as a VirtualBox extension
1183 package, which must be installed separately. See <xref
1184 linkend="intro-installing" /> for more information.</para>
1185 </note></para>
1186
1187 <para>Clicking on the "+" button to the right of the "USB Device
1188 Filters" window creates a <emphasis role="bold">new filter.</emphasis>
1189 You can give the filter a name (for referencing it later) and specify
1190 the filter criteria. The more criteria you specify, the more precisely
1191 devices will be selected. For instance, if you specify only a vendor ID
1192 of 046d, all devices produced by Logitech will be available to the
1193 guest. If you fill in all fields, on the other hand, the filter will
1194 only apply to a particular device model from a particular vendor, and
1195 not even to other devices of the same type with a different revision and
1196 serial number.</para>
1197
1198 <para>In detail, the following criteria are available:</para>
1199
1200 <orderedlist>
1201 <listitem>
1202 <para><emphasis role="bold">Vendor and product ID.</emphasis> With
1203 USB, each vendor of USB products carries an identification number
1204 that is unique world-wide, the "vendor ID". Similarly, each line of
1205 products is assigned a "product ID" number. Both numbers are
1206 commonly written in hexadecimal (that is, they are composed of the
1207 numbers 0-9 and the letters A-F), and a colon separates the vendor
1208 from the product ID. For example,
1209 <computeroutput>046d:c016</computeroutput> stands for Logitech as a
1210 vendor, and the "M-UV69a Optical Wheel Mouse" product.</para>
1211
1212 <para>Alternatively, you can also specify <emphasis
1213 role="bold">"Manufacturer"</emphasis> and <emphasis
1214 role="bold">"Product"</emphasis> by name.</para>
1215
1216 <para>To list all the USB devices that are connected to your host
1217 machine with their respective vendor and product IDs, you can use
1218 the following command (see <xref linkend="vboxmanage" />): <screen>VBoxManage list usbhost</screen></para>
1219
1220 <para>On Windows, you can also see all USB devices that are attached
1221 to your system in the Device Manager. On Linux, you can use the
1222 <computeroutput>lsusb</computeroutput> command.</para>
1223 </listitem>
1224
1225 <listitem>
1226 <para><emphasis role="bold">Serial number.</emphasis> While vendor
1227 and product ID are already quite specific to identify USB devices,
1228 if you have two identical devices of the same brand and product
1229 line, you will also need their serial numbers to filter them out
1230 correctly.</para>
1231 </listitem>
1232
1233 <listitem>
1234 <para><emphasis role="bold">Remote.</emphasis> This setting
1235 specifies whether the device will be local only, or remote only
1236 (over VRDP), or either.</para>
1237 </listitem>
1238 </orderedlist>
1239
1240 <para>On a Windows host, you will need to unplug and reconnect a USB
1241 device to use it after creating a filter for it.</para>
1242
1243 <para>As an example, you could create a new USB filter and specify a
1244 vendor ID of 046d (Logitech, Inc), a manufacturer index of 1, and "not
1245 remote". Then any USB devices on the host system produced by Logitech,
1246 Inc with a manufacturer index of 1 will be visible to the guest
1247 system.</para>
1248
1249 <para>Several filters can select a single device -- for example, a
1250 filter which selects all Logitech devices, and one which selects a
1251 particular webcam.</para>
1252
1253 <para>You can <emphasis role="bold">deactivate</emphasis> filters
1254 without deleting them by clicking in the checkbox next to the filter
1255 name.</para>
1256 </sect2>
1257
1258 <sect2>
1259 <title>Implementation notes for Windows and Linux hosts</title>
1260
1261 <para>On Windows hosts, a kernel mode device driver provides USB proxy
1262 support. It implements both a USB monitor, which allows VirtualBox to
1263 capture devices when they are plugged in, and a USB device driver to
1264 claim USB devices for a particular virtual machine. As opposed to
1265 VirtualBox versions before 1.4.0, system reboots are no longer necessary
1266 after installing the driver. Also, you no longer need to replug devices
1267 for VirtualBox to claim them.</para>
1268
1269 <para>On newer Linux hosts, VirtualBox accesses USB devices through
1270 special files in the file system. When VirtualBox is installed, these
1271 are made available to all users in the
1272 <computeroutput>vboxusers</computeroutput> system group. In order to be
1273 able to access USB from guest systems, make sure that you are a member
1274 of this group.</para>
1275
1276 <para>On older Linux hosts, USB devices are accessed using the
1277 <computeroutput>usbfs</computeroutput> file system. Therefore, the user
1278 executing VirtualBox needs read and write permission to the USB file
1279 system. Most distributions provide a group (e.g.
1280 <computeroutput>usbusers</computeroutput>) which the VirtualBox user
1281 needs to be added to. Also, VirtualBox can only proxy to virtual
1282 machines USB devices which are not claimed by a Linux host USB driver.
1283 The <computeroutput>Driver=</computeroutput> entry in
1284 <computeroutput>/proc/bus/usb/devices</computeroutput> will show you
1285 which devices are currently claimed. Please refer to <xref
1286 linkend="usb_linux" /> also for details about
1287 <computeroutput>usbfs</computeroutput>.</para>
1288 </sect2>
1289 </sect1>
1290
1291 <sect1>
1292 <title>Shared folders</title>
1293
1294 <para>Shared folders allow you to easily exchange data between a virtual
1295 machine and your host. This feature requires that the VirtualBox Guest
1296 Additions be installed in a virtual machine and is described in detail in
1297 <xref linkend="sharedfolders" />.</para>
1298 </sect1>
1299
1300 <sect1 id="efi">
1301 <title>Alternative firmware (EFI)</title>
1302
1303 <para>Starting with release 3.1, VirtualBox includes experimental support
1304 for the Extensible Firmware Interface (EFI), which is a new industry
1305 standard intended to eventually replace the legacy BIOS as the primary
1306 interface for bootstrapping computers and certain system services
1307 later.</para>
1308
1309 <para>By default, VirtualBox uses the BIOS firmware for virtual machines.
1310 To use EFI for a given virtual machine, you can enable EFI in the
1311 machine's "Settings" dialog (see <xref linkend="settings-motherboard" />).
1312 Alternatively, use the <computeroutput>VBoxManage</computeroutput> command
1313 line interface like this: <screen>VBoxManage modifyvm "VM name" --firmware efi</screen>
1314 To switch back to using the BIOS, use: <screen>VBoxManage modifyvm "VM name" --firmware bios</screen>One
1315 notable user of EFI is Apple's Mac OS X, but recent Linuxes (such as
1316 Fedora 11) and Windows (starting with Vista) offer special versions that can
1317 be booted using EFI as well.</para>
1318
1319 <para>Another possible use of EFI in VirtualBox is development and testing
1320 of EFI applications, without booting any OS.</para>
1321
1322 <para>Note that the VirtualBox EFI support is experimental and will be
1323 enhanced as EFI matures and becomes more widespread. While Mac OS X and
1324 Linux guests are known to work fine, Windows guests are currently unable
1325 to boot with the VirtualBox EFI implementation.</para>
1326
1327 <sect2 id="efividmode">
1328 <title>Video modes in EFI</title>
1329
1330 <para>EFI provides two distinct video interfaces: GOP (Graphics Output
1331 Protocol) and UGA (Universal Graphics Adapter). Mac OS X uses GOP, while
1332 Linux tends to use UGA. VirtualBox provides a configuration option to
1333 control the framebuffer size for both interfaces.</para>
1334
1335 <para>To control GOP, use the following
1336 <computeroutput>VBoxManage</computeroutput> command: <screen>VBoxManage setextradata "VM name" VBoxInternal2/EfiGopMode N</screen>
1337 Where N can be one of 0,1,2,3,4 referring to the 640x480, 800x600,
1338 1024x768, 1280x1024, 1440x900 screen resolution respectively.</para>
1339
1340 <para>To change the UGA resolution: <screen>VBoxManage setextradata "VM name" VBoxInternal2/UgaHorizontalResolution 1440
1341VBoxManage setextradata "VM name" VBoxInternal2/UgaVerticalResolution 900</screen></para>
1342
1343 <para>The video mode for both GOP and UGA can only be changed when the
1344 VM is powered off and remains persistent until changed.</para>
1345 </sect2>
1346 </sect1>
1347</chapter>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette