Follow these simple steps on adding a new virtual drive to your VirtualBox VMs.

Anyone that has ever used a virtual machine (VM) understands how important it is to be able to allocate enough storage for their virtual servers. Sometimes you spin up a VM with more than enough storage, and sometimes you don’t. When that costly mistake occurs, what do you do?
You add a new drive to your VM.
Thankfully, this task is easy in VirtualBox. Let’s walk through the steps and, in the end, you’ll have added enough storage to keep your virtual server up and working, without fear of running out of space.
SEE: Quick glossary: Virtualization (Tech Pro Research)
Figure A

Figure B

Once the VM is up and running, it should detect the newly attached drive. It will show up as unformatted, so it currently is unavailable for use. The way you format this drive will depend upon the VM platform. I am demonstrating with Ubuntu 16.10 as the guest, so I’ll proceed accordingly.
Opening the Disks tool (which is GNOME Disks), I can see the the newly created drive (I named it sdb1 – Figure C).
Figure C

Click the gear icon (under Volumes), select Format Partition, make your selections (Quick or Slow Erase, file system type), name the drive, and click Format. When prompted, click Format a second time (Figure D), and the drive will be formatted and ready to use.
Figure D

Open your file manager, and the new drive will be listed as available. The way you make that drive automatically available at boot will depend upon your platform. For Linux, you will have to add an entry into /etc/fstab (Figure E).
Figure E

Once you save /etc/fstab issue the command sudo mount -a. That command should return no errors or warnings.
Adding a new disk to a VirtualBox VM is as simple as it gets. Other than shutting down the VM to quickly add the disk, your virtual server will suffer very few hiccups and, within minutes, you’ll have added a new drive to help expand your system.
And don’t think you’re limited to adding only one drive. You can expand your VM as needed…as long as you have the necessary space on your VirtualBox host.