Skip to content

Commit

Permalink
ci: Add virtio-fs support
Browse files Browse the repository at this point in the history
Add configuration option to use virtio-fs.
We will currently use nemu for testing the
virtio-fs support.

Depends-on: github.com/kata-containers/runtime#1016
Depends-on: github.com/kata-containers/packaging#484

Fixes: kata-containers#1536.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
  • Loading branch information
chavafg committed May 6, 2019
1 parent 821649a commit 5d6a1ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/install_nemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ install_nemu() {
;;
esac

local virtiofs_bin="virtiofsd-${arch}"

curl -LO "${nemu_repo}/releases/download/${nemu_version}/${nemu_bin}"
curl -LO "${nemu_repo}/releases/download/${nemu_version}/${virtiofs_bin}"

sudo install -o root -g root -m 0755 "${nemu_bin}" "/usr/local/bin"
rm -rf "${nemu_bin}"
sudo install -o root -g root -m 0755 "${virtiofs_bin}" "/usr/local/bin"
rm -rf "${nemu_bin}" "${virtiofs_bin}"
}

install_firmware() {
Expand Down
9 changes: 9 additions & 0 deletions .ci/install_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,12 @@ if [ "$KATA_EXPERIMENTAL_FEATURES" = true ]; then
feature="newstore"
sudo sed -i -e "s|^experimental.*$|experimental=[ \"$feature\" ]|" "${runtime_config_path}"
fi

# Enable virtiofs if VIRTIO_FS is set to true
# currently we use nemu for virtiofs testing
if [ "$VIRTIO_FS" = true ] && [ "$KATA_HYPERVISOR" = "nemu" ]; then
echo "Configure virtio-fs on kata-runtime config file"
sudo crudini --set "$runtime_config_path" hypervisor.qemu virtio_fs_daemon "\"/usr/local/bin/virtiofsd-${arch}\""
sudo crudini --set "$runtime_config_path" hypervisor.qemu shared_fs "\"virtio-fs\""
sudo crudini --set "$runtime_config_path" hypervisor.qemu enable_hugepages "true"
fi

0 comments on commit 5d6a1ba

Please sign in to comment.