Install VirtualBox without GUI or Headless

Scenario / Question:

How do I install VirtualBox on a linux server that does not have a GUI installed or Xorg.

Solution / Answer:

VirtualBox can be installed on a headless server, and can be controlled with VBoxManage and VBoxHeadless from the command line.

Install VirtualBox 3.0

There are two ways to install VirtualBox for RPM based systems.

#1 Download the VirtualBox RPM

Go to VirtualBox website and download RPM for you platform

Download VirtualBox

Install the RPM:

# rpm -Uvh <name of RPM file you downloaded>

#2 Install Yum style Repository

Download the following repo file to the directory /etc/yum.repos.d/

Centos / RedHat

Centos / Redhat VirtualBox Repo File

Fedora

Fedora VirtualBox Repo File

Install VirtualBox via Yum:

# yum install virtualbox

Now that VirtualBox is installed we need to learn how to control VirtualBox from the command line

No Comments

Leave a reply