Change Configuration of Existing VirtualBox Virtual Machines

From CPU and RAM to disk size, VirtualBox allows you to tweak several configurations in a virtual machine even after creating it.
Warp Terminal

One of the biggest advantages of a virtual machine is that you can always configure it later after creating it.

The configuration may include:

  • Adjusting disk size
  • Allocating more RAM or CPU
  • Tweaking display options
  • Mounting a new disc
  • Changing the connected network
  • Connecting/Disconnected peripherals/devices from host
  • Adding a shared folder

Of course, depending on the virtualization software, the process of customizing things will differ. But it is more or less the same if it allows you to do that.

Here, I shall use VirtualBox to highlight how to customize and configure some of these options. This should also be applicable to users who want to run virtual machines on Windows.

🚧
You must turn off the virtual machine for which you are changing the configuration.

Tweaking allocated RAM and CPU

It is true that the virtual machine may not be able to provide the same performance that you expect on bare metal.

However, if you allocate enough memory (RAM) and processors (CPU) for the virtual machine, you can get a smooth experience. If you do not give the VM enough resources, it may not be a fast user experience.

So, head to the "System" settings of the VM you created and then adjust the memory and processors.

virtualbox system ram tweak settings
Click to enlarge the image

It is ideal to provide at least 8 GB of memory to the VM (considering you have at least 16 GB of host memory), and two CPUs at the very least for a decent performance.

Increasing disk size

Unlike tweaking the memory, you cannot find the option to increase disk size the same way.

You will have to utilize VirtualBox's virtual media manager, which you can quickly access using Ctrl + D from the app.

virtualbox disk size tweak

And, then change the disk size as per your requirements from the "Properties" option. If you have a dynamically allocated disk, you might have to utilize the GParted ISO.

Fret not, we have a detailed guide to help you increase VirtualBox disk size. Follow it step-by-step to get it done:

How to Increase VirualBox Disk Size [Linux & Windows]
It’s easy to increase the disk size of your existing virtual machines. Only a few minutes of your time.

Adjusting display settings

virtualbox settings

When it comes to the VM user experience, the display setting is often ignored but remains an important part.

Occasionally, all you have to do is β€œEnable 3D Acceleration” and the VM works fast enough. And, if you do not, it may stutter.

πŸ’‘
3D Acceleration lets the VM utilize the host's graphics hardware to run applications that use 3D features.

Furthermore, you can tweak the rest of the available options if you have a problem getting a visual to a newly created virtual machine. If you want to simply record the virtual machine, you can enable screen recording as well.

While the VM is running, you can always head to the "View" menu to adjust the window size or scale the VM display.

Suggested Read πŸ“–

10 Reasons to Run Linux in Virtual Machines
You can run any operating system as a virtual machine to test things out or for a particular use case. When it comes to Linux, it is usually a better performer as a virtual machine when compared to other operating systems. Even if you hesitate to install Linux on bare

Mounting a disc or changing drive

Sometimes you want to access a disk or an ISO from within the virtual machine.

For instance, mounting a disk image to install some drivers or similar. You can do that through the Storage options. You can also choose to create a new virtual hard disk or open an existing one if you created one earlier.

Mounting or changing disk mount in VirtualBox

Changing network connections

virtualbox network settings screenshot

By default, the network adapter is enabled and set to as "NAT" type. So, the virtual machine shares the host's network without hassle.

You do not have to set up a network connection manually for most distros created as a virtual machine.

However, if you have trouble connecting to the internet inside the VM, you can tweak around the network connections, change the connection type, adapter type, and other options that you see in the screenshot above.

Suggested Read πŸ“–

How to Install Linux Inside Windows Using VirtualBox
Using Linux in a virtual machine allows you to try Linux within Windows. This step-by-step guide shows you how to install Linux inside Windows using VirtualBox.

Connecting and disconnecting devices

virtualbox usb devices settings

You can always connect any of your devices to the VM or disconnect them as you need, even when it is running.

When the VM is not running, you can go to the USB settings to add/remove devices.

And, when the VM is running, you head to the "Devices" menu from the top of the VM window and click/untick on the devices to connect or remove as you require.

Adding a shared folder

You should always utilize the "Guest Additions" feature of VirtualBox to utilize abilities like having a shared folder between host and the VM, sharing the same clipboard, and more.

Simply head to the VM settings, and add a shared folder with your custom path.

You can refer to our VirtualBox Guest Additions guide to know how to add shared folders to your VM and more:

How to Install & Use VirtualBox Guest Additions on Ubuntu
Install VirtualBox Guest Additions in Ubuntu and with this, you’ll be able to copy-paste, drag and drop between the host and guest system. It makes using Ubuntu on virtual machines a lot easier.

Wrapping Up

By now, you must have realized that there are so many things that you can do with the free and open-source virtualization program "VirtualBox".

Configure your virtual machine to get the best experience!

πŸ’¬ What is the first thing that you do after creating a virtual machine? Is VirtualBox your preferred choice of virtualization program? Share your thoughts in the comments below.

About the author
Ankush Das

Ankush Das

A passionate technophile who also happens to be a Computer Science graduate. You will usually see cats dancing to the beautiful tunes sung by him.

It's FOSS

Making You a Better Linux User

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.