There are many ways in which
The most common way is to use a virtual hard disk. This is a large image file on your
physical hard disk, whose contents
To prevent your physical hard disk on the host OS from filling up,
If you choose Do Not Add a Virtual Hard Disk at this stage you
will need to attach a hard disk using VirtualBox Manager or VBoxManage commands before you
can install a guest operating system.
Follow these steps to create a virtual hard disk to use with this VM. To prevent your
physical hard disk on the host OS from filling up,
Select Create a Virtual Hard Disk Now. This creates a new empty virtual hard disk image, located in the VM's machine folder.
Enter the following settings:
Disk Size. Use the slider to select a maximum size for the hard disk in the new VM.
Pre-Allocate Full Size. This setting determines the type
of image file used for the disk image. Select this setting to use a fixed-size
file for the disk image. Otherwise,
The different types of image file behave as follows:
Dynamically allocated file. This type of image file only grows in size when the guest actually stores data on its virtual hard disk. Therefore, this file is small initially. As the drive is filled with data, the file grows to the specified size.
Fixed-size file. This type of image file immediately occupies the file specified, even if only a fraction of that virtual hard disk space is actually in use. While occupying much more space, a fixed-size file incurs less overhead and is therefore slightly faster than a dynamically allocated file.
For more details about the differences, see
Follow these steps to use a virtual hard disk that already exists on the host. Ensure the image file is in a suitable location (usually the machine folder) and not in use by other VMs.
Select Use an Existing Virtual Hard Disk File
Select the image file to use with the new VM, and then click Add.