It is quite easy to set up virtual machines using VirtualBox and other virtualization programs. You configure a few parameters such as disk size or memory, select an ISO image of an operating system, and wait for the program to create the virtual machine and install the operating system on it.
Virtual machines are useful for many different tasks. You can use them to test updates or new software programs, to browse the Internet, and to chain VPN connections.
VirtualBox users may change some properties of a virtual machine using the graphic user interface and others only from the command line. This guide looks at both options.
Here is a list of situations where you may need to change the properties:
You open the Settings of any virtual machine image in Virtualbox by right-clicking on it and selecting settings from the context menu.
And a lot more. You may have noticed already that you cannot change some virtual machine properties using the GUI. It is for instance not possible to change the size of the virtual hard drive; that's reserved to the command line.
VirtualBox supports many different command line options to change the properties of a virtual machine image.
These commands use VBoxManage modifyvm ImagePath as the base command followed by the actual command.
The following instructions are for Windows. Linux and Mac users should not have issues figuring this out for their devices though.
VBoxManage.exe is a file in the root directory of the VirtualBox installation on Windows. You find it under C:\Program Files\Oracle\VirtualBox by default.
Start by opening a new command prompt window and navigating to the VirtualBox folder.
Tip: if you use the command regularly, consider adding it as a system path so that you can run the commands from anywhere.
Here is a short list of important commands:
Resize virtual machine (VDI and VHD)
Move virtual machine image
Cap Virtual CPUs
Change memory allocation
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.