Friday, 2022-03-04

kata-irc-bot<liubin0329> The guest hook is not the same as the OCI hook. When starting sandbox, i.e., starting a new VM, the agent will scan guest hooks under the path through the naming pattern. This is automatically all you need is to put the hooks under the hook path, and you don't need to specify them in the OCI spec of a container.05:53
kata-irc-bot<liubin0329> Through https://github.com/kata-containers/kata-containers/blob/72bf5496fd516f9b5f532cd2e0e9f2e987937bc8/src/agent/rustjail/src/container.rs#L1476-L1583 , you can check if there are any logs like "exit status is".05:56
kata-irc-bot<zkaiser> @liubin0329 Thanks so only host hooks will be in the OCI spec. The guest hook would just be executed in the lifecycle of the container by the agent.07:20
kata-irc-bot<liubin0329> Yes, but now a known issue is raised, and keep in mind when using hooks before fixing it. https://github.com/kata-containers/kata-containers/issues/372907:25
kata-irc-bot<zkaiser> @liubin0329 Understood, I see that the hook is executed. ```"hook /usr/share/oci/hooks/prestart/nvidia-container-toolkit exit status is 0\"``` Need to check why it does not trigger any action.09:57
kata-irc-bot<zkaiser> Any other setting i can try? Verified with kata runtime exec into the guest that indeed the VM is not using large bars11:00
kata-irc-bot<zkaiser> ```[    1.573842] pci 0000:02:00.0: BAR 1: no space for [mem size 0x800000000 64bit pref] [    1.573843] pci 0000:02:00.0: BAR 1: failed to assign [mem size 0x800000000 64bit pref] [    1.573845] pci 0000:02:00.0: BAR 3: no space for [mem size 0x02000000 64bit pref] [    1.573845] pci 0000:02:00.0: BAR 3: failed to assign [mem size 0x02000000 64bit pref] [    1.573846] pci 0000:02:00.0: BAR 0: no space for [mem size 0x01000000] [   12:50
kata-irc-bot1.573847] pci 0000:02:00.0: BAR 0: failed to assign [mem size 0x01000000]``` 12:50
kata-irc-bot<zkaiser> https://github.com/kata-containers/kata-containers/pull/114712:51
kata-irc-bot<zkaiser> https://github.com/kata-containers/kata-containers/issues/83512:51
kata-irc-bot<zkaiser> ```root@982a634cc5fb:/# lspci -s 02:00.0 -vv | grep Region Region 1: Memory at <unassigned> (64-bit, prefetchable) [disabled] Region 3: Memory at <unassigned> (64-bit, prefetchable) [disabled]``` 12:52
kata-irc-bot<zkaiser> ```[    0.106972] pci 0000:00:02.0: PCI bridge to [bus 01] [    0.106982] pci 0000:00:02.0:   bridge window [io  0xd000-0xdfff] [    0.106991] pci 0000:00:02.0:   bridge window [mem 0xfe200000-0xfe3fffff] [    0.107008] pci 0000:00:02.0:   bridge window [mem 0xfe800000-0xfe9fffff 64bit pref] [    0.107360] pci 0000:00:05.0: PCI bridge to [bus 02] [    0.107369] pci 0000:00:05.0:   bridge window [io  0xc000-0xcfff] [    0.107378] pci14:28
kata-irc-bot0000:00:05.0:   bridge window [mem 0xfe000000-0xfe1fffff] [    0.107396] pci 0000:00:05.0:   bridge window [mem 0xfe600000-0xfe7fffff 64bit pref]``` 14:28
kata-irc-bot<zkaiser> @dgibson Any update on your work on this?14:51

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!