diff --git a/.ci/install_kata_kernel.sh b/.ci/install_kata_kernel.sh index ebeb5db85..1e5240e04 100755 --- a/.ci/install_kata_kernel.sh +++ b/.ci/install_kata_kernel.sh @@ -77,6 +77,11 @@ main() { experimental) build_and_install_kernel "kernel-experimental" ;; + arm-experimental) + build_and_install_kernel "kernel-arm-experimental" + rm -f /opt/kata/share/kata-containers/vmlinux.container + ln -s /opt/kata/share/kata-containers/vmlinux-arch-experimental.container /opt/kata/share/kata-containers/vmlinux.container + ;; vanilla) build_and_install_kernel "kernel" ;; diff --git a/.ci/install_qemu.sh b/.ci/install_qemu.sh index d2df296fd..76eb8d7a6 100755 --- a/.ci/install_qemu.sh +++ b/.ci/install_qemu.sh @@ -90,13 +90,16 @@ main() { vanilla) qemu_type="qemu" ;; + arm-experimental) + qemu_type="qemu-arm-experimental" + ;; *) die_unsupported_qemu_type "$qemu_type" ;; esac case ${QEMU_ARCH} in - "aarch64"|"ppc64le") + "ppc64le") # We're still no there for using the kata-deploy # scripts with ppc64le and aarch64. CURRENT_QEMU_VERSION=$(get_version "assets.hypervisor.qemu.version") @@ -110,8 +113,10 @@ main() { build_and_install_qemu ;; - "x86_64"|"s390x") + "aarch64"|"x86_64"|"s390x") build_static_artifact_and_install "${qemu_type}" + rm -f /opt/kata/bin/qemu-system-aarch64 + ln -s /opt/kata/bin/qemu-system-aarch64-arm-experimental /opt/kata/bin/qemu-system-aarch64 ;; *) die "Architecture ${QEMU_ARCH} not supported" diff --git a/.ci/lib.sh b/.ci/lib.sh index 7156a3a26..c783bc0c2 100755 --- a/.ci/lib.sh +++ b/.ci/lib.sh @@ -173,8 +173,9 @@ function build_static_artifact_and_install() { clone_katacontainers_repo - pushd "$katacontainers_repo_dir" >/dev/null + pushd "$katacontainers_repo_dir/tools/packaging/kata-deploy/local-build" >/dev/null sudo -E PATH=$PATH make "$make_target" + pwd sudo tar -xvJpf "build/${tarball}" -C "${destdir}" sudo rm -rf "build/" popd >/dev/null