I recently did a tutorial teaching how to create a virtual machine using VMware Player. Now, I'll show you how to do the same thing using another well-known and rival VMware freeware tool, Oracle Virtualbox (Old Innotek VirtualBox).
- Download the Oracle VirtualBox and install on your operating system.
- Click on the "New" button.
- Unlike VMware Player, here we manually choose the version of Windows. Note that there is no Windows Server option in the list. I will use the option “Other Windows (32-bit)”.
- Here we can define the amount of RAM we will use in the virtual machine. The software already comes with the recommended value according to the operating system. Remember that RAM is shared between the VM and your physical machine, so I never put more than 50% of your total RAM on the VM.
- Here we will choose the type of hard disk of the virtual machine. I recommend using the VDI type, which is the default of VirtualBox. Another suggestion is to use VMDK, which is the default VMware Player and can be used by it as well.
- Here we will define if the VM virtual disk will be created with a pre-allocated fixed size (already consuming all the defined disk space) as soon as we create the VM, or if it will be dynamically allocated, ie as needed more. space, the virtual machine will automatically allocate to the preset size limit on the next screen.
- In this screen, we will define the name of the virtual machine and the maximum disk size.
- Let's now click on "Storage" to open the settings screen and select the operating system installation ISO.
- After selecting the ISO file, the screen should appear like this.
- In this screen we can configure the amount and memory of virtual machine cores, shared folders, networks, etc.
- Click the "Start" button.
- Select the boot disk of your virtual machine. As we are installing it will be the CD / DVD drive that we will use for installing Windows Server 2008 R2.
- Clicking OK will open another window in the background where the virtual machine will run. You can close or minimize the VirtualBox splash screen and change focus to the virtual machine execution window.
- When you click on the window where the virtual machine is running, several alerts will appear teaching you to use VirtualBox. Note that when you click on the window, your mouse will be stuck inside it. To exit, press the right Ctrl screen (next to the left arrow). This key can be changed in the settings screen.
- After Windows is installed, our virtual machine is configured and installed.
- Similar to VMware Tools, this tool adds automatic adjustment of virtual machine resolution to window size and improves mouse integration between the physical machine, no longer locking the mouse when clicking inside the VirtualBox window.
- The installation is manual. You need to open Windows Explorer (or My Computer), go to "CD Drive" and then run the program. The installation is very simple, default “Next, Next, Finish” even, only some driver installation alerts appear.
- Restart the virtual machine for the installation to take effect.
Shared Clipboard and Drag and Drop (Drag N'Drop)
- These settings allow you to enable the shared clipboard, which allows both the virtual machine and the physical machine to "see" the same information, and you can copy a text or file to the virtual machine (Ctrl + C) and paste it to the physical machine ( Ctrl + V) and vice versa.
- You can also enable drag and drop to transfer files between machines more easily and intuitively.
- Possible modes:
- Guest Host (The physical machine can view the virtual clipboard, but not the other way)
- Guest to Host (Virtual machine can view physics clipboard, but not otherwise)
- Bi-directional (works between the two machines)
- Another very interesting and useful feature of VirtualBox is the possibility of creating shared folders on your virtual machine with your Desktop, whether sharing a folder or an entire partition.
- An interesting feature that VirtualBox has and which VMware does not, is the screen capture feature, which lets you take a print screen off the screen or record a video of what is done on the virtual machine, all native.
- Turn off the machine (P): It is for abruptly shutting down the virtual machine by simulating a shutdown using the power button of your case. I do not recommend using this option as it may corrupt your VM as well as damage your physical machine by doing so. Always shut down your VM by the operating system itself.
- Send the shutdown signal: It is used to shut down the virtual machine using a shutdown command that is sent to the operating system, so that it takes care of shutting down the computer properly without risking damage to any file.
- Pause or Save Machine State: Allows VirtualBox to save the exact situation of your virtual machine (including open programs, everything), save this block of RAM to your hard drive and shut down your VM. When you turn it back on, it will start exactly where you were.
- Reset: Forcibly restarts your virtual machine, just as in Unplug the machine (P), simulating a press on the reset button of the cabinet. I also don't recommend it unless the virtual machine has crashed and Ctrl + Alt + Delete doesn't resolve.
And that's it guys,
To the next!