How to Install VirtualBox on CentOS 6.3 x64



Virtual Box is a powerful cross-platform virtualization software developed by Oracle.

This tutorial will guide you in installation of VirtualBox on CentOS.




Run the following commands to install VirtualBox:

yum -y groupinstall Desktop
yum -y install qt qt-devel SDL-devel tigervnc-server gcc make kernel-devel

export KERN_DIR=/usr/src/kernels/2.6.32-358.2.1.el6.x86_64rpm -ivh

/etc/init.d/vboxdrv setup


VNC Server Set Up


Once the installation is completed, you need to set up VNC server.


Update the configuration file /etc/sysconfig/vncservers with the following lines of code:

VNCSERVERARGS[0]="-geometry 1024x768"

In case if you don’t want to run VNC as root user and would like to create an encrypted tunnel, you can create a separate user and add localhost to VNCSERVERARGS.

After that you can use either SSH client or Putty to create a tunnel and map localhost:port -> localhost:5901 tunnel and restart vnc server.

service vncserver start


Tight VNC Viewer


Download the TightVNC viewer and connect it to your droplet’s IP port 5900. The window should look like this:


Enter your VNC password:



Uploading ISO Disk or Disk Image to Import


Here, you can install any of Linux or BSD or Windows OS with an uploaded ISO image. In case if you already have a Disk image with either of VDI, VMDK, QCOW, or RAW file types, import it to virtual box.


Launch Virtual Box and Install Virtual Machines


After making a connection through VNC, go to Applications à System Tools à Oracle VM Virtual Box as shown in the picture:



You can install Windows operating system using Virtual Box. For example, see this Windows XP running in VirtualBox:


That’s it!


support2 has written 111 articles

Leave a Reply