• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright 2021 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5qemu_args=(
6    -M virt -machine virtualization=true -machine virt,gic-version=3
7    -cpu cortex-a57 -smp 8 -m 4G
8    -serial stdio -display none
9    -device virtio-net-pci,netdev=net0
10    -netdev user,id=net0,hostfwd=tcp::8022-:22
11    -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd
12    -hda rootfs.qcow2
13)
14mkdir -p /workspace/scratch/logs
15qemu-system-aarch64 ${qemu_args[@]} $@ | tee /workspace/logs/vm.log
16