crosvm/ci/crosvm_test_vm/build/cloud_init_data.yaml
Dennis Kempin 3682372764 ci: Upgrade test-vm to debian bullseye
This change updates the test VM to debian bullseye, primarily to enable
io_uring features that are not available in the 4.16 kernel shipping
with debian buster.

We are not updating the builder containers to bullseye, as newer
versions of qemu fail to start on kokoro. See b/181359683

Since it was needed for debugging this CL, it includes a feature to
debug kokoro builders via SSH. It can be enabled by setting
DEBUG_SSH_KEY from the fusion2 UI.

BUG=b:178228512
TEST=./test_all passes

Change-Id: I22f1678577183a0aace80245a87c31907221cc09
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2721062
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2021-03-10 03:37:00 +00:00

42 lines
1.6 KiB
YAML

#cloud-config
users:
- name: crosvm
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: False
# Hashed password is 'crosvm'
passwd: $6$rounds=4096$os6Q9Ok4Y9a8hKvG$EwQ1bbS0qd4IJyRP.bnRbyjPbSS8BwxEJh18PfhsyD0w7a4GhTwakrmYZ6KuBoyP.cSjYYSW9wYwko4oCPoJr.
# Pubkey for `../vm_key`
ssh_authorized_keys:
- ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABgQCYan8oXtUm6WTIClGMsfEf3hmJe+T8p08t9O8StuuDHyAtl1lC+8hOcuXTNvbc52/HNdZ5EO4ZpP3n+N6XftfXFWQanI8OrIHVpsMATMnofHE9RBHWcR/gH0V3xKnXcTvo3S0T3ennfCYxjtL7l7EvHDMdacX8NFOaARH92qJd/YdFp73mqykmc81OCZ4ToQ5s+20T7xvRzedksfSj/wIx3z8BJK9iovkQhNGFd1o557Vq1g3Bxk1PbcIUAvFPl0SwwlFfHBi2M9kZgCVa8UfokBzu77zvxWFud+MXVrfralwKV88k9Cy9FL5QGbtCiZ7RDP5pf69xapKBK+z2L+zuVlSkvaB1CcXuqqVDjD84LXEA+io0peXQcsqbAfbLo0666P7JsweCyQ07qc4AM8gv52SzFuQTIuHLciYxbPgkZTieKgmQLJ1EgfJelOG/+60XC24LbzPIAQxcO83erC/SQ3mTUizu6BueJt7LD1V6vXHcjLfE19FecIJ8U0XDaDU=
crosvm@localhost
groups: kvm, disk, tty
# Store working data on tmpfs to reduce unnecessary disk IO
mounts:
- [swap, null]
- [tmpfs, /tmp, tmpfs]
# Runtime dependencies of crosvm binaries.
# Note: Keep in sync with -dev packages of crosvm_(aarch64_)builder
packages:
- libcap2
- libdbus-1-3
- libdrm2
- libepoxy0
- libssl1.1
- libwayland-client0
- libx11-6
- libxext6
- rsync
runcmd:
# Trim some fat
- [apt-get, remove, --yes, vim-runtime, iso-codes, perl, grub-common]
- [apt-get, autoremove, --yes]
- [apt-get, clean, --yes]
- [rm, -rf, /var/lib/apt/lists]
# Fill empty space with zeros, so the image can be sparsified.
- [dd, if=/dev/zero, of=/mytempfile]
- [rm, /mytempfile]