From a86edd3032664a2e2d9c6436696ea6d4d1e55aba Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 19 Jan 2023 17:33:06 +0000 Subject: [PATCH] tests: Add tpm2-tools to custom jammy image Signed-off-by: Rob Bradford --- docs/custom-image.md | 6 +++--- scripts/run_integration_tests_sgx.sh | 4 ++-- scripts/run_integration_tests_x86_64.sh | 4 ++-- scripts/sha1sums-x86_64 | 5 +++-- tests/integration.rs | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/custom-image.md b/docs/custom-image.md index 132b25d62..f84eb7884 100644 --- a/docs/custom-image.md +++ b/docs/custom-image.md @@ -88,7 +88,7 @@ Ubuntu distributions. ```bash apt update -apt install fio iperf iperf3 socat stress cpuid +apt install fio iperf iperf3 socat stress cpuid tpm2-tools ``` ### Remove counterproductive packages @@ -170,8 +170,8 @@ We usually start from one of the custom cloud image we have previously created but we can use a stock cloud image as well. ```bash -wget https://cloud-hypervisor.azureedge.net/jammy-server-cloudimg-amd64-custom-20221118-1.raw -mv jammy-server-cloudimg-amd64-custom-20221118-1.raw jammy-server-cloudimg-amd64-nvidia.raw +wget https://cloud-hypervisor.azureedge.net/jammy-server-cloudimg-amd64-custom-20230119-0.raw +mv jammy-server-cloudimg-amd64-custom-20230119-0.raw jammy-server-cloudimg-amd64-nvidia.raw ``` ### Extend the image size diff --git a/scripts/run_integration_tests_sgx.sh b/scripts/run_integration_tests_sgx.sh index cdf724120..5f71cdee8 100755 --- a/scripts/run_integration_tests_sgx.sh +++ b/scripts/run_integration_tests_sgx.sh @@ -21,7 +21,7 @@ rm -f $FW time wget --quiet $FW_URL || exit 1 popd -JAMMY_OS_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20221118-1.qcow2" +JAMMY_OS_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20230119-0.qcow2" JAMMY_OS_IMAGE_URL="https://cloud-hypervisor.azureedge.net/$JAMMY_OS_IMAGE_NAME" JAMMY_OS_IMAGE="$WORKLOADS_DIR/$JAMMY_OS_IMAGE_NAME" if [ ! -f "$JAMMY_OS_IMAGE" ]; then @@ -30,7 +30,7 @@ if [ ! -f "$JAMMY_OS_IMAGE" ]; then popd fi -JAMMY_OS_RAW_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20221118-1.raw" +JAMMY_OS_RAW_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20230119-0.raw" JAMMY_OS_RAW_IMAGE="$WORKLOADS_DIR/$JAMMY_OS_RAW_IMAGE_NAME" if [ ! -f "$JAMMY_OS_RAW_IMAGE" ]; then pushd $WORKLOADS_DIR diff --git a/scripts/run_integration_tests_x86_64.sh b/scripts/run_integration_tests_x86_64.sh index 1f71096bd..48e2b1c61 100755 --- a/scripts/run_integration_tests_x86_64.sh +++ b/scripts/run_integration_tests_x86_64.sh @@ -53,7 +53,7 @@ if [ ! -f "$FOCAL_OS_RAW_IMAGE" ]; then popd fi -JAMMY_OS_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20221118-1.qcow2" +JAMMY_OS_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20230119-0.qcow2" JAMMY_OS_IMAGE_URL="https://cloud-hypervisor.azureedge.net/$JAMMY_OS_IMAGE_NAME" JAMMY_OS_IMAGE="$WORKLOADS_DIR/$JAMMY_OS_IMAGE_NAME" if [ ! -f "$JAMMY_OS_IMAGE" ]; then @@ -62,7 +62,7 @@ if [ ! -f "$JAMMY_OS_IMAGE" ]; then popd fi -JAMMY_OS_RAW_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20221118-1.raw" +JAMMY_OS_RAW_IMAGE_NAME="jammy-server-cloudimg-amd64-custom-20230119-0.raw" JAMMY_OS_RAW_IMAGE="$WORKLOADS_DIR/$JAMMY_OS_RAW_IMAGE_NAME" if [ ! -f "$JAMMY_OS_RAW_IMAGE" ]; then pushd $WORKLOADS_DIR diff --git a/scripts/sha1sums-x86_64 b/scripts/sha1sums-x86_64 index ff5c7ff98..95efd8561 100644 --- a/scripts/sha1sums-x86_64 +++ b/scripts/sha1sums-x86_64 @@ -1,5 +1,6 @@ d4a44acc6014d5f83dea1c625c43d677a95fa75f alpine-minirootfs-x86_64.tar.gz f1eccdc5e1b515dbad294426ab081b47ebfb97c0 focal-server-cloudimg-amd64-custom-20210609-0.qcow2 7f5a8358243a96adf61f5c20139b29f308f2c0e3 focal-server-cloudimg-amd64-custom-20210609-0.raw -b12e52203bc78400b2f099420b411b49ef4be7b8 jammy-server-cloudimg-amd64-custom-20221118-1.qcow2 -d843d5b249e8db3c0158eaf56ade895ed10342b5 jammy-server-cloudimg-amd64-custom-20221118-1.raw +864c074e2f1bd753667a35188b510d83a1d62793 jammy-server-cloudimg-amd64-custom-20230119-0.qcow2 +24358ee053f94e7f710ea4ce9e7a63eff2a1eb25 jammy-server-cloudimg-amd64-custom-20230119-0.raw + diff --git a/tests/integration.rs b/tests/integration.rs index 6d4594c91..fb7494574 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -37,7 +37,7 @@ mod x86_64 { pub const FOCAL_IMAGE_NAME_QCOW2: &str = "focal-server-cloudimg-amd64-custom-20210609-0.qcow2"; pub const FOCAL_IMAGE_NAME_VHD: &str = "focal-server-cloudimg-amd64-custom-20210609-0.vhd"; pub const FOCAL_IMAGE_NAME_VHDX: &str = "focal-server-cloudimg-amd64-custom-20210609-0.vhdx"; - pub const JAMMY_IMAGE_NAME: &str = "jammy-server-cloudimg-amd64-custom-20221118-1.raw"; + pub const JAMMY_IMAGE_NAME: &str = "jammy-server-cloudimg-amd64-custom-20230119-0.raw"; pub const WINDOWS_IMAGE_NAME: &str = "windows-server-2019.raw"; pub const OVMF_NAME: &str = "CLOUDHV.fd"; pub const GREP_SERIAL_IRQ_CMD: &str = "grep -c 'IO-APIC.*ttyS0' /proc/interrupts || true";