unraid/webgui

Switching VM from Spice to VNC fails

Closed this issue · 6 comments

with error "unsupported configuration: Spice audio is not supported without spice graphics"
This is seemingly because the spice audio device isn't removed from the underlying XML.

Manual fix for this is just deleting all references to spice from the XML. Ideally the GUI would do this when switching Spice->VNC

Which version of Unraid are you using. The GUI does not a spice audio did you add this manually. I will look to see if I can remove on change of virtual gpu.

My bad
Version 6.11.5

I didn't touch the XML manually until needing to revert back to VNC. Can try reproduce if you can't

I have reviewed the code and the audio value is as follows, and as yet I have not been able to reproduce your error.

<graphics type='spice' autoport='yes' listen='0.0.0.0' keymap='de'>
  <listen type='address' address='0.0.0.0'/>
</graphics>
<audio id='1' type='none'/>

but will look to put a check in to see if type='spice' is set and remove when changing to VNC.

Maybe the spice audio got introduced by me trying (and failing) to pass through onboard audio (iommu error)

image

It is set by default when a VM is created and spice is set for the virtual. Fixed in this commit.

5e5fb2e

Great, thanks!