snapcore / spread

Spread - Convenient full-system test (task) distribution
GNU General Public License v3.0
99 stars 58 forks source link

qemu: add options to enable virtio device backends #167

Closed IsaacJT closed 1 year ago

IsaacJT commented 1 year ago

In some cases, the virtio backend is needed for the disk. This adds the boolean option "virtio-disk", which specifies if the disk should be attached via the virtio backend when true, or using the default backend when false.

Similarly, in some cases the virtio backend is needed for the network. This also adds the option "virtio-net", which specifies if the network interface should be attached via the virtio backend when true, or using the default e1000 backend when false.

This is useful for testing images with stripped-down kernels which do not provide drivers for the default network and storage backends, and only support virtio.