
You've probably decided to expand your knowledge of computer operating systems . Therefore, you're afraid of making mistakes that could render your computer unusable and, in the best-case scenario, require you to completely recover it.
Don't worry, you can benefit from an extremely useful tool called a virtual machine , and you'll also learn how to install and use VirtualBox.
This way, you can create a safe environment within a physical computer where you can practice and conduct all the experiments you need. If you make a mistake, all you have to do is recreate or restore VirtualBox without affecting the operating system you are using or your personal files.
One of the best free programs for this purpose, which I will discuss in the following lines, is VirtualBox. It allows you to create one or more virtual machines in just a few clicks and use and manage them optimally thanks to a simple configuration interface that truly suits everyone.
You can also read: The 7 Best Programs to Install Drivers
How to install and use VirtualBox
Before learning how to install and use VirtualBox in practice, I must clarify some concepts that may be useful to you in this tutorial.
First of all, as mentioned above, a virtual machine is nothing more than a computer “virtualized” by a specific program (like in VirtualBox) within a physical device. This system allows you to use multiple operating systems at once and limit the changes made to only one virtual machine. In other words, any changes made to the Virtual Machine cannot affect the physical machine in any way.

The components of a virtual machine (hard drive, processor, RAM, etc.) are actually just files that are created and destroyed according to the needs of the application managing them. You can configure each virtual machine to suit your needs by fine-tuning both the hardware and software.
In other words, you can configure a virtual machine to use a certain number of virtual processors, a certain amount of virtual RAM (usually less than half the RAM available on a physical computer), a virtual hard disk of a certain size, and typically I/O devices present on a physical computer (e.g., a hard drive, etc.).
As I said before, you can select the operating system to be installed on the virtual machine and run it within the existing ones: In this case, the operating system that is installed on the physical computer will accept the name of the host operating system, and the operating system that is installed on the virtual machine will accept the name of the guest operating system.
Now that you know what virtual machines are made of, it's finally time to begin the actual VirtualBox installation. As I mentioned earlier, VirtualBox is a free, open-source application for Windows , macOS, and Linux that can be downloaded for free from the internet. So, to begin:
- «Go to the VirtualBox website» y «click on the link» that best suits your operating system (e.g. Windows hosts) and is directly under the VirtualBox xyz platform packages
- Once this process is complete, «run the file you just downloaded» If you use Windows, «click Next four times» and then click “Yes” and “Install”.
- «Click the Yes button» in the Windows warning window, "Wait a few minutes for the process to complete" and then «click Finish» to start the program immediately.
- If you have a MacOS operating system, after starting the downloaded installation file, «double click on the VirtualBox.pkg icon» (like a completely open box), «double click Next», double click Install, when prompted, "enter the administrator password", press Enter on your keyboard, and then click OK, Close, and Don't Move.
- Now «open System Preferences» by clicking the gear icon in the Dock, «click on the security and privacy icon», then click the Allow button next to “Oracle America, Inc.
- «Go back to the program download page again», click the All supported platforms link directly below the VirtualBox xyz Oracle VM VirtualBox extension pack, «run the file you just downloaded», then click the Install button and follow the on-screen instructions to complete the process.
Note: After completing the program installation, I recommend installing the VirtualBox extension pack to add some interesting features to the manager, such as support for USB 2.0 and USB 3.0 devices and hard drive encryption.
How to use VirtualBox
Now that the program is installed on your computer, it's finally time to create a virtual machine to start experimenting immediately: From now on I will refer to VirtualBox, which runs on Windows, but the steps specified are almost identical under MacOS and Linux.
Creating a virtual machine
The first step is to "build" a virtual machine that can host the desired guest operating system to begin the creation process:
- «Click the New button» from the top left corner, in the corresponding field «Enter the name you want to assign to your virtual machine» (for example, Ubuntu 17.10),
- Now, «select type» (for example, Linux) and the version (for example, Ubuntu 64-bit) of the operating system you want to install from the drop-down menu and click Next.
- On the next screen you can «select the amount of RAM» assigned to the virtual machine always taking into account the minimum requirements of the operating system you want to install, «move the screen to the right or left until you reach the desired amount of RAM» (if you want you can enter the exact size in the text field added to the window).
- Once you have set the desired amount of RAM, «click Next». On the next screen, you can add a new virtual hard disk to your machine «check the box Create new virtual hard disk immediately» and click “Create” to go directly to the “Create” screen.
- «Check the VDI item», click Next, check the Dynamically allocated item and click Next again, set the size of your virtual hard disk using the special slider (or enter the size in the field next to it), «Click Create to add the disk» and instantly create a virtual machine, and you are finally ready to install a new guest operating system!
Note: I advise you not to allocate too much RAM to the virtual machine , as this could lead to a complete shutdown of the real computer. Do not allocate more than 60% of the physical RAM as shown in the color bar on the screen (the green part is the part that can be allocated without consequences).
How to install an operating system
After creating a new virtual machine, it is time to finally revive it with the operating system. Installing the operating system for guests is not difficult, on the contrary, the procedure is almost identical to that used on a real computer.
The only difference, in this regard, concerns the installation media for the virtual machine: in fact, it is not necessary to create DVDs or USB sticks containing the material to be installed, but you can simply use the most appropriate ISO file.
Therefore, before proceeding, the first thing you need to do is obtain the ISO image related to the operating system you have chosen to install: if you want to download the file related to Windows 10, for example, you can use the official Microsoft tool.
Tutorial
Once you have downloaded the most suitable ISO for the operating system you intend to install to your computer, "go to the VirtualBox main screen" , select the previously created virtual machine with a mouse click and "press the Start button" (the green arrow pointing to the right) located at the top. After a few seconds, it will show you the window that allows you to load the installation ISO of the guest operating system into the virtual machine.
On the previous screen, after clicking on the yellow icon that appears next to the drop-down menu and in the panel "Select the downloaded operating system ISO image" , click on Open , and after a few seconds click on Start, the virtual machine will begin the installation process of the selected operating system.
As I explained earlier, all you have to do is "follow the instructions on the screen ," which are absolutely identical to those you would see during a "real" operating system installation.
During the installation of the guest operating system, and throughout the session of using the virtual machine, the mouse could get "stuck" on the VirtualBox screen, preventing you from using the guest operating system installed on your computer. To get out of this situation and release the mouse, simply press the VirtualBox guest button, which by default corresponds to the CTRL button on the right side of the keyboard.
Once the setup procedure is complete, you can use your virtual operating system exactly as you would on a “physical” computer: each virtual machine can be started by pressing the Start button on the VirtualBox main screen, and must be shut down using the procedure provided by the operating system.
For example, Start > Stop button > Stop system for Windows. If you want, you can expand your virtual machine to full screen by pressing the key combination Host+F.
Installing Guest Extension Modules
The next step after installing the guest OS on the new VM is, in short, guest plugins, which are additional components provided by VirtualBox and can implement additional features in the active VM, such as 3D acceleration (necessary for correct graphical display of some interfaces), bi-directional sharing of notes and folders on the host system.
Installing guest plugins is very easy:
- «Start the virtual machine» where you want to install them and "wait for the operating system to fully load" (in other words, wait for the desktop to appear), then «click on the Devices menu» and select “Insert Guest Plugins” CD image from the menu that appears.
- After a few seconds the guest operating system will detect the insertion of a new CD-ROM if necessary, "confirm that you want to create your content" y «follow the instructions on the VM screen» to complete the installation.
- Once the installation is complete, I recommend rebooting the guest operating system for the changes to take effect.
- After enabling full screen preview, you can open the VirtualBox menu bar by placing your mouse at the bottom center of the screen.
Note: VirtualBox does not officially support virtualization of macOS/OS X operating systems, as these operating systems are designed to run only on Apple hardware. Therefore, no plugins are available for these systems.
You can also read: The 6 Best Programs to Hide Folders
Managing virtual machine settings
Have you noticed that you don't have enough RAM for your virtual machine, want to rename it or install guest plugins and enable graphics acceleration? All of this can be done using the convenient VirtualBox configuration manager.
If necessary, first shut down the virtual machine you want to work with, then select it by clicking on it in the left part of the main program window and clicking the “Settings” button at the top: The next screen is divided into sections that allow you to work on another aspect of the VM, as I will explain below.
- General: Allows you to change the name and type of the virtual machine, the version of the operating system for hosting, as well as additional aspects such as the description and the folder to save snapshots.
- System: Allows you to interfere with the virtual machine hardware by specifying the amount of RAM used, the order of loading devices, the chipset, BIOS details, the number of virtual processors, and other virtualization details.
- Display: DFrom here you can determine the number of virtual displays, the amount of video memory and 2D/3D acceleration.
- Conference proceedings: In this section you can add new drivers and devices. storage virtual (hard drives and CD/DVD drives) and configure existing ones.
- Audio: In this screen you can set parameters related to the sound of the virtual machine.
- Net: From here you can add new virtual NICs, modify existing ones, enable interfaces for NAT or gateways, or shut down the network completely.
- Serial Ports: On this screen you can create virtual serial (COM) ports and add them to the corresponding machine.
- USB: Here you can enable or disable USB controllers, set their type, and filter them by device.
- Shared folders: From here you can add, delete or edit shared folders between the host system and the company system.
- User interface: From here you can change the control screen for the current virtual machine.
Without changing the input signal, you can configure the compressor so that you don't have to change it to trigger the corresponding VM.
Share your devices, folders and notes
While a virtual machine is a device independent of the operating system installed on the computer and its physical devices, it is possible to share devices, folders, and notes as needed to simplify work: for example, you can connect a physical USB device to the computer and use it through the virtual machine, or copy/paste between the guest and host operating systems as a single device.
But before we continue, I'd like to share an important point with you: changes made to external devices through the virtual machine are permanent and cannot be undone. For example, if you start formatting a USB drive using the virtual machine, all the data on the USB drive will be permanently erased, with no way to undo the operation.
Tutorial
After doing this, it's time to learn how to proceed:
- First «start the virtual machine» completely until the operating system desktop appears and «click on the Devices menu» on top.
- If you plan to connect physical devices attached to the computer to the virtual machine, «move the mouse to one of the optical players» (for CD/DVD), USB (for USB devices) or webcam and «click on the device» that you want to connect.
- To share files and folders, including in the Devices menu, «select Shared Folders > Shared Folder Settings», click the + symbol icon on the right, click the down arrow next to the Map field, click Other, and then “select the team folder you want to share”.
- If you wish, you can share it in “read-only” mode, set it automatically at startup, or permanently on the host system by selecting the appropriate check boxes. "make the necessary adjustments", double-click OK and restart the virtual operating system to ensure safety.
- Finally, you can enable sharing of the clipboard by selecting “Clipboard Sharing”. Clipboards are availableavailable in the “Devices” menu.
You have four different options: Disabled prevents sharing notes, Guest to Host allows you to copy and paste from the virtual machine to the host operating system, Guest to Host allows you to do the reverse, and Bidirectional allows you to do both.
Exporting and importing virtual applications
If you have come this far, it means that you have all the knowledge to create and manage a VM in the best possible way. But before I go, I would like to share with you a very important topic: support.
VirtualBox allows you to import and export virtual applications (i.e., virtual machines with their configurations and connected devices) to facilitate the transfer of virtual machines from one computer to another or, why not, make regular backups that can be restored in case of failure.
Exporting a virtual application is very simple: on the main VirtualBox screen, which contains a list of virtual machines, select the “File” menu and then export the virtual application.
On the new screen that appears, "click on the name of the virtual machine" that will be exported in the proposed list, click on Next, "select the path where you want to save the application" by clicking on the arrow icon next to the File field (don't forget to specify the extension).
Select Format 1.0 Open Virtualization Format from the drop-down menu, click Next again, and then Export: in a few minutes, the virtual application will be created in the specified location.
Importing a virtual application is equally simple: "select File > Import Virtual Application", click the yellow arrow button in the next window, select the virtual application file you want to retrieve, click Next twice, and finally, "click Import". The process may take more than ten minutes, depending on the complexity of the virtual machine being imported.
You can also read: What is CCleaner? Features and Settings.
Table of Contents