Posts Tagged ‘virtualbox’

VirtualBox: Guest OSes not booting (black screen) after updating the host machine

On 90% of the cases, this is due to a bad (either corrupt or mismatched) expansion pack (both on Linux and Windows).
Follow the steps below to reload the expansion pack:

Start VirtualBox and click on File and then on Preferences, as shown on the image below:

How to reach the preferences menu in VirtualBox in order to uninstall the expansion pack.

How to reach the preferences menu in VirtualBox in order to uninstall the expansion pack.

Navigate to “Extensions” and select/highlight “Oracle VM VirtualBox Extension Pack X” where X represents the version of the pack (irrelevant for now).

VirtualBox extensions page within the preferences menu.

VirtualBox extensions page within the preferences menu.

Then click on the REMOVE button and confirm your action when asked to:

VirtualBox Removal Confirmation Dialog

VirtualBox Removal Confirmation Dialog

If you’re using Linux, it’s certain that you’ll need to authenticate as root in order to proceed (absolutely no harm in this):

VirtualBox (Linux) - Authentication

VirtualBox (Linux) – Authentication

Once you’ve successfully removed the Extension Pack, simply reinstall it again by downloading the latest version of it through the official website.
Extension packs are usually delivered on the “vbox-extpack” format, which allows you to install them by simply executing them on a system where VirtualBox is installed (that would obviously be the HOST machine).

If that fails to work, you can alternatively download the extension pack (Right-Click, Save As) and installing it manually through the Preferences menu (pretty much the same procedure, but in lieu of removing it, you’ll be installing it).

Oracle VirtualBox: Installing Guest Additions in Fedora 18 (and all others)

Unfortunately you cannot just install VirtualBox Guest Additions  in a fresh Fedora 18 install, as it will require a few additional packages to be installed and a few minutes checking on the logs to identify any possible further issues.

While the Guest Additions are not required to use a CLI-based Virtual Machine,¬† they are essential if you’re using it as a Desktop/Workstation OS (over Windows in this example).

Moving on, here’s the procedure to properly install VirtualBox Guest Additions in Fedora 18.
(This procedure may or may not work for other distros using the same package manager and for other versions of Fedora)

  1. Open a new console window, and type the following commands, one per line (I’ll explain what they do below):

    yum -y update kernel
    yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
    yum -y update

    The commands above will authenticate you as root (su), update your system’s Kernel install the required packages for VirtualBox Guest Additions to work properly.
    Just as a preventative measure, I recommend running “yum update” afterwards, just to ensure you’re up to date on everything else (assuming that this is just a fresh install of Fedora).

  2. In the VirtualBox menu bar, open the “Devices” menu and select “Install Guest Additions”.

    VirtualBox 4.2.6

    VirtualBox Install Guest Additions

  3. Just browse your DVD Drive contents using your file explorer and run from there (it will ask you to re-authenticate as root).

The output should be similar to this:

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.6 Guest Additions for Linux..........

VirtualBox Guest Additions installer
Removing installed version 4.2.6 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org Server 1.13 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]
Press Return to close this window…


Let the script finish, reboot your Virtual Machine and you’re all set.
Note: I have used VirtualBox 4.2.6 and Fedora 18 (3.7.2-204) in this tutorial.