Understanding and Configuring VirtualBox Virtual Hard Disks

From Virtuatopia
Revision as of 20:14, 24 March 2009 by Neil (Talk | contribs) (VirtualBox Virtual Hard Disk Controllers)

Jump to: navigation, search

Most operating systems require access to some form of storage space, typically in the form of a disk drive, to store operating system files and user data. The guest operating systems supported by VirtualBox are no exception to this rule and to meet this requirement, VirtualBox provides a number of virtual hard disk drive configuration options, each of which is the topic of this chapter.




VirtualBox Virtual Hard Disk Controllers

VirtualBox provides access to storage by presenting virtual hard disk controllers to virtual machines. Although controllers are essentially software emulations of hard disk controllers, as far as the guest operating systems are concerned, these appear as real, physical devices. A number of different standards of disk controller have developed over the years and VirtualBox provides virtual versions of the following standards:

  • Serial ATA (SATA/AHCI) - The latest drive controller standard, SATA provides higher levels of storage access performance and, unlike the older IDE standard, does not impose restrictions on the number of devices that can be attached to a single disk controller. In addition, SATA is designed to allow disk drives to be added and removed without powering down the system. SATA disk controllers may be configured to run in IDE compatibility mode to allow access from guest operating systems lacking Advanced Host Controller Interface (AHCI) support. VirtualBox allows up to 30 SATA ports to be configured per virtual machine. The first four of these are configured by default to operate in IDE compatibility mode. The SATA controller is disabled by default for new Virtual Box virtual machines. To enable the SATA controller, select the required virtual machine, click on Settings in the toolbar, select for the selected virtual machine, select Hard Disks from the list of categories and set the Enable SATA Controller check box. Finally, click OK to commit the change.
  • Integrated Drive Electronics (IDE) - Perhaps the most widely used disk controller standard, these controllers are now being replaced in favor of the SATA standard. The VirtualBox virtual IDE disk controller allows up to four storage devices to be connected to a virtual machine. The secondary master connection is reserved for CD/DVD devices, allowing for the attachment of three virtual hard disks to the controller.
  • Small Computer System Interface (SCSI) - A popular storage connection standard, SCSI is based on a bus topology allowing up to 16 stroage devices to be connected to a disk controller in a daisy chain configuration. Each device is assigned a unique SCSI identifier to distinguish it from other devices on the SCSI bus. VirtualBox provides emulation for BusLogic and LsiLogic 53c1030 SCSI disk controllers. SCSI virtual disk controller support is currently categorized as experimental in VirtualBox 2.1.

Virtual Disk Images and Types

Normal, Immutable and Write-Through Disk Images

Support for Third Party Disk Image Formats

Modifying SATA Controller Compatibility Settings

Enabling VirtualBox SCSI Controllers