mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 07:48:55 +00:00
kata-deploy: Add qemu-virtiofs to containerd configuration
We need an entry of `kata-qemu-virtiofs` on the containerd configuration file. In addition we need to add `kata-qemu-virtiofs` to the shim list, so that the wrapper is created for shimv2. Fixes: #760. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
This commit is contained in:
parent
5d49a78131
commit
8234f9a832
@ -14,9 +14,10 @@ containerd_conf_file="/etc/containerd/config.toml"
|
||||
containerd_conf_file_backup="${containerd_conf_file}.bak"
|
||||
|
||||
shims=(
|
||||
"qemu"
|
||||
"nemu"
|
||||
"fc"
|
||||
"nemu"
|
||||
"qemu"
|
||||
"qemu-virtiofs"
|
||||
)
|
||||
|
||||
# If we fail for any reason a message will be displayed
|
||||
@ -93,7 +94,7 @@ EOT
|
||||
else
|
||||
cat <<EOT | tee -a "$crio_conf_file"
|
||||
|
||||
# Path to the Kata Containers runtime binary that uses the QEMU hypervisor.
|
||||
# Path to the Kata Containers runtime binary that uses the QEMU hypervisor with virtiofs support.
|
||||
[$kata_qemu_conf]
|
||||
runtime_path = "${kata_qemu_virtiofs_path}"
|
||||
EOT
|
||||
@ -160,6 +161,10 @@ function configure_containerd() {
|
||||
runtime_type = "io.containerd.kata-qemu.v2"
|
||||
[plugins.cri.containerd.runtimes.kata-qemu.options]
|
||||
ConfigPath = "/opt/kata/share/defaults/kata-containers/configuration-qemu.toml"
|
||||
[plugins.cri.containerd.runtimes.kata-qemu-virtiofs]
|
||||
runtime_type = "io.containerd.kata-qemu-virtiofs.v2"
|
||||
[plugins.cri.containerd.runtimes.kata-qemu-virtiofs.options]
|
||||
ConfigPath = "/opt/kata/share/defaults/kata-containers/configuration-qemu-virtiofs.toml"
|
||||
[plugins.cri.containerd.runtimes.kata-nemu]
|
||||
runtime_type = "io.containerd.kata-nemu.v2"
|
||||
[plugins.cri.containerd.runtimes.kata-nemu.options]
|
||||
|
Loading…
Reference in New Issue
Block a user