xhost: unable to display "test:1.0"

Posted on 2007-10-07
Last Modified: 2013-12-19
I am installing oracle 10.2g with OS Linux 4 on VMware 5.  while installation to use xhost I have setup display as below :

export DISPLAY

After this when i start installer ./runInstaller it show error message :  Cant' connect to X11 window server using test:1.0 as the value of DISPLAY variable.

any suggestion is appreciated.


M Abdussami
Question by:devdept
    LVL 9

    Expert Comment

    First make sure that test can be resolved.   ping test.   Does it return the right address?

    Also, even though you are in a vmware session, that doesn't mean you are using a non console head number.

    You might try one of the following:

    export DISPLAY=test:0
     use /sbin/ifconfig  (in the VM)  take the IP.

    export DISPLAY=

    I believe the problem resides in the DISPLAY setting.    Also VMWare also uses some difference types of IP schemes.   Indicating whether you are using bridged, NAT, or Host only will be a big help.

    Author Comment

    hi chingmd:

    I tried with suggested solutions but still same error  as below:

    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '' as the value of the DISPLAY variable.
            at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
            at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
            at java.awt.Window.init(Unknown Source)
            at java.awt.Window.<init>(Unknown Source)
            at java.awt.Frame.<init>(Unknown Source)
            at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
            at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(

    any more suggestions.


    LVL 9

    Accepted Solution

    Let's take a step back and look at the scenario.

    Let's start with a few questions:   The OS of the host machine, the OS of the machine want to display the installer to, and we already know the OS of the guest machine?

    What kind of networking model are you using in VMWARE?

    On the machine  that you are displaying the window, you've run xhost +  (Assuming Xwindows is running)

    Then on oracle  VM host  that has the software, is where you set the DISPLAY environment variable.  

    There are network settings to be considered here.  Since VMware can have three primary type of networking.  NAT, Bridged, and Host Only.    Each one can change your display settings slightly.  
    the fourth is no network, and that's a bit overly secure, eh?

    Which one are you using?  

    Author Comment

    hi chingmd:

    Thanks for reply.
    I am suing network type  BRIDGED in VMWARE


    LVL 9

    Expert Comment

    OK...  So the host of the VM should be getting it's own IP address.

    What host and OS are you trying to display the output to?  


    Author Comment

    Dear Admin,
    pls close this question as it didnt help to fix my problem

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
    VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
    Via a live example, show how to take different types of Oracle backups using RMAN.
    This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now