1#cloud-config 2users: 3 - name: crosvm 4 sudo: ALL=(ALL) NOPASSWD:ALL 5 lock_passwd: False 6 shell: /bin/bash 7 # Hashed password is 'crosvm' 8 passwd: $6$rounds=4096$os6Q9Ok4Y9a8hKvG$EwQ1bbS0qd4IJyRP.bnRbyjPbSS8BwxEJh18PfhsyD0w7a4GhTwakrmYZ6KuBoyP.cSjYYSW9wYwko4oCPoJr. 9 # Pubkey for `../vm_key` 10 ssh_authorized_keys: 11 - ssh-rsa 12 AAAAB3NzaC1yc2EAAAADAQABAAABgQCYan8oXtUm6WTIClGMsfEf3hmJe+T8p08t9O8StuuDHyAtl1lC+8hOcuXTNvbc52/HNdZ5EO4ZpP3n+N6XftfXFWQanI8OrIHVpsMATMnofHE9RBHWcR/gH0V3xKnXcTvo3S0T3ennfCYxjtL7l7EvHDMdacX8NFOaARH92qJd/YdFp73mqykmc81OCZ4ToQ5s+20T7xvRzedksfSj/wIx3z8BJK9iovkQhNGFd1o557Vq1g3Bxk1PbcIUAvFPl0SwwlFfHBi2M9kZgCVa8UfokBzu77zvxWFud+MXVrfralwKV88k9Cy9FL5QGbtCiZ7RDP5pf69xapKBK+z2L+zuVlSkvaB1CcXuqqVDjD84LXEA+io0peXQcsqbAfbLo0666P7JsweCyQ07qc4AM8gv52SzFuQTIuHLciYxbPgkZTieKgmQLJ1EgfJelOG/+60XC24LbzPIAQxcO83erC/SQ3mTUizu6BueJt7LD1V6vXHcjLfE19FecIJ8U0XDaDU= 13 crosvm@localhost 14 groups: kvm, disk, tty 15 16hostname: testvm 17 18# Store working data on tmpfs to reduce unnecessary disk IO 19mounts: 20 - [swap, null] 21 - [tmpfs, /tmp, tmpfs] 22 23# Runtime dependencies of crosvm binaries. 24# Note: Keep in sync with -dev packages of crosvm_(aarch64_)builder 25packages: 26 - libcap2 27 - libdbus-1-3 28 - libdrm2 29 - libepoxy0 30 - libssl1.1 31 - libwayland-client0 32 - libx11-6 33 - libxext6 34 - rsync 35 36runcmd: 37 # Prevent those annoying "host not found errors". 38 - echo 127.0.0.1 testvm >> /etc/hosts 39 40 # Make it easier to identify which VM we are in. 41 - echo "export PS1=\"testvm-$(arch):\\\\w# \"" >> /etc/bash.bashrc 42 43 # Enable core dumps for debugging crashes 44 - echo "* soft core unlimited" > /etc/security/limits.conf 45 46 # Trim some fat 47 - [apt-get, remove, --yes, vim-runtime, iso-codes, perl, grub-common] 48 - [apt-get, autoremove, --yes] 49 - [apt-get, clean, --yes] 50 - [rm, -rf, /var/lib/apt/lists] 51 52 # Fill empty space with zeros, so the image can be sparsified. 53 - [dd, if=/dev/zero, of=/mytempfile] 54 - [rm, /mytempfile] 55