<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Sandeep,</div>
<div dir="ltr" >The virtio-fs drivers do not yet support SEV guests. Therefore, virtio-9p is a requirement for Kata with SEV. Confirm that your setup and configuration follow the instructions I've detailed here: <a href="https://jcadden.medium.com/confidential-computing-with-kubernetes-sev-guest-protection-for-kata-containers-8f29f0a3a2d7">https://jcadden.medium.com/confidential-computing-with-kubernetes-sev-guest-protection-for-kata-containers-8f29f0a3a2d7</a></div>
<div dir="ltr" > </div>
<div dir="ltr" >Best,</div>
<div dir="ltr" >Jim</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Gupta, Sandeep" <Sandeep.Gupta@amd.com><br>To: "Christophe de Dinechin" <cdupontd@redhat.com>, "Gupta, Sandeep" <Sandeep.Gupta@amd.com><br>Cc: "kata-dev" <kata-dev@lists.katacontainers.io>, "James Cadden" <jcadden@ibm.com>, "Hollingsworth, Brent" <brent.hollingsworth@amd.com><br>Subject: [EXTERNAL] RE: [kata-dev] , "kata-containers-2.2.0-alpha1" with confidential_guest = true (SEV Guest)<br>Date: Mon, Aug 2, 2021 5:11 PM<br> <br><!-- BaNnErBlUrFlE-HeAdEr-start --> <!-- BaNnErBlUrFlE-HeAdEr-end --> <!--Notes ACF
<meta http-equiv="Content-Type" content="text/html; charset=utf8" >--> <!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit" >
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--> <!-- BaNnErBlUrFlE-BoDy-start --> <!-- Preheader Text : BEGIN --> <span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;" > [AMD Official Use Only] Hi, I switched to “virtio-fs”, But now I see – time="2021-08-02T20:54:02.621074148Z" level=info msg="virtiofsd quits" name=containerd-shim-v2 pid=180910 sandbox=ksh source=virtcontainers </span> <!-- Preheader Text : END --> <!-- Email Banner : BEGIN --> <span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;" >ZjQcmQRYFpfptBannerStart</span> <!--[if ((ie)|(mso))]>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 3px 0px 16px 0px;" ><tr><td>
<table class="pfptBannerTableMSO" border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%;border-radius:4px;border-top:4px solid #90a4ae;background-color:#d0d8dc;" ><tr><td valign="top" >
<table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px" >
<tr><td><span class="pfptTitleMSO" style="color:#000000 !important;font-family: 'Arial', sans-serif;font-weight:bold !important;font-size:14px !important;" >
This Message Is From an External Sender
</span></td></tr>
<tr><td><span class="pfptSubtitleMSO" style="color:#000000 !important;font-weight:normal !important;font-family: 'Arial', sans-serif; font-size:12px !important;" >
This message came from outside your organization.
</span></td></tr>
</table>
</td></tr></table>
</td></tr></table>
<![endif]--> <!--[if !((ie)|(mso))]-->
<div style="margin:16px 0px 16px 0px; padding:8px 16px 8px 16px; border-radius: 4px; min-width: 200px;background-color: #d0d8dc; border-top: 4px solid #90a4ae;" ><div style="display: inline-block; margin: 0px 0px 1px 0px; max-width: 600px;" ><div style="color:#000000 !important;font-family: 'Arial', sans-serif !important;font-weight:bold !important;font-size:14px !important;line-height:18px;display:block;" >This Message Is From an External Sender</div>
<div style="color:#000000 !important;font-weight:normal !important;font-family: 'Arial', sans-serif !important;font-size:12px !important;line-height:18px;margin-top:2px;display:block" >This message came from outside your organization.</div></div></div><!--[endif]--> <span style="display:none !important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;" >ZjQcmQRYFpfptBannerEnd</span><br><!-- Email Banner : END --> <!-- BaNnErBlUrFlE-BoDy-end -->
<div><p style="margin:0in" ><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue" >[AMD Official Use Only]</span><o:p></o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" >Hi,<o:p></o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" >I switched to “virtio-fs”,<o:p></o:p></p>
<p style="margin: 0px;" >But now I see –<o:p></o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" ><span style="background:yellow;mso-highlight:yellow" >time="2021-08-02T20:54:02.621074148Z" level=info msg="virtiofsd quits" name=containerd-shim-v2 pid=180910 sandbox=ksh source=virtcontainers subsystem=virtiofsd<o:p></o:p></span></p>
<p style="margin: 0px;" ><span style="background:yellow;mso-highlight:yellow" >time="2021-08-02T20:54:02.621252859Z" level=info msg="Stopping Sandbox" name=containerd-shim-v2 pid=180910 sandbox=ksh source=virtcontainers subsystem=qemu<o:p></o:p></span></p>
<p style="margin: 0px;" ><span style="background:yellow;mso-highlight:yellow" >time="2021-08-02T20:54:02.621410880Z" level=debug msg="qemu-system-x86_64: -device vhost-user-fs-pci,chardev=char-2478d93684006754,tag=kataShared: iommu_platform=true is not supported by the device" name=containerd-shim-v2 pid=180910 sandbox=ksh source=virtcontainers subsystem=qemu</span><o:p></o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" ><span style="background:yellow;mso-highlight:yellow" >qemu-system-x86_64:<o:p></o:p></span></p>
<p style="margin: 0px;" ><span style="background:yellow;mso-highlight:yellow" >============================<o:p></o:p></span></p>
<p style="margin: 0px;" ><span style="background:yellow;mso-highlight:yellow" >time="2021-08-02T21:01:49.140554897Z" level=info msg="launching /usr/local/bin/qemu-system-x86_64 with: [-name sandbox-ksh -uuid d7bc6db6-03a6-4900-9aff-0cf40d0f27ea -machine q35,accel=kvm,kernel_irqchip=split,confidential-guest-support=sev -cpu host,pmu=off -qmp unix:/run/vc/vm/ksh/qmp.sock,server=on,wait=off -m 2048M,slots=10,maxmem=129755M -device pci-bridge,bus=pcie.0,id=pci-bridge-0,chassis_nr=1,shpc=on,addr=2 -device virtio-serial-pci,disable-modern=false,id=serial0 -device virtconsole,chardev=charconsole0,id=console0 -chardev socket,id=charconsole0,path=/run/vc/vm/ksh/console.sock,server=on,wait=off -device virtio-scsi-pci,id=scsi0,disable-modern=false -object sev-guest,id=sev,cbitpos=51,reduced-phys-bits=5 -drive if=pflash,format=raw,readonly=on,file=/usr/local/share/qemu/OVMF_CODE.fd.kata -object rng-random,id=rng0,filename=/dev/urandom -device virtio-rng-pci,rng=rng0 -device vhost-vsock-pci,disable-modern=false,vhostfd=3,id=vsock-1358627234,guest-cid=1358627234 -chardev socket,id=char-5492eaf755dce6c5,path=/run/vc/vm/ksh/vhost-fs.sock -device vhost-user-fs-pci,chardev=char-5492eaf755dce6c5,tag=kataShared -rtc base=utc,driftfix=slew,clock=host -global kvm-pit.lost_tick_policy=discard -vga none -no-user-config -nodefaults -nographic --no-reboot -daemonize -object memory-backend-file,id=dimm1,size=2048M,mem-path=/dev/shm,share=on -numa node,memdev=dimm1 -kernel /usr/share/kata-containers/vmlinux-sev-es-5.9-v1.container -initrd /usr/share/kata-containers/kata-containers-initrd.img -append tsc=reliable no_timer_check rcupdate.rcu_expedited=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 noreplace-smp reboot=k console=hvc0 console=hvc1 cryptomgr.notests net.ifnames=0 pci=lastbus=0 debug panic=1 nr_cpus=240 scsi_mod.scan=none agent.log=debug root=/dev/vda1 rootflags=data=ordered,errors=remount-ro agent.log=debug initcall_debug -pidfile /run/vc/vm/ksh/pid -D /run/vc/vm/ksh/qemu.log -smp 1,cores=1,threads=1,sockets=240,maxcpus=240]" name=containerd-shim-v2 pid=181864 sandbox=ksh source=virtcontainers subsystem=qmp</span><o:p></o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" ><o:p> </o:p></p>
<div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in" ><p style="margin: 0px;" ><b>From:</b> Christophe de Dinechin <<a href="mailto:cdupontd@redhat.com" target="_blank">cdupontd@redhat.com</a>><br><b>Sent:</b> Monday, August 2, 2021 1:53 AM<br><b>To:</b> Gupta, Sandeep <<a href="mailto:Sandeep.Gupta@amd.com" target="_blank">Sandeep.Gupta@amd.com</a>><br><b>Cc:</b> kata-dev <<a href="mailto:kata-dev@lists.katacontainers.io" target="_blank">kata-dev@lists.katacontainers.io</a>>; James Cadden <<a href="mailto:jcadden@ibm.com" target="_blank">jcadden@ibm.com</a>>; Hollingsworth, Brent <<a href="mailto:brent.hollingsworth@amd.com" target="_blank">brent.hollingsworth@amd.com</a>><br><b>Subject:</b> Re: [kata-dev] , "kata-containers-2.2.0-alpha1" with confidential_guest = true (SEV Guest)<o:p></o:p></p></div></div>
<p style="margin: 0px;" ><o:p> </o:p></p>
<p style="margin: 0px;" >[CAUTION: External Email] <o:p></o:p></p>
<div><p style="margin: 0px;" ><o:p> </o:p></p>
<div><p style="margin: 0px;" ><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" ><div><p style="margin: 0px;" >On 31 Jul 2021, at 19:42, Gupta, Sandeep <<a href="mailto:Sandeep.Gupta@amd.com" target="_blank">Sandeep.Gupta@amd.com</a>> wrote:<o:p></o:p></p></div>
<p style="margin: 0px;" ><o:p> </o:p></p>
<div><p style="margin: 0px;" ><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >[AMD Official Use Only]<br><br>Hi Christophe,<br><br>The 'qemu logs' are empty.<br><br>root@sandeepg-ethanolx-milan:/var/run/vc/vm/ksh# ls -al<br>total 4<br>drwxr-x--- 2 root root 120 Jul 31 17:37 .<br>drwxr-x--- 3 root root 60 Jul 31 17:37 ..<br>srwxr-x--- 1 root root 0 Jul 31 17:37 console.sock<br>-rw------- 1 root root 8 Jul 31 17:37 pid<br>-rw-r--r-- 1 root root 0 Jul 31 17:37 qemu.log<br>srwxr-x--- 1 root root 0 Jul 31 17:37 qmp.sock<br><br>time="2021-07-31T17:37:05.007627568Z" level=info msg="VM started" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=sandbox<br>time="2021-07-31T17:37:05.007708140Z" level=debug msg="console watcher starts" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=sandbox<br>time="2021-07-31T17:37:05.007841804Z" level=debug msg="DNS file not present in ociMounts. Sandbox DNS will not be set." name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=kata_agent<br>time="2021-07-31T17:37:05.007915363Z" level=info msg="New client" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=kata_agent url="</span><a href="vsock://3018373783:1024" target="_blank"><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >vsock://3018373783:1024</span></a><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >"<br>time="2021-07-31T17:37:35.251396370Z" level=info msg="Stopping Sandbox" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=qemu<br>time="2021-07-31T17:37:35.253486712Z" level=warning msg="The virtiofsd had stopped" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=qemu<br>time="2021-07-31T17:37:35.253569129Z" level=debug msg="got QMP event" event="{SHUTDOWN map[guest:false reason:host-qmp-quit] 2021-07-31 17:37:35.000253386 +0000 UTC}" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=qemu<br><br><br>I am using "virtio-9p" --</span><o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" ><p style="margin: 0px;" ><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" ># Shared file system type:<br># - virtio-fs (default)<br># - virtio-9p<br>shared_fs = "virtio-9p"<o:p></o:p></span></p></blockquote>
<p style="margin: 0px;" ><br><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >Then why this warning message - warning msg="The virtiofsd had stopped" name=containerd-shim-v2 pid=1897831 sandbox=ksh source=virtcontainers subsystem=qemu ??</span><o:p></o:p></p></div></blockquote>
<div><p style="margin: 0px;" ><o:p> </o:p></p></div>
<div><p style="margin: 0px;" >Oh, I had not seen that you had configured 9pfs.<o:p></o:p></p></div>
<div><p style="margin: 0px;" ><o:p> </o:p></p></div>
<div><p style="margin: 0px;" >Is that still supported?<o:p></o:p></p></div>
<div><p style="margin: 0px;" ><o:p> </o:p></p></div>
<div><p style="margin: 0px;" >In my limited experience, you can get the "virtiofsd has stopped" message when there is some abrupt crash of one of the components, and the socket is closed.<o:p></o:p></p></div>
<p style="margin: 0px;" ><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" ><div><p style="margin: 0px;" ><br><br><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >--Thanking You<br>--Best<br>--Sandeep<br><br><br><br>-----Original Message-----<br>From: Christophe de Dinechin <</span><a href="mailto:cdupontd@redhat.com" target="_blank"><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >cdupontd@redhat.com</span></a><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >><span> </span><br>Sent: Friday, July 30, 2021 1:54 AM<br>To: Gupta, Sandeep <</span><a href="mailto:Sandeep.Gupta@amd.com" target="_blank"><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >Sandeep.Gupta@amd.com</span></a><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >><br>Cc: kata-dev <</span><a href="mailto:kata-dev@lists.katacontainers.io" target="_blank"><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >kata-dev@lists.katacontainers.io</span></a><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >><br>Subject: Re: [kata-dev] , "kata-containers-2.2.0-alpha1" with confidential_guest = true (SEV Guest)<br><br>[CAUTION: External Email]</span><o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" ><p style="margin: 0px;" ><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >On 30 Jul 2021, at 10:21, Gupta, Sandeep via kata-dev <<a href="mailto:kata-dev@lists.katacontainers.io" target="_blank">kata-dev@lists.katacontainers.io</a>> wrote:<br><br>[AMD Official Use Only]<br><br>Hi All,<br><br>(1) Using kata-containers-2.2.0-alpha1 - configuration.toml --<br><br># Copyright (c) 2017-2019 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 #<br><br># XXX: WARNING: this file is auto-generated.<br># XXX:<br># XXX: Source file: "cli/config/configuration-qemu.toml.in"<br># XXX: Project:<br># XXX: Name: Kata Containers<br># XXX: Type: kata<br><br>[hypervisor.qemu]<br>path = "/usr/local/bin/qemu-system-x86_64"<br>#kernel = "/usr/share/kata-containers/vmlinux.container"<br>kernel = "/usr/share/kata-containers/vmlinux-sev-es-5.9-v1.container"<br>#image = "/usr/share/kata-containers/kata-containers.img"<br>initrd = "/usr/share/kata-containers/kata-containers-initrd.img"<br>machine_type = "q35"<br><br># Enable confidential guest support.<br># Toggling that setting may trigger different hardware features, ranging # from memory encryption to both memory and CPU-state encryption and integrity.<br># The Kata Containers runtime dynamically detects the available feature set and # aims at enabling the largest possible one.<br># Default false<br>confidential_guest = true<br><br># List of valid annotation names for the hypervisor # Each member of the list is a regular expression, which is the base name # of the annotation, e.g. "path" for io.katacontainers.config.hypervisor.path"<br>enable_annotations = []<br><br># List of valid annotations values for the hypervisor # Each member of the list is a path pattern as described by glob(3).<br># The default if not set is empty (all annotations rejected.) # Your distribution recommends: ["/usr/bin/qemu-system-x86_64"] valid_hypervisor_paths = ["/usr/local/bin/qemu-system-x86_64"]<br><br># Optional space-separated list of options to pass to the guest kernel.<br># For example, use `kernel_params = "vsyscall=emulate"` if you are having # trouble running pre-2.15 glibc.<br>#<br># WARNING: - any parameter specified here will take priority over the default # parameter value of the same name used to start the virtual machine.<br># Do not set values here unless you understand the impact of doing so as you # may stop the virtual machine from booting.<br># To see the list of default parameters, enable hypervisor debug, create a # container and look for 'default-kernel-parameters' log entries.<br>#kernel_params = ""<br>kernel_params = " root=/dev/vda1 rootflags=data=ordered,errors=remount-ro agent.log=debug initcall_debug"<br><br># Path to the firmware.<br># If you want that qemu uses the default firmware leave this option empty #firmware = ""<br>firmware = "/usr/local/share/qemu/OVMF_CODE.fd.kata"<br>...........<br>..............<br># Shared file system type:<br># - virtio-fs (default)<br># - virtio-9p<br>shared_fs = "virtio-9p"<br>..............<br>................<br><br><br>(2) containerd version 1.5.2<br>/usr/local/bin/containerd --version<br>containerd <a href="https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgithub.com%2Fcontainerd%2Fcontainerd&data=04%7C01%7Csandeep.gupta%40amd.com%7C1a9525f579c2472d8dc508d95592fbca%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637634912055410619%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=klPFfHhhkaOctG0gSnh5HbFrU1HIg9dfhkOHORGp6GU%3D&reserved=0" target="_blank"> github.com/containerd/containerd</a> 1.5.2-0ubuntu1~20.04.2<br><br>/usr/local/bin/containerd --config /etc/containerd/config.toml<br><br># cat /etc/containerd/config.toml<br># Copyright 2018-2020 Docker Inc.<br><br># Licensed under the Apache License, Version 2.0 (the "License");<br># you may not use this file except in compliance with the License.<br># You may obtain a copy of the License at<br><br># <a href="https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0&data=04%7C01%7Csandeep.gupta%40amd.com%7C1a9525f579c2472d8dc508d95592fbca%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637634912055420613%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XNi90%2BA19x9TuG14Hmq8Xn5vmqtDKgtGR7GG10nje%2BM%3D&reserved=0" target="_blank">https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0&data=04%7C01%7Csandeep.gupta%40amd.com%7Cb5c1b6fad29a45a8c2bd08d953378884%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637632320258587100%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=M8I15ylVkd6wnaUe54JbPrXl%2BpACVBEHAIjwBiQw16Q%3D&reserved=0</a><br><br># Unless required by applicable law or agreed to in writing, software<br># distributed under the License is distributed on an "AS IS" BASIS,<br># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br># See the License for the specific language governing permissions and<br># limitations under the License.<br>[debug]<br> level = "debug"<br><br>[plugins.cri.containerd]<br> no_pivot = false<br> [plugins.cri.containerd.runtimes]<br> [plugins.cri.containerd.runtimes.runc]<br> runtime_type = "io.containerd.runc.v1"<br> [plugins.cri.containerd.runtimes.runc.options]<br> NoPivotRoot = false<br> NoNewKeyring = false<br> ShimCgroup = ""<br> IoUid = 0<br> IoGid = 0<br> BinaryName = "runc"<br> Root = ""<br> CriuPath = ""<br> SystemdCgroup = false<br> [plugins.cri.containerd.runtimes.kata]<br> runtime_type = "io.containerd.kata.v2"<br> [plugins.cri.containerd.runtimes.kata.options]<br> ConfigPath = "/etc/kata-containers/configuration.toml"<br> NoPivotRoot = false<br> NoNewKeyring = false<br> ShimCgroup = ""<br> IoUid = 0<br> IoGid = 0<br> BinaryName = "/usr/local/bin/kata-runtime"<br> Root = ""<br> CriuPath = ""<br> SystemdCgroup = false<br> [plugins.cri.containerd.runtimes.katacli]<br> runtime_type = "io.containerd.runc.v1"<br> [plugins.cri.containerd.runtimes.katacli.options]<br> NoPivotRoot = false<br> NoNewKeyring = false<br> ShimCgroup = ""<br> IoUid = 0<br> IoGid = 0<br> BinaryName = "/usr/local/bin/kata-runtime"<br> Root = ""<br> CriuPath = ""<br> SystemdCgroup = false<br><br><br>(3) # ctr run --runtime io.containerd.kata.v2 -t --rm<span> </span><a href="https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdocker.io%2Flibrary%2Falpine_linux%3Alatest&data=04%7C01%7Csandeep.gupta%40amd.com%7C1a9525f579c2472d8dc508d95592fbca%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637634912055420613%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=OjQASUecfUgBCEgEZtGkRjtb6%2FrGfsMXHCg3XOkGkXg%3D&reserved=0" target="_blank">docker.io/library/alpine_linux:latest</a><span> </span>bash<br>ctr: failed to create shim: Failed to check if grpc server is working: rpc error: code = DeadlineExceeded desc = timed out connecting to vsock 1025935578:1024: unknown<br><br><br>(4) containerd LOG:<br><br>DEBU[2021-07-30T07:53:27.915940335Z] stat snapshot key="sha256:7444ea29e45e927abea1f923bf24cac20deaddea603c4bb1c7f2f5819773d453"<br>DEBU[2021-07-30T07:53:27.921636473Z] prepare snapshot key=bash parent="sha256:7444ea29e45e927abea1f923bf24cac20deaddea603c4bb1c7f2f5819773d453"<br>DEBU[2021-07-30T07:53:27.930411184Z] event published ns=default topic=/snapshot/prepare type=containerd.events.SnapshotPrepare<br>DEBU[2021-07-30T07:53:27.939032985Z] get snapshot mounts key=bash<br>DEBU[2021-07-30T07:53:27.955103540Z] event published ns=default topic=/containers/create type=containerd.events.ContainerCreate<br>DEBU[2021-07-30T07:53:27.962015595Z] get snapshot mounts key=bash<br>DEBU[2021-07-30T07:53:28.039779478Z] garbage collected d=2.588852ms<br>time="2021-07-30T07:53:28.043806590Z" level=debug msg="registering ttrpc server"<br>time="2021-07-30T07:53:28.043934212Z" level=debug msg="serving api on socket" socket="[inherited from parent]"<br>time="2021-07-30T07:53:28.043956084Z" level=info msg="starting signal loop" namespace=default path=/run/containerd/io.containerd.runtime.v2.task/default/bash pid=1590317 time="2021-07-30T07:53:28.044534952Z" level=debug msg="converting /run/containerd/io.containerd.runtime.v2.task/default/bash/config.json" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=compatoci time="2021-07-30T07:53:28.049788100Z" level=info msg="loaded configuration" file=/etc/kata-containers/configuration.toml format=TOML name=containerd-shim-v2 pid=1590317 sandbox=bash source=katautils time="2021-07-30T07:53:28.049991937Z" level=info msg="IOMMUPlatform is enabled by default." name=containerd-shim-v2 pid=1590317 sandbox=bash source=katautils time="2021-07-30T07:53:28.051163250Z" level=info msg="shm-size detected: 67108864" source=virtcontainers subsystem=oci time="2021-07-30T07:53:28.054669132Z" level=info msg="create netns" name=containerd-shim-v2 netns=/var/run/netns/cnitest-6747183b-4b3c-3ec6-81c4-d517d32b120b pid=1590317 sandbox=bash source=katautils time="2021-07-30T07:53:28.071513285Z" level=info msg="Enabling SEV guest protection" kernel-params="[{tsc reliable} {no_timer_check } {rcupdate.rcu_expedited 1} {i8042.direct 1} {i8042.dumbkbd 1} {i8042.nopnp 1} {i8042.noaux 1} {noreplace-smp } {reboot k} {console hvc0} {console hvc1} {cryptomgr.notests } {net.ifnames 0} {pci lastbus=0}]" kernel-params-debug="[{debug }]" kernel-params-non-debug="[{quiet }]" machine="{q35 accel=kvm,kernel_irqchip=split}" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qemuAmd64 time="2021-07-30T07:53:28.092119026Z" level=info msg="adding volume" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qemu volume-type=virtio-9p time="2021-07-30T07:53:28.093015598Z" level=info msg="Endpoints found after scan" endpoints="[]" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=network time="2021-07-30T07:53:28.093157978Z" level=info msg="Starting VM" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=sandbox time="2021-07-30T07:53:28.093562065Z" level=info msg="Adding extra file [0xc000010058]" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qmp time="2021-07-30T07:53:28.093652406Z" level=info msg="launching /usr/local/bin/qemu-system-x86_64 with: [-name sandbox-bash -uuid b1ff0af6-de06-4025-ab63-9aad959900d5 -machine q35,accel=kvm,kernel_irqchip=split,confidential-guest-support=sev -cpu host,pmu=off -qmp unix:/run/vc/vm/bash/qmp.sock,server=on,wait=off -m 2048M,slots=10,maxmem=129746M -device pci-bridge,bus=pcie.0,id=pci-bridge-0,chassis_nr=1,shpc=on,addr=2 -device virtio-serial-pci,disable-modern=false,id=serial0 -device virtconsole,chardev=charconsole0,id=console0 -chardev socket,id=charconsole0,path=/run/vc/vm/bash/console.sock,server=on,wait=off -device virtio-scsi-pci,id=scsi0,disable-modern=false -object sev-guest,id=sev,cbitpos=51,reduced-phys-bits=5 -drive if=pflash,format=raw,readonly=on,file=/usr/local/share/qemu/OVMF_CODE.fd.kata -object rng-random,id=rng0,filename=/dev/urandom -device virtio-rng-pci,rng=rng0 -device vhost-vsock-pci,disable-modern=false,vhostfd=3,id=vsock-1025935578,guest-cid=1025935578 -device virtio-9p-pci,disable-modern=false,fsdev=extra-9p-kataShared,mount_tag=kataShared -fsdev local,id=extra-9p-kataShared,path=/run/kata-containers/shared/sandboxes/bash/shared,security_model=none,multidevs=remap -rtc base=utc,driftfix=slew,clock=host -global kvm-pit.lost_tick_policy=discard -vga none -no-user-config -nodefaults -nographic --no-reboot -daemonize -object memory-backend-ram,id=dimm1,size=2048M -numa node,memdev=dimm1 -kernel /usr/share/kata-containers/vmlinux-sev-es-5.9-v1.container -initrd /usr/share/kata-containers/kata-containers-initrd.img -append tsc=reliable no_timer_check rcupdate.rcu_expedited=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 noreplace-smp reboot=k console=hvc0 console=hvc1 cryptomgr.notests net.ifnames=0 pci=lastbus=0 debug panic=1 nr_cpus=240 scsi_mod.scan=none root=/dev/vda1 rootflags=data=ordered,errors=remount-ro agent.log=debug initcall_debug -pidfile /run/vc/vm/bash/pid -D /run/vc/vm/bash/qemu.log -smp 1,cores=1,threads=1,sockets=240,maxcpus=240]"<o:p></o:p></span></p></blockquote>
<p style="margin: 0px;" ><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" ><p style="margin: 0px;" ><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qmp time="2021-07-30T07:53:29.231939187Z" level=info msg="QMP details" name=containerd-shim-v2 pid=1590317 qmp-capabilities=oob qmp-major-version=6 qmp-micro-version=91 qmp-minor-version=0 sandbox=bash source=virtcontainers subsystem=qemu time="2021-07-30T07:53:29.232726561Z" level=info msg="scanner return error: read unix @->/run/vc/vm/bash/qmp.sock: use of closed network connection" name=containerd-shim-v2 pid=1590317 sandbox=bash<o:p></o:p></span></p></blockquote>
<p style="margin: 0px;" ><br><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >It looks like your qemu stopped right after being started (T07:53:29.231939187Z vs T07:53:28.093652406Z). I think that the qemu logs would help us.</span><o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" ><p style="margin: 0px;" ><span style="font-size:13.5pt;font-family:"Helvetica",sans-serif" >source=virtcontainers subsystem=qmp time="2021-07-30T07:53:29.232914117Z" level=info msg="VM started" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=sandbox time="2021-07-30T07:53:29.233044113Z" level=info msg="New client" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=kata_agent url="<a href="vsock://1025935578:1024" target="_blank">vsock://1025935578:1024</a>"<br>time="2021-07-30T07:53:59.475362081Z" level=info msg="Stopping Sandbox" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qemu time="2021-07-30T07:53:59.477063059Z" level=warning msg="The virtiofsd had stopped" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qemu time="2021-07-30T07:53:59.477246988Z" level=info msg="cleanup vm path" dir=/run/vc/vm/bash link=/run/vc/vm/bash name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qemu time="2021-07-30T07:53:59.477447608Z" level=info msg="Network namespace \"/var/run/netns/cnitest-6747183b-4b3c-3ec6-81c4-d517d32b120b\" deleted" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=network time="2021-07-30T07:53:59.478504534Z" level=warning msg="sandbox cgroups path is empty" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=sandbox time="2021-07-30T07:53:59.478574457Z" level=info msg="cleanup agent" name=containerd-shim-v2 path=/run/kata-containers/shared/sandboxes/bash/shared pid=1590317 sandbox=bash source=virtcontainers subsystem=kata_agent time="2021-07-30T07:53:59.479262623Z" level=warning msg="failed to cleanup netns" error="failed to get netns /var/run/netns/cnitest-6747183b-4b3c-3ec6-81c4-d517d32b120b: failed to Statfs \"/var/run/netns/cnitest-6747183b-4b3c-3ec6-81c4-d517d32b120b\": no such file or directory" name=containerd-shim-v2 path=/var/run/netns/cnitest-6747183b-4b3c-3ec6-81c4-d517d32b120b pid=1590317 sandbox=bash source=katautils time="2021-07-30T07:53:59.479464936Z" level=info msg="scanner return error: <nil>" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qmp time="2021-07-30T07:53:59.479683231Z" level=info msg="QMP event channel closed" name=containerd-shim-v2 pid=1590317 sandbox=bash source=virtcontainers subsystem=qemu<br>DEBU[2021-07-30T07:53:59.480447321Z] failed to delete task error="rpc error: code = NotFound desc = container does not exist bash: not found" id=bash<br>INFO[2021-07-30T07:53:59.484752059Z] shim disconnected id=bash<br>WARN[2021-07-30T07:53:59.484860645Z] cleaning up after shim disconnected id=bash namespace=default<br>INFO[2021-07-30T07:53:59.484882296Z] cleaning up dead shim<br>ERRO[2021-07-30T07:53:59.545695272Z] failed to delete cmd="/usr/local/bin/containerd-shim-kata-v2 -namespace default -address /run/containerd/containerd.sock -publish-binary /usr/local/bin/containerd -id bash -bundle /run/containerd/io.containerd.runtime.v2.task/default/bash delete" error="exit status 1"<br>WARN[2021-07-30T07:53:59.545862980Z] failed to clean up after shim disconnected error="time=\"2021-07-30T07:53:59Z\" level=warning msg=\"failed to cleanup container\" container=bash error=\"open /run/vc/sbs/bash: no such file or directory\" name=containerd-shim-v2 pid=1590410 sandbox=bash source=containerd-kata-shim-v2\nio.containerd.kata.v2: open /run/vc/sbs/bash: no such file or directory\n: exit status 1" id=bash namespace=default<br>ERRO[2021-07-30T07:53:59.545951698Z] copy shim log error="read /proc/self/fd/15: file already closed"<br>DEBU[2021-07-30T07:53:59.557980504Z] remove snapshot key=bash<br>DEBU[2021-07-30T07:53:59.560442896Z] event published ns=default topic=/snapshot/remove type=containerd.events.SnapshotRemove<br>DEBU[2021-07-30T07:53:59.563483766Z] event published ns=default topic=/containers/delete type=containerd.events.ContainerDelete<br>DEBU[2021-07-30T07:53:59.610327214Z] schedule snapshotter cleanup snapshotter=overlayfs<br>DEBU[2021-07-30T07:53:59.612570831Z] removed snapshot key=default/23/bash snapshotter=overlayfs<br>DEBU[2021-07-30T07:53:59.613058306Z] snapshot garbage collected d=2.633938ms snapshotter=overlayfs<br>DEBU[2021-07-30T07:53:59.613107950Z] garbage collected d=2.265409ms<br><br><br>Any suggestions please.<br><br><br>--Thanking You<br>--Sandeep<br><br>_______________________________________________<br>kata-dev mailing list<br><a href="mailto:kata-dev@lists.katacontainers.io" target="_blank">kata-dev@lists.katacontainers.io</a><br><a href="https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.katacontainers.io%2Fcgi-bin%2Fmailman%2Flistinfo%2Fkata-dev&data=04%7C01%7Csandeep.gupta%40amd.com%7C1a9525f579c2472d8dc508d95592fbca%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637634912055430607%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CEs%2B6Bu5m8orJFFfs%2Bm99s8tAOPdUhHF8fwZY12ku10%3D&reserved=0" target="_blank">https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.katacontainers.io%2Fcgi-bin%2Fmailman%2Flistinfo%2Fkata-dev&data=04%7C01%7Csandeep.gupta%40amd.com%7Cb5c1b6fad29a45a8c2bd08d953378884%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637632320258597093%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=iX91RIGQ3MdA9A%2BQPc60RByH06oEAyLyEkqPO%2F%2FyLgM%3D&reserved=0</a><o:p></o:p></span></p></blockquote></div></blockquote></div>
<p style="margin: 0px;" ><o:p> </o:p></p></div></div></blockquote>
<div dir="ltr" > </div></div><BR>
<BR>