Friday, 2019-08-30

*** sameo has joined #kata-general00:03
*** sameo has quit IRC00:22
*** sameo has joined #kata-general01:03
*** sameo has quit IRC01:34
kata-irc-bot5<manchenchen> Hello ,I am a new user of kata containner .I have one questions regarding kata vm . when run the docker centos 7.3  and 7.6 in the kata vm ,i find these two dockers use the same kernel ,which is provided by kata .so my question is ,is it ok to use the same version linux kernel or kata can provide different kernel versions .Thanks .02:20
kata-irc-bot5<eric.ernst> You can use different kernels. Just need to make sure the mandatory config optionsare set  / features are available02:59
kata-irc-bot5<manchenchen> Thanks for your response .Can you share some sample details or article regarding this03:12
*** igordc has quit IRC05:46
*** sgarzare has joined #kata-general07:20
*** lpetrut has joined #kata-general07:30
kata-irc-bot5<james.o.hunt> @manchenchen - the packaged version of Kata (https://github.com/kata-containers/documentation/tree/master/install) provides a guest kernel. The kernel used is specified in the configuration file (https://github.com/kata-containers/runtime#configuration) as `kernel=`. If you want to build your own guest kernel, read the developer guide, specifically08:00
kata-irc-bot5https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#install-guest-kernel-images.08:00
kata-irc-bot5<manchenchen> @james.o.hunt Thanks a lot,that's very useful.08:02
*** gwhaley has joined #kata-general08:07
kata-irc-bot5<graham.whaley> @manchenchen - if you are orchestrating with k8s, you can also set a different kernel per-pod by using annotations in the pod yaml. We are working on trying to document this better, but there are some details and links in the thread at https://github.com/kata-containers/documentation/issues/29408:13
kata-irc-bot5<manchenchen> Another question ,if i want to get others versions of guest kernel ,does it mean to download the previous kata versions and get them ?08:24
kata-irc-bot5<graham.whaley> @manchenchen - you could, if the version you want happens to exist in a previous release. Normally we see people building their own kernel using the links @james.o.hunt gave, as they have a specific kernel version or feature they require.  Also, it may be that Kata has added a new feature that requires a new kernel feature, so it is possible older kata kernels may not work with newer kata releases.08:25
kata-irc-bot5<james.o.hunt> @manchenchen - I think it would help us if you explained what you are actually trying to do :slightly_smiling_face:08:27
kata-irc-bot5<manchenchen> Aright.Let me explain my confuse :slightly_smiling_face: .From my experiment point of view ,when docker uses the kata as runtime ,all the running dockers ,whatever ubuntu or centos ,different operation system versions ,theses dockers use the same kernel ,linux kernel 4.19(kata 1.9 alpha corresponding) .This kernel version is relatively new ,and the kernel version of centos7.6 is still 3.10 .So ,as I understand ,if the docker08:52
kata-irc-bot5image is centos7.6 ,i should  give it a version 3.10 of guest kernel . I thought that kata might provide an official guest kernel images of multiple versions to choose from ,and then I can run the docker with selected guest kernel .08:52
kata-irc-bot5<manchenchen> @graham.whaley @james.o.hunt08:53
kata-irc-bot5<graham.whaley> hi @manchenchen - thanks for the extra info. OK, so there are a couple of points we should discuss .....08:56
kata-irc-bot5<graham.whaley> 1) if you were using just normal docker, then when you run a centos7.6 container, it will use the host kernel - which, unless that is also centos7.6, will likely not be a v3.10 kernel. The centos7.6 container image may not require a 3.10 kernel - as kernel versions are pretty strict on maintaining backwards compatability, it may be fine to run centos7.6 on a v4.19 kernel :slightly_smiling_face:08:57
kata-irc-bot5<graham.whaley> 2) kata uses some features of the kernel (VM kernel) that I think are not present in a v3.10 kernel - as it is soooooo old. Such as vsock, nvdimm. And @julio.montes noted also, there are some hotplug issues that make the v3.10 kernel crash as well iiuc. So, using a v3.10 kernel as the kata VM kernel may be hard work to configure, or may not work :(08:58
kata-irc-bot5<graham.whaley> 3) kata does not supply kernels that are specific to the container workload - so, no, no kernels specifically for Centos (or any other distro) based workloads I'm afraid. Just the single kata kernel, which presently tries to track the upstream latest longterm kernel, along with all the security updates etc. that come with that.08:59
kata-irc-bot5<graham.whaley> I hope that helps..09:00
kata-irc-bot5<james.o.hunt> @manchenchen - to add to what @graham.whaley has explained, it "shouldn't matter" which guest kernel you are running - unless you need a particular new kernel feature, it shouldn't matter which version of the guest kernel you run. However, we would always recommend using the latest version as that will contain all the latest fixes, etc.09:04
kata-irc-bot5<manchenchen> Understood. The latest version of the Linux kernel is very compatible with older Linux kernels and it can support  current development work of kata.  Thanks again both. @james.o.hunt @graham.whaley09:16
*** irclogbot_0 has quit IRC10:25
*** irclogbot_2 has joined #kata-general10:27
*** sgarzare has quit IRC11:40
*** sgarzare has joined #kata-general12:17
*** sameo has joined #kata-general13:35
*** sgarzare has quit IRC14:24
*** sameo has quit IRC14:24
*** sgarzare has joined #kata-general14:44
*** sgarzare has quit IRC16:15
*** igordc has joined #kata-general16:39
*** gwhaley has quit IRC17:01
*** auk has joined #kata-general19:53
*** auk has quit IRC22:26

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