How to Add Gnome GUI to Hortonworks Sandbox

In this article we will show how to install GUI on Hortonworks Sandbox in VirtualBox.

Everything that is shown here was done on HDP 2.1 Sandbox, but I personally checked that it works fine for HDP 2.2 and HDP 2.3 Sandboxes.

The result looks like this:

Everything that is described below was done under the root account with the latest version of the virtualbox.

The source of the information how to install Gnome to CentOS is here:

So, we will launch the following commands:

yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
yum -y groupinstall "Graphical Administration Tools"
yum -y groupinstall "Internet Browser"
yum -y groupinstall "General Purpose Desktop"
yum -y groupinstall "Office Suite and Productivity"
yum -y groupinstall "Graphics Creation Tools"

For convenience I’ve made also

yum install mc

Open the file /etc/inittab in a text editor (F4 in Midnight Commander) and change this line:


(there was the number 3 instead of 5).



In the properties of the virtual machine

Change the following properties of the virtual machine:

Launch the vm.

Of course, it would be nice to install the virtualbox guest additions, but if you do this, with 99.9% you will get problems.

To fix them run

yum update kernel*

After the reboot launch the virtualbox guest additions installation. You will get this:

It tries to compile the kernel modules, but it doesn’t work because there are no sources on the drive.

To fix the problem, type in google “kernel-devel-…” (that long word from the picture – copy paste it from the terminal window). You will be redirected to this site:


Download and install this package manually. As a result, you will get a folder on your disk in /usr/src/kernels/ containing the sources of the kernel.

Then we have to do steps following this manual – but don’t run everything, do just these:

rpm -Uvh
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
export KERN_DIR
cd /media/VBO...PRESS-TAB

there will be a script ./ Launch this script, and here you are:

The Hortonworks Sandbox 2.1 now has a GUI.


  1. Chris

    Thanks! Very useful post. I was able to add the gnome and get the GUI for the Hortonworks Sandbox 2.3. Now I see a bunch of accounts – HBase, Admin, Flume, Ambari-qa etc – how can i log in? The admin account doesn’t let me log in with admin or hadoop or root etc passwords. Where can i see the passwords?

  2. Ihor Bobak (Post author)

    Chris, the password for root should be “hadoop”. I don’t see any reason for logging on under hdfs or hbase or any other service-login: I suggest to log on under root, create your own login, add it to sudoers and then to log on under your own login.


Leave a Reply to Ihor Bobak Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>