diff --git a/src/aleph/vm/hypervisors/qemu/qemuvm.py b/src/aleph/vm/hypervisors/qemu/qemuvm.py index 88047b5d..7246c2b9 100644 --- a/src/aleph/vm/hypervisors/qemu/qemuvm.py +++ b/src/aleph/vm/hypervisors/qemu/qemuvm.py @@ -97,7 +97,7 @@ async def start( for volume in self.host_volumes: args += [ "-drive", - f"file={volume.path_on_host},format=raw,readonly={'on' if volume.read_only else 'off'}", + f"file={volume.path_on_host},format=raw,readonly={'on' if volume.read_only else 'off'},media=disk,if=virtio", ] if self.interface_name: # script=no, downscript=no tell qemu not to try to set up the network itself diff --git a/src/aleph/vm/hypervisors/qemu_confidential/qemuvm.py b/src/aleph/vm/hypervisors/qemu_confidential/qemuvm.py index 141c1f6e..ef67f46c 100644 --- a/src/aleph/vm/hypervisors/qemu_confidential/qemuvm.py +++ b/src/aleph/vm/hypervisors/qemu_confidential/qemuvm.py @@ -109,7 +109,7 @@ async def start( for volume in self.host_volumes: args += [ "-drive", - f"file={volume.path_on_host},format=raw,readonly={'on' if volume.read_only else 'off'}", + f"file={volume.path_on_host},format=raw,readonly={'on' if volume.read_only else 'off'},media=disk,if=virtio", ] if self.interface_name: # script=no, downscript=no tell qemu not to try to set up the network itself