switch to virtio-audio

This commit is contained in:
Jörg Thalheim 2023-12-21 15:39:27 +01:00
parent 30e7e06f59
commit de38ce47ee

View File

@ -19,9 +19,11 @@ log = logging.getLogger(__name__)
def graphics_options(vm: VmConfig) -> list[str]:
common = ["-audio", "driver=pa,model=virtio"]
if vm.wayland:
# fmt: off
return [
*common,
"-nographic",
"-vga", "none",
"-device", "virtio-gpu-rutabaga,gfxstream-vulkan=on,cross-domain=on,hostmem=4G,wsi=headless",
@ -30,9 +32,7 @@ def graphics_options(vm: VmConfig) -> list[str]:
else:
# fmt: off
return [
"-audiodev", "spice,id=audio0",
"-device", "intel-hda",
"-device", "hda-duplex,audiodev=audio0",
*common,
"-vga", "none",
"-display", "gtk,gl=on",
"-device", "virtio-gpu-gl",