]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Export DISPLAY ENV as our default host ip address
authorAsias He <asias.hejun@gmail.com>
Fri, 24 Aug 2012 11:29:40 +0000 (19:29 +0800)
committerPekka Enberg <penberg@kernel.org>
Fri, 24 Aug 2012 13:15:50 +0000 (16:15 +0300)
commitce3450f368855f270a8877650844077479737de5
tree25051d00959c826bad940b114646bda83f930997
parent27b0421296dc85d116e30db626ad457d73a483fc
kvm tools: Export DISPLAY ENV as our default host ip address

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 /boot/bzImage
  guest_shell$ xlogo

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/guest/init.c