Wednesday, 2018-08-15

*** openstack has joined #kata-general02:37
*** ChanServ sets mode: +o openstack02:37
*** sjas_ has joined #kata-general04:36
*** sjas has quit IRC04:39
*** sjas_ is now known as sjas06:08
*** gwhaley has joined #kata-general08:02
*** popey_ has joined #kata-general09:16
*** popey has quit IRC09:18
*** popey_ is now known as popey09:18
*** gwhaley has quit IRC11:03
*** gwhaley has joined #kata-general12:16
*** annabelleB has joined #kata-general13:55
*** annabelleB has quit IRC14:59
*** annabelleB has joined #kata-general15:07
*** gregg10_ has joined #kata-general15:15
gregg10_Hello Everyone, just wondering if there is a way to run GUI applications within Kata containers?15:15
xzrHey, anyone running Kata on Atomic? Could use some tips on the setup15:31
gwhaleyhi @gregg10_ - I don't think anybody has tried that to my knowledge - but, having a very quick search, it might be possible to run an X app inside and use XDISPLAY to route the output to the host (or other) X display server. You'll probably have to punch a bunch of holes through the network port mapping, and we don't (cannot) support '--net=host'.  feel free to open an Issue on github repos for more discussion maybe?15:36
gwhaley@xzr - a quick search shows atomic is based on docker of docker/k8s, yes? In that case, I expect installing kata into the k8s atomic is using 'may just work'(tm) - but, I don't remember/know of anybody trying it ... if you do give it a spin and get stuck then we're here to try and understand and try to resolve any blockers etc :-)15:38
xzrgwhaley: for what I've understood so far it's pretty much rhel's version of coreos15:38
xzrwith k8s/docker bundled in15:39
xzrI'll try some more tinkering tomorrow and see where I get15:40
gwhaleyxzr: great. Note btw, there is normally a bot that relays this irc to the slack as well, but it is down at the minute - many folks may be on slack and not here at the moment, so you may wish to feed back to slack and particularly on github, to get coverage :-)15:41
*** annabelleB has quit IRC15:41
xzrcheers, I'll do that :p15:41
xzrgoogle didn't really produce any results for the atomic+kata combo so might be slightly untreaded ground15:41
*** fiddletwix has quit IRC15:41
gwhaleyxzr: indeed, I think you may be breaking new ground :-)  This might help for the k8s integration side: https://github.com/kata-containers/documentation/blob/master/how-to/how-to-use-k8s-with-cri-containerd-and-kata.md15:47
*** annabelleB has joined #kata-general15:51
gregg10_@ghaley - thanks for information, i was trying with the DISPLAY environment path but no luck, keeps saying it can't open display :0.0... this process works with docker, but not with kata so far... i will open up an issue, thanks for the help!16:14
gwhaleygregg10_ - on docker, did you use --net=host or --privileged maybe - as that probably gets you the direct network access. On kata you will probably have to hand configure the port mapping on the docker run line - but, I don't know what ports (and/or how that is going to work if anything is ephemeral) etc.16:27
gregg10_actually what I do for docker is bind mount /tmp/.X11-unix and allow xhost  for all connections then export the DISPLAY environment variable in the container, and that seems to do the trick with all the GUI apps I have tried, one thing I noticed is that docker binds with tmpfs and kata mounts as type 9p16:32
gwhaley@gregg10_ - the problem you will have there I think is that that /tmp/.X11-unix dir on the host containers what I suspect are host local sockets - and as the kata container is running inside a VM, even if it can see those sockets, I suspect it cannot open/use them as they are not in 'its kernel' - basically, are on a different machine. So, my guess is you cannot use that same trick with kata - you will have to use real remote netwo16:36
gwhaleyrk XDISPLAY with the IP addr of the host - just my guess.16:36
gregg10_ok that makes sense, going to do some more research on XDISPLAY, appreciate the help!16:41
*** annabelleB has quit IRC16:43
*** annabelleB has joined #kata-general16:47
*** gwhaley has quit IRC17:00
*** annabelleB has quit IRC17:10
*** annabelleB has joined #kata-general17:32
*** gregg10_ has quit IRC18:15
*** annabelleB has quit IRC18:42
*** annabelleB has joined #kata-general18:49
*** annabelleB has quit IRC19:20
*** annabelleB has joined #kata-general19:26
*** annabelleB has quit IRC19:48
*** annabelleB has joined #kata-general20:01
*** annabelleB has quit IRC22:02

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!