device_type: qemu
job_name: qemu aarch64

timeouts:
  job:
    minutes: 15
  action:
    minutes: 5
priority: medium
visibility: public
context:
  arch: aarch64
  netdevice: tap
  machine: virt
  cpu: cortex-a57
  extra_options:
  - -smp
  - 1
  - -netdev tap,id=net0,ifname=tap1,script=no,downscript=no
  - -device virtio-net-device,netdev=net0
  - -device virtio-blk-device,drive=disk0 -no-reboot -nographic -m 512
  - --append "console=ttyAMA0,38400 root=/dev/vda rw mem=512M highres=off ip=192.168.7.4::192.168.7.3:255.255.255.0 rootfstype=ext4 console=ttyS0"

     

actions:
- deploy:
    timeout:
      minutes: 5
    to: tmpfs
    images:
      kernel:
        image_arg: -kernel {kernel}
        url: http://10.10.10.18/qemuarm64/Image-qemuarm64.bin
      rootfs:  
        image_arg: format=raw,file={rootfs}
        url: http://10.10.10.18/qemuarm64/core-image-minimal-qemuarm64.ext4
- boot:
    timeout:
      minutes: 2
    method: qemu
    media: tmpfs
    prompts: ["root@qemuarm64:"]
    auto_login:
      login_prompt: "login:"
      username: root

    