What To Do After Installing VirtualBox

DZone 's Guide to

What To Do After Installing VirtualBox

Congratulations, you've finished downloading and installing VirtualBox. This article will take you a step further with an extension pack.

· Performance Zone ·
Free Resource

This post is part 2 of the 3-part series on creating a virtual machine using VirtualBox hosted on a Debian machine. Part 1 focuses on the installation of VirtualBox and the guest OS (FreeBSD). Part 2 addresses things that you should do after installing VirtualBox. The upcoming part 3 deals specifically with accessing USB flash drives from the guest OS.

Install Extension Pack

The base VirtualBox package is missing some important functionalities: support for virtual USB 2.0 and 3.0 devices, host webcam passthrough, Intel PXE boot, and disk image encryption. To obtain those functionalities, you need to download and install the VirtualBox extension pack. Note that the extension pack operates under a much stricter license than the GPLv2 of the base VirtualBox package. Specifically, the VirtualBox Extension Pack Personal Use and Evaluation License (PUEL) "is a free license for personal, educational or evaluation use." For commercial use, you do have to pay a fee to Oracle. The procedure to install the extension pack is as follows:

  1. Download the VirtualBox extension pack to your host machine.
    The extension pack is available from the VirtualBox website. The package is universal for all host and guest OSes. However, you should use the same version for both the base and extension pack. In other words, when you upgrade your base, you should also upgrade the extension pack.
  2. Run VirtualBox Manager.

  1. Add extension pack.
    From the File menu, click Preferences. Then, select Extensions in the side panel.

Click the + icon to specify the location of the extension pack file (Oracle_VM_VirtualBox_Extension_Pack-5.2.4-119785.vbox-extpack).

At the end, click Install. Before it begins installation, you will be prompted to accept the software license, and to enter the administrative password.

Bridge Host & Guest Networks

By default, the virtual machine is NATed (not bridged) to your host network. Consequently, the FreeBSD guest is on a different subnet than the host. For example, my FreeBSD guest has a IP address while my Linux host has a address. Practically, it means that I cannot ssh to the guest OS from anywhere in my host network. To make that possible, I need to bridge the host network and the guest. The procedure is below (the VM does not have to be powered off for you to change networking).

  1. Open the VirtualBox Manager, and click Settings.
  2. Click Network in the side menu.

  1. Select Bridged Adapter in the Attached to dropdown menu.

Enable Copy & Paste Between Host & Guest

I administer the FreeBSD guest extensively from its virtual system console running on the Linux host. By default, the clipboard is not shared between the host and the guest systems. That means I often need to manually re-enter commands on the guest OS rather than copy and paste from the host. To share the system clipboard (and save yourself plenty of laborious typing), follow the steps below:

  1. Open the VirtualBox Manager, and click Settings.
  2. Select General, and click the Advanced tab.

  1. Select bidirectional for both Shared Clipboard and Drag and Drop.

Note that, to share the clipboard, the FreeBSD-specific guest additions package  emulators/virtualbox-ose-additions must also be installed. The instruction for that is already detailed in the Post-installation section of part 1 of this series.

Related Posts

Performance ,extension ,functionalities ,hypervisor ,tutorial ,virtualbox

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}