

In this tutorial, we learned how to increase the size of a VirtualBox guest disk in Linux. Checking the default path where virtual machine files are saved Closing Thoughts vdi file is stored, you can see this information by opening VirtualBox and going into File > Preferences. If you have changed this setting and are not sure where your. Yours may be different, so adjust accordingly.īy default, VirtualBox will store your VM files in your home directory. In this example, our virtual hard disk is stored at ~/VirtualBox\ VMs/Ubuntu/Ubuntu.vdi. Increasing the size of a VM hard disk via command line $ VBoxManage modifymedium ~/VirtualBox\ VMs/Ubuntu/Ubuntu.vdi -resize 30000 Notice that we specify the new size in megabytes. In this example, we will change our Ubuntu VM’s hard disk to 30 GB. Use the syntax below to increase your storage to a size of your choosing.

We will use the VBoxManage command to adjust the size of a virtual machine hard disk. $ – requires given linux commands to be executed as a regular non-privileged user # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command Privileged access to your Linux system as root or via the sudo command. Requirements, Conventions or Software Version Used Increasing the size of a VirtualBox guest disk size Software Requirements and Linux Command Line Conventions Category


One of the great things about installing an operating system into a virtual machine is that we can easily change the machine’s CPU utilization limit, its memory usage, and the amount of hard drive space it has. In this tutorial you will learn how to increase disk size on VirtualBox.
