crosvm/ci/crosvm_test_vm/runtime/start_vm.amd64
Dennis Kempin 3b3545b2c3 Upgrade ci containers to bullseye and clean up
We no longer need to build dependencies from source and provide them
via pkg-config, this simplifies much of our builder container setup.

As debian bullseye got promoted to stable, we can now also simplify
further by just using bullseye stable instead of mixing stable and
testing packages.

BUG=b:181359683
TEST=./test_all

Change-Id: I2ce61992d5cfe6eb5dc3f0ec61920dcc5455ca40
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3141772
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2021-09-15 17:06:46 +00:00

22 lines
772 B
Bash
Executable file

#!/bin/bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
qemu_args=(
-smp 8 -m 4G
-serial stdio -display none
-device virtio-net-pci,netdev=net0
-netdev user,id=net0,hostfwd=tcp::8022-:22
-hda rootfs.qcow2
)
# The build environment for first_boot.expect does not support KVM.
if [ -e /dev/kvm ]; then
# We cannot use host CPU detection due to b/181359683. Kokoro runs at least
# on Broadwell generation CPUs, so let's use that and turn on nested
# virtualization.
qemu_args+=(-enable-kvm -cpu Broadwell,vmx=on)
fi
mkdir -p /workspace/scratch/logs
qemu-system-x86_64 ${qemu_args[@]} $@ | tee /workspace/logs/vm.log