]> git.proxmox.com Git - qemu-server.git/commitdiff
q35 already has an 'audio0' device, rename our to "audiodev$id"
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Jul 2019 13:06:20 +0000 (15:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Jul 2019 13:06:53 +0000 (15:06 +0200)
The latest changes to our audio device implemenation [0] changed the
naming of the device id to "audio<id>" 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 <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index e5a69357676f81c981166f1091ddde9f629c91e9..8c519b5f6ec8801a0d4ff1a38bc88c1b1d7d8232 100644 (file)
@@ -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}",
     };