From b0f96836dbb989d2175bc872cefbab4ced7180e7 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 24 Jul 2019 15:06:20 +0200 Subject: [PATCH] q35 already has an 'audio0' device, rename our to "audiodev$id" The latest changes to our audio device implemenation [0] changed the naming of the device id to "audio" which in practice resulted in "audio0". This conflicts with the predefined audio device in the Q35 configs that is also using "audio0". The result is that a VM with a configured audio device and Q35 type will not start. While we just would had removed the audio0 device if we had detected this earlier in the new 4.0 q35 config, we cannot do so anymore due to migration compatibility. So rename the device from "audio$id" to audiodev$id". Co-authored-by: Aaron Lauterer Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index e5a69357..8c519b5f 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3438,7 +3438,7 @@ sub conf_has_audio { return { dev => $audioproperties->{device}, - dev_id => "audio$id", + dev_id => "audiodev$id", backend => $audiodriver, backend_id => "$audiodriver-backend${id}", };