You are not logged in.

#1 2008-04-15 17:05:38

marcs
Member
From: Italy
Registered: 2007-09-07
Posts: 63

[SOLVED] Qemu xhost - Can't open display

I'm using quemu and i got a problem, network works fine but i cannot use x apps on virtual machines.

I cannot launch xterm from a virtual machine,I got the error message : "can't open display 10.0.2.2:0"

where 10.0.2.2 is the ip of the host machine.

On the host i've used xhost for add localhost to the access:

access control enabled, only authorized clients can connect
INET:localhost

I can ping 10.0.2.2 from a virtual machine.

On Ip tables INPUT chain:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             reserved-multicast-range-NOT-delegated.example.com/29

I run qemu in multicast mode.

I guess i'm missing something in the xorg host configuration... but what ? or i'm wrong ?

Thanks for your time.

Last edited by marcs (2008-05-11 21:57:56)

Offline

#2 2008-04-15 18:41:05

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Qemu xhost - Can't open display

Try xhost +
Although it should just work that way (xhost + hostname) for some people (like me) xorg is not set up to accept TCP connections (And have no idea how to set up that...)...


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#3 2008-05-11 21:57:33

marcs
Member
From: Italy
Registered: 2007-09-07
Posts: 63

Re: [SOLVED] Qemu xhost - Can't open display

Ok I've solved the puzzle, xhost+ is unnecessary and dangerous, using xhost+ localhost is enough, it wasn't xorg stopping the tcp connection bat was gdm, thanks for the tip it helped me to think to this matter. There's an option in the gdm security panel that block tcp connections "Disable tcp connection to the X server" just uncheck it then reboot gdm by pressing CTRL+ALT+BACKSPACE and you're done.

and... YAIIIIIIIH! big_smile

Offline

Board footer

Powered by FluxBB