Monday, 2 March 2015

Install and configure VirtualBox on CentOS/ RedHat

Install and configure VirtualBox on CentOS/ RedHat

Here's a quick, easy to follow guide for installing and configuring VirtualBox to run on a CentOS/ RedHat machine.

This tutorial was tested on a CentOS 6.5 64 Bit machine.

To get started, first off install the correct EPEL repo. You can find the exact EPEL repo link suited for your machines here:

Since Im using a CentOS 6.5 machine, my EPEL repo command is as follows:

# rpm -Uvh

Once the EPEL repo is installed, create a new .repo file for downloading the VirtualBox RPM pacakge:

# vi /etc/yum.repo.d/virtualbox.repo

name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
gpgcheck=1 gpgkey=

Save the file and exit the editor.

Run a repolist to verify and list the newly added repos.

# yum repolist

Install few additional packages before we install VirtualBox. 

# yum install gcc make patch dkms qt libgomp

Install the development libraries and kernel headers as well

# yum install kernel-headers hernel-devel fontforge binutils glibc-headers glibc-devel

Configure the correct value for the KERN_DIR environment variable. In my case, the Kernel Source files were present at /usr/src directory. 

# export KERN_DIR=/usr/src/kernels/2.6.32-504.8.1.el6.x86_64/

Once all done, simply install VirtualBox using the following command:

# yum install VirtualBox-4.3

After installation finishes, rebuild the kernel modules using following command:

# service vboxdrv setup

Once done, you are now ready to start using VirtualBox on your CentOS/ RedHat machine. For the CentOS desktop, select Applications -> System Tools -> Oracle VM VirtualBox

Alternatively, you can also run VirtualBox from the terminal using the following command:

# virtualbox &


Paul Miller said...

This is one such interesting and useful article that i have ever read. The way you have structured the content is so realistic and meaningful. Thank you so much for sharing this in here. Keep up this good work and I'm expecting more contents like this from you in future.

Hadoop Training Chennai | Hadoop Training in Chennai | big data Training in Chennai

John Son said...

Hi, I am really happy to found such a helpful and fascinating post that is written in well manner. Thanks for sharing such an informative post. keep update your blog.
Big Data Training in Chennai

jhansi joe said...

Thanks for this information; I hope it will use much reader who looking you regularly likes me…
Linux Administration Training in Chennai|Linux Administration

Harini said...

very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
Pega Training In Chennai

Diya Patel said...

Best Java Training Institute In ChennaiThis information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

Jeanne Davies said...

Very helpful post with lots off applications thanks for sharing Buzz Applications

Luzy Anvi said...

I am inspired with your post writing style safety courses in chennai|Nebosh courses in chennai|IOSH courses in chennai|safety courses in chennai|Diploma in safety courses training institute in chennai

Kombat Mortal said...

Thanks for your post. Click to play !

- Mortal Kombat XL
- Atari Breakout
- Dragon Ball Z Games
- five nights at freddy's

Chinni Bocha said...

SEO training in hyderabad by experts in digital markeing And by prosessional experts in seo.All the training by placement and also guide by the professionals.SEO training in hyderabad

slitheriocontrols said...

Thanks, you guys that is a great explanation. keep up the good work in your granite blog !

Andrew Son said...

Worth-able content.I have read your article. It is really useful for me. Start to learn Java programming because there is a massive demand for Java developers in IT sectors. It has a great scope in future.Keep posting like this.
Best JAVA Training institute in Chennai |
Java Courses in Chennai | J2EE Training in Chennai |Java Training in chennai

Andrew Son said...

When I was in interview, I answered the above questions, really most of the SEO professionals asking the same question when you attend interview. Thanks for Sharing.
Best seo training in chennai|SEO Training|SEO Course Chennai

Nikshitha S said...

Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
digital marketing course in Chennai | digital marketing training in Chennai

Paul Miller said...

Thanks for your post.I've found your site via Google.I will follow your steps for installing.Keep sharing more like this.
Android Training in Chennai | Selenium Training in Chennai | Software Testing Training in chennai

christyjames said...

Im thankful for sharing this informative post. Really thank you! Awesome. Keep sharing this type of post.
SEO Services Melbourne | SEO Consultant Melbourne | Melbourne SEO Services

Jasmine Thompson said...

Chaos Faction 4 with 29 weapons, 18 characters, 15 levels, 14 months in the making... the best games you will like its, have fun! Super mechs hacked is a turn-based online strategy multiplayer game where you build your very own mech and use it to dominate your opponents, be they A.I. or other players like yourself! Mahjong free games online is a puzzle game based on the same tiles. The goal is to match open pairs of identical tiles and remove them from the board, exposing the tiles under them for play

Rohit P said...

That was really fascinating article , worth to read them ,
do share more post

Thanks for share

learn seo with our experts digital marketing training in bangalore
seo training in bangalore

Qinan Chen said...

louis vuitton purse
true religion sale
longchamp handbags
cheap ray ban sunglasses
ugg outlet online
cheap ray bans
uggs outlet
longchamp bags
adidas yeezy boost 350

mythily mythu said...
This comment has been removed by the author.
mythily mythu said...

amazon-web-services training in chennai

mythily mythu said...

Greens Technology's. the leading software Training & placement center in adyar.mongoDB training in chennai

Arjun Rishi said...

Great post. Keep sharing such a useful post.

Digital marketing courses

Nandhini said...

Very interesting content which helps me to get the in depth knowledge about the technology. To know more details about the course visit this website.
Digital marketing course in Chennai | Digital marketing training in Chennai


Very helpful post with lots off applications thanks for sharing.
java training in chennai


• Great! Thanks for sharing the information.
tibco training in chennai

Post a Comment