Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-10 Thread Avi Kivity
On 09/10/2012 04:26 AM, Asias He wrote: Or you can make the guest talk to an internal unix-domain socket, tunnel that through virtio-serial, terminate virtio-serial in lkvm, and direct it towards the local X socket. Doesn't this require some user agent or config modification to the guest?

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-09 Thread Asias He
On Thu, Sep 6, 2012 at 3:59 PM, Avi Kivity a...@redhat.com wrote: On 09/06/2012 06:32 AM, Asias He wrote: On Wed, Sep 5, 2012 at 7:56 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 01:14 PM, Asias He wrote: On Wed, Sep 5, 2012 at 5:53 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-06 Thread Avi Kivity
On 09/06/2012 06:32 AM, Asias He wrote: On Wed, Sep 5, 2012 at 7:56 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 01:14 PM, Asias He wrote: On Wed, Sep 5, 2012 at 5:53 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 12:46 PM, Asias He wrote: Ok. Then the socat command not only

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Tue, Sep 4, 2012 at 9:07 PM, Avi Kivity a...@redhat.com wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d TCP-LISTEN:6000,fork,bind=localhost \

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Avi Kivity
On 09/05/2012 09:03 AM, Asias He wrote: On Tue, Sep 4, 2012 at 9:07 PM, Avi Kivity a...@redhat.com wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Pekka Enberg
On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d TCP-LISTEN:6000,fork,bind=localhost \ UNIX-CONNECT:/tmp/.X11-unix/X0 2) Start the guest and run

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Ingo Molnar
* Pekka Enberg penb...@kernel.org wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d TCP-LISTEN:6000,fork,bind=localhost \

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Wed, Sep 5, 2012 at 4:00 PM, Pekka Enberg penb...@kernel.org wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d TCP-LISTEN:6000,fork,bind=localhost \

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Wed, Sep 5, 2012 at 4:09 PM, Ingo Molnar mi...@kernel.org wrote: * Pekka Enberg penb...@kernel.org wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Wed, Sep 5, 2012 at 3:56 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 09:03 AM, Asias He wrote: On Tue, Sep 4, 2012 at 9:07 PM, Avi Kivity a...@redhat.com wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Avi Kivity
On 09/05/2012 12:19 PM, Asias He wrote: On Wed, Sep 5, 2012 at 3:56 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 09:03 AM, Asias He wrote: On Tue, Sep 4, 2012 at 9:07 PM, Avi Kivity a...@redhat.com wrote: On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Wed, Sep 5, 2012 at 5:29 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 12:19 PM, Asias He wrote: On Wed, Sep 5, 2012 at 3:56 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 09:03 AM, Asias He wrote: On Tue, Sep 4, 2012 at 9:07 PM, Avi Kivity a...@redhat.com wrote: On 08/24/2012

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Avi Kivity
On 09/05/2012 12:46 PM, Asias He wrote: Ok. Then the socat command not only exposes the display to the guest, but also to any local process with access to localhost:6000. Yes. It is a trick for people with 'Xorg -nolisten tcp' enabled. Which is hopefully everyone. -- error compiling

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Wed, Sep 5, 2012 at 5:53 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 12:46 PM, Asias He wrote: Ok. Then the socat command not only exposes the display to the guest, but also to any local process with access to localhost:6000. Yes. It is a trick for people with 'Xorg -nolisten

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Avi Kivity
On 09/05/2012 01:14 PM, Asias He wrote: On Wed, Sep 5, 2012 at 5:53 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 12:46 PM, Asias He wrote: Ok. Then the socat command not only exposes the display to the guest, but also to any local process with access to localhost:6000. Yes. It is a

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-05 Thread Asias He
On Wed, Sep 5, 2012 at 7:56 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 01:14 PM, Asias He wrote: On Wed, Sep 5, 2012 at 5:53 PM, Avi Kivity a...@redhat.com wrote: On 09/05/2012 12:46 PM, Asias He wrote: Ok. Then the socat command not only exposes the display to the guest, but also

Re: [PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-09-04 Thread Avi Kivity
On 08/24/2012 02:29 PM, Asias He wrote: It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d TCP-LISTEN:6000,fork,bind=localhost \ UNIX-CONNECT:/tmp/.X11-unix/X0 2) Start the guest and

[PATCH 1/2] kvm tools: Export DISPLAY ENV as our default host ip address

2012-08-24 Thread Asias He
It is useful to run a X program in guest and display it on host. 1) Make host's x server listen to localhost:6000 host_shell$ socat -d -d TCP-LISTEN:6000,fork,bind=localhost \ UNIX-CONNECT:/tmp/.X11-unix/X0 2) Start the guest and run X program host_shell$ lkvm run -k