VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/harddiskcontrollers.dita@ 105303

Last change on this file since 105303 was 105303, checked in by vboxsync, 10 months ago

Docs: bugref:10705. More merging from docs team repo. Once again almost exclusively white space changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.6 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
3<topic xml:lang="en-us" id="harddiskcontrollers">
4 <title>Hard Disk Controllers</title>
5
6 <body>
7 <p>
8 In a computing device, hard disks and CD/DVD drives are connected
9 to a device called a hard disk controller, which drives hard disk
10 operation and data transfers. <ph conkeyref="vbox-conkeyref-phrases/product-name"/> can emulate the most
11 common types of hard disk controllers typically found in computing
12 devices: IDE, SATA (AHCI), SCSI, SAS, USB-based, NVMe and
13 virtio-scsi mass storage devices.
14 </p>
15 <ul>
16 <li>
17 <p><b outputclass="bold">IDE (ATA)</b> controllers are a backward-compatible yet very
18 advanced extension of the disk controller in the IBM PC/AT (1984). Initially, this
19 interface worked only with hard disks, but was later extended to also support CD-ROM
20 drives and other types of removable media. In physical PCs, this standard uses flat ribbon
21 parallel cables with 40 or 80 wires. Each such cable can connect two devices, called
22 device 0 and device 1, to a controller. Typical PCs had two connectors for such cables. As
23 a result, support for up to four IDE devices was most common: primary device 0, primary
24 device 1, secondary device 0, and secondary device 1. </p>
25 <p>
26 In <ph conkeyref="vbox-conkeyref-phrases/product-name"/>, each virtual machine may have one IDE
27 controller enabled, which gives you up to four virtual storage
28 devices that you can attach to the machine. By default, one of
29 these virtual storage devices, device 0 on the secondary
30 channel, is preconfigured to be the virtual machine's virtual
31 CD/DVD drive. However, you can change the default setting.
32 </p>
33 <p>
34 Even if your guest OS has no support for SCSI or SATA devices,
35 it should always be able to see an IDE controller.
36 </p>
37 <p>
38 You can also select which exact type of IDE controller
39 hardware <ph conkeyref="vbox-conkeyref-phrases/product-name"/> should present to the virtual machine:
40 PIIX3, PIIX4, or ICH6. This makes no difference in terms of
41 performance, but if you import a virtual machine from another
42 virtualization product, the OS in that machine may expect a
43 particular controller type and crash if it is not found.
44 </p>
45 <p>
46 After you have created a new virtual machine with the
47 <b outputclass="bold">New Virtual Machine</b> wizard in
48 <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/>, you will typically see one IDE controller in the
49 machine's <b outputclass="bold">Storage</b> settings.
50 The virtual CD/DVD drive will be attached to one of the four
51 ports of this controller.
52 </p>
53 </li>
54 <li>
55 <p><b outputclass="bold">Serial ATA (SATA)</b> is a more
56 recent standard than IDE. Compared to IDE, it supports both
57 much higher speeds and more devices per controller. Also, with
58 physical hardware, devices can be added and removed while the
59 system is running. The standard interface for SATA controllers
60 is called Advanced Host Controller Interface (AHCI).
61 </p>
62 <p>
63 Like a real SATA controller, <ph conkeyref="vbox-conkeyref-phrases/product-name"/>'s virtual SATA
64 controller operates faster and also consumes fewer CPU
65 resources than the virtual IDE controller. Also, this enables
66 you to connect up to 30 virtual hard disks to one machine
67 instead of just three, when compared to the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> IDE
68 controller with a DVD drive attached.
69 </p>
70 <p>
71 For this reason, depending on the selected guest OS,
72 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> uses SATA as the default for newly created
73 virtual machines. One virtual SATA controller is created by
74 default, and the default disk that is created with a new VM is
75 attached to this controller.
76 </p>
77 <note>
78 <p>
79 The entire SATA controller and the virtual disks attached to
80 it, including those in IDE compatibility mode, will not be
81 seen by OSes that do not have device support for AHCI. In
82 particular, <i>there is no support for AHCI in
83 Windows versions before Windows Vista</i>. Legacy
84 Windows versions such as Windows XP, even with SP3
85 installed, will not see such disks unless you install
86 additional drivers. It is possible to switch from IDE to
87 SATA after installation by installing the SATA drivers and
88 changing the controller type in the VM
89 <b outputclass="bold">Settings</b> window.
90 </p>
91 <p>
92 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> recommends the Intel Matrix Storage drivers,
93 which can be downloaded from
94 <ph>http://downloadcenter.intel.com/Product_Filter.aspx?ProductID=2101</ph>.
95 </p>
96 </note>
97 <p>
98 To add a SATA controller to a machine for which it has not
99 been enabled by default, either because it was created by an
100 earlier version of <ph conkeyref="vbox-conkeyref-phrases/product-name"/>, or because SATA is not
101 supported by default by the selected guest OS, do the
102 following. Go to the <b outputclass="bold">Storage</b>
103 page of the machine's
104 <b outputclass="bold">Settings</b> window, click
105 <b outputclass="bold">Add Controller</b> under the
106 Storage Tree box and then select <b outputclass="bold">Add
107 SATA Controller</b>. The new controller appears as a
108 separate PCI device in the virtual machine, and you can add
109 virtual disks to it.
110 </p>
111 <p> To change the IDE compatibility mode settings for the SATA controller, see <xref
112 href="vboxmanage-storagectl.dita"/>. </p>
113 </li>
114 <li>
115 <p><b outputclass="bold">SCSI</b> is another established
116 industry standard, standing for Small Computer System
117 Interface. SCSI is as a generic interface for data transfer
118 between all kinds of devices, including storage devices. SCSI
119 is still used for connecting some hard disks and tape devices,
120 but it has mostly been displaced in commodity hardware. It is
121 still in common use in high-performance workstations and
122 servers.
123 </p>
124 <p>
125 Primarily for compatibility with other virtualization
126 software, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> optionally supports LSI Logic and
127 BusLogic SCSI controllers, to each of which up to fifteen
128 virtual hard disks can be attached.
129 </p>
130 <p>
131 To enable a SCSI controller, on the
132 <b outputclass="bold">Storage</b> page of a virtual
133 machine's <b outputclass="bold">Settings</b> window,
134 click <b outputclass="bold">Add Controller</b> under
135 the Storage Tree box and then select <b outputclass="bold">Add
136 SCSI Controller</b>. The new controller appears as a
137 separate PCI device in the virtual machine.
138 </p>
139 <note>
140 <p>
141 As with the other controller types, a SCSI controller will
142 only be seen by OSes with device support for it. Windows
143 2003 and later ships with drivers for the LSI Logic
144 controller, while Windows NT 4.0 and Windows 2000 ships with
145 drivers for the BusLogic controller. Windows XP ships with
146 drivers for neither.
147 </p>
148 </note>
149 </li>
150 <li>
151 <p><b outputclass="bold">Serial Attached SCSI (SAS)</b> is
152 another bus standard which uses the SCSI command set. As
153 opposed to SCSI physical devices, serial cables are used
154 instead of parallel cables. This simplifies physical device
155 connections. In some ways, therefore, SAS is to SCSI what SATA
156 is to IDE: it enables more reliable and faster connections.
157 </p>
158 <p>
159 To support high-end guests which require SAS controllers,
160 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> emulates a LSI Logic SAS controller, which can
161 be enabled much the same way as a SCSI controller. At this
162 time, up to 255 devices can be connected to the SAS
163 controller.
164 </p>
165 <note>
166 <p>
167 As with SATA, the SAS controller will only be seen by OSes
168 with device support for it. In particular, <i>there
169 is no support for SAS in Windows before Windows
170 Vista</i>. So Windows XP, even SP3, will not see such
171 disks unless you install additional drivers.
172 </p>
173 </note>
174 </li>
175 <li>
176 <p>
177 The <b outputclass="bold">USB mass storage device
178 class</b> is a standard to connect external storage
179 devices like hard disks or flash drives to a host through USB.
180 All major OSes support these devices and ship generic drivers
181 making third-party drivers superfluous. In particular, legacy
182 OSes without support for SATA controllers may benefit from USB
183 mass storage devices.
184 </p>
185 <p>
186 The virtual USB storage controller offered by <ph conkeyref="vbox-conkeyref-phrases/product-name"/>
187 works differently to the other storage controller types. While
188 most storage controllers appear as a single PCI device to the
189 guest with multiple disks attached to it, the USB-based
190 storage controller does not appear as virtual storage
191 controller. Each disk attached to the controller appears as a
192 dedicated USB device to the guest.
193 </p>
194 <note>
195 <p>
196 Booting from drives attached using USB is only supported
197 when EFI is used as the BIOS lacks USB support.
198 </p>
199 </note>
200 </li>
201 <li>
202 <p><b outputclass="bold">Non volatile memory express
203 (NVMe)</b> is a standard for connecting non volatile
204 memory (NVM) directly over PCI Express to lift the bandwidth
205 limitation of the previously used SATA protocol for
206 solid-state devices. Unlike other standards the command set is
207 very simple in order to achieve maximum throughput and is not
208 compatible with ATA or SCSI. OSes need to support NVMe devices
209 to make use of them. For example, Windows 8.1 added native
210 NVMe support. For Windows 7, native support was added with an
211 update.
212 </p>
213 <p>
214 The NVMe controller is part of the extension pack.
215 </p>
216 <note>
217 <p>
218 Booting from drives attached using NVMe is only supported
219 when EFI is used as the BIOS lacks the appropriate driver.
220 </p>
221 </note>
222 </li>
223 <li>
224 <p><b outputclass="bold">Virtual I/O Device SCSI</b> is a
225 standard to connect virtual storage devices like hard disks or
226 optical drives to a VM. Recent Linux and Windows versions
227 support these devices, but Windows needs additional drivers.
228 Currently virtio-scsi controller support is experimental.
229 </p>
230 <note>
231 <p>
232 The virtio-scsi controller will only be seen by OSes with
233 device support for it. In particular, <i>there is no
234 built-in support in Windows</i>. So Windows will not
235 see such disks unless you install additional drivers.
236 </p>
237 </note>
238 </li>
239 </ul>
240 <p>
241 In summary, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> gives you the following categories of
242 virtual storage slots:
243 </p>
244 <ul>
245 <li>
246 <p>
247 Four slots attached to the traditional IDE controller, which
248 are always present. One of these is typically a virtual CD/DVD
249 drive.
250 </p>
251 </li>
252 <li>
253 <p>
254 30 slots attached to the SATA controller, if enabled and
255 supported by the guest OS.
256 </p>
257 </li>
258 <li>
259 <p>
260 15 slots attached to the SCSI controller, if enabled and
261 supported by the guest OS.
262 </p>
263 </li>
264 <li>
265 <p>
266 Up to 255 slots attached to the SAS controller, if enabled and
267 supported by the guest OS.
268 </p>
269 </li>
270 <li>
271 <p>
272 Eight slots attached to the virtual USB controller, if enabled
273 and supported by the guest OS.
274 </p>
275 </li>
276 <li>
277 <p>
278 Up to 255 slots attached to the NVMe controller, if enabled
279 and supported by the guest OS.
280 </p>
281 </li>
282 <li>
283 <p>
284 Up to 256 slots attached to the virtio-scsi controller, if
285 enabled and supported by the guest OS.
286 </p>
287 </li>
288 </ul>
289 <p>
290 Given this large choice of storage controllers, you may not know
291 which one to choose. In general, you should avoid IDE unless it is
292 the only controller supported by your guest. Whether you use SATA,
293 SCSI, or SAS does not make any real difference. The variety of
294 controllers is only supplied by <ph conkeyref="vbox-conkeyref-phrases/product-name"/> for compatibility
295 with existing hardware and other hypervisors.
296 </p>
297 </body>
298
299</topic>
Note: See TracBrowser for help on using the repository browser.

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