From 1a34f78ccd2d1c39163d340a96fb793cd0d35510 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 5 Mar 2020 11:16:59 +0100 Subject: SPEC-3210: Set the interface for the test device By default LAVA set the test device on IDE. Stretch version of qemu doesnt care about this setting and was always using virtio. But buster qemu care now about this and fail with: machine type does not support if=ide,bus=0,unit=0 This patch adds the necessary to restore the use of virtio. Change-Id: If34194d82b6104b9b5be7118a5194bd3b61fc090 Signed-off-by: Corentin LABBE --- templates/boot/generic-qemu-tmpfs.jinja2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/boot') diff --git a/templates/boot/generic-qemu-tmpfs.jinja2 b/templates/boot/generic-qemu-tmpfs.jinja2 index f8cbd7d..e39802d 100644 --- a/templates/boot/generic-qemu-tmpfs.jinja2 +++ b/templates/boot/generic-qemu-tmpfs.jinja2 @@ -20,6 +20,9 @@ context: {%- endif %} {%- if qemu_memory is defined %} memory: {{ qemu_memory }} +{%- endif %} +{%- if guestfs_interface is defined %} + guestfs_interface: {{ guestfs_interface }} {%- endif %} extra_options: ["{{ qemu_args }}"] {% endblock %} -- cgit 1.2.3-korg