Openstack– Open display/GUI using VNC vs Xming

While trying to install vncserver on Openstack instance (RHEL7.3) getting below error message that says repos are disabled.

[cloud-user@rhel7 lib64]$ sudo yum install tigervnc-server -y
Loaded plugins: search-disabled-repos
There are no enabled repos.
  Run “yum repolist all” to see the repos you have.
  To enable Red Hat Subscription Management repositories:
      subscription-manager repos –enable <repo>
  To enable custom repositories:
      yum-config-manager –enable <repo>

I tried to get the files related to vnc and copied those under /usr/bin and /usr/lib64 but I ended up with better approach of using Xming tool to open GUI.


  1. Setting up your DISPLAY

In order to open a GUI on a remote host you need to set an environment variable called $DISPLAY.

This re-directs the display so that the GUI appears on your desktop. First get your ip address:

Click Start -> Run -> cmd -> At the prompt type ‘ipconfig’

Make a note on of your IPv4 address . If VPN is connected use the corresponding IPv4 from ifconfig.

On the remote host set the display:

export DISPLAY=[your ip address]:0.0

Now you need a piece of software to allow Windows to display a GUI from UNIX. The most commonly used one is:

  1. Xming

When you have installed Xming, then start XLaunch. You might want to add it to your start up so that you don’t have to start it every time.

Make sure you check the ‘No Access Control’ tick box when creating an XLaunch configuration

Test your display, on the remote host type: xterm, you should see a small terminal appear.

NOTE: If you see any error message related to missing shared object (.so file) then try to get that .so file and place it under /usr/lib64. Create the link as needed for ex:

[cloud-user@rhel7 lib64]$ pwd


[cloud-user@rhel7 lib64]$ sudo cp ~/lib64/ .

[cloud-user@rhel7 lib64]$ sudo ln -s

[cloud-user@rhel7 ~]$ cd /usr/lib64

[cloud-user@rhel7 lib64]$ sudo cp ~/lib64/ .

[cloud-user@rhel7 lib64]$ sudo ln -s

[cloud-user@rhel7 lib64]$ sudo cp ~/lib64/ .

[cloud-user@rhel7 lib64]$ sudo ln -s


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s