The Storage category in the VM settings enables you to connect virtual hard disk, CD/DVD, and floppy images and drives to your virtual machine.
In a real computer, so-called storage
controllers connect physical disk drives to the rest of
the computer. Similarly,
This section gives a quick introduction to the
If you have used the Create Virtual Machine wizard to create a machine, you will normally see something like the following:
Depending on the guest OS type that you selected when you created the VM, a new VM includes the following storage devices:
IDE controller. A virtual CD/DVD drive is attached to device 0 on the secondary channel of the IDE controller.
SATA controller. This is a modern type of storage controller for higher hard disk data throughput, to which the virtual hard disks are attached. Initially you will normally have one such virtual disk, but as shown in the previous screenshot, you can have more than one. Each is represented by a disk image file, such as a VDI file in this example.
If you created your VM with an older version of
You can modify these media attachments freely. For example, if you want to copy some files from another virtual disk that you created, you can connect that disk as a second hard disk, as in the above screenshot. You could also add a second virtual CD/DVD drive, or change where these items are attached. The following options are available:
To add another virtual hard disk, or a CD/DVD or floppy drive, select the storage controller to which it should be added (such as IDE, SATA, SCSI, SAS, floppy controller) and then click the Add Disk button below the tree. You can then either select Optical Drive or Hard Disk. If you clicked on a floppy controller, you can add a floppy drive instead. Alternatively, right-click on the storage controller and select a menu item there.
A dialog is displayed, enabling you to select an existing disk image file or to create a new disk image file. Depending on the type of disk image, the dialog is called Hard Disk Selector, Optical Disk Selector, or Floppy Disk Selector.
See
For virtual CD/DVD drives, the image files will typically be in the standard ISO format instead. Most commonly, you will select this option when installing an OS from an ISO file that you have obtained from the Internet. For example, most Linux distributions are available in this way.
Depending on the type of disk image, you can set the following Attributes for the disk image in the right part of the Storage settings page:
The device slot of the controller that the virtual disk is connected to. IDE controllers have four slots: primary device 0, primary device 1, secondary device 0, and secondary device 1. By contrast, SATA and SCSI controllers offer you up to 30 slots for attaching virtual devices.
Solid-state Drive presents a virtual disk to the guest as a solid-state device.
Hot-pluggable presents a virtual disk to the guest as a hot-pluggable device.
For virtual CD/DVD drives, you can select Live CD/DVD. This means that the virtual optical disk is not removed from when the guest system ejects it.
To remove an attachment, either select it and click on the Remove icon at the bottom, or right-click on it and select the menu item.
Removable media, such as CD/DVDs and floppies, can be changed while the guest is running. Since the Settings window is not available at that time, you can also access these settings from the Devices menu of your virtual machine window.