Can't start vms with audio device(SPICE) in pve 7.3 cluster

mangobowl

Member
Dec 27, 2021
4
0
6
39
After upgraded my pve cluster from 7.2 to 7.3 recently, I found that vms with audio device(SPICE) can't start.

error log
Code:
WARN: no efidisk configured! Using temporary efivars disk.
audio: Could not init `spice' audio driver
TASK ERROR: start failed: QEMU exited with code 1


The package versions
Code:
proxmox-ve: 7.3-1 (running kernel: 5.15.85-1-pve)
pve-manager: 7.3-6 (running version: 7.3-6/723bb6ec)
pve-kernel-helper: 7.3-4
pve-kernel-5.15: 7.3-2
pve-kernel-5.15.85-1-pve: 5.15.85-1
pve-kernel-5.15.30-2-pve: 5.15.30-3
ceph: 15.2.17-pve1
ceph-fuse: 15.2.17-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.3
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.3-1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-2
libpve-guest-common-perl: 4.2-3
libpve-http-server-perl: 4.1-5
libpve-storage-perl: 7.3-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-1
lxcfs: 5.0.3-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.3.3-1
proxmox-backup-file-restore: 2.3.3-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.5.5
pve-cluster: 7.3-2
pve-container: 4.4-2
pve-docs: 7.3-1
pve-edk2-firmware: 3.20220526-1
pve-firewall: 4.2-7
pve-firmware: 3.6-3
pve-ha-manager: 3.5.1
pve-i18n: 2.8-2
pve-qemu-kvm: 7.2.0-5
pve-xtermjs: 4.16.0-1
qemu-server: 7.3-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+2
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1


These vms worked well in pve 7.2 cluster before. Did I miss something after upgrading?
 
Last edited:
I found that if I downgrade pve-qemu-kvm package from 7.2.0-5 to 7.1.0-4, the vms will start up normally.
 
I'm on the exact same Proxmox version (but no cluster and no ceph) and Linux VMs with audio devices (intel-hda, SPICE) work fine.
Maybe report this issue in this thread and show a VM configuration that fails to start?
 
  • Like
Reactions: fiona
Hi,
I assume you get the audio: Could not init `spice' audio driver message in the VM <ID> - Start task log also when using pve-qemu-kvm=7.1.0-4? Are you using SPICE as the driver for the audio device, but not SPICE display? Did audio work nonetheless with pve-qemu-kvm=7.1.0-4?
 
I assume you get the audio: Could not init `spice' audio driver message in the VM <ID> - Start task log also when using pve-qemu-kvm=7.1.0-4?
Yes, The same log appeared but with only warnings.
Are you using SPICE as the driver for the audio device, but not SPICE display?
Yes
Did audio work nonetheless with pve-qemu-kvm=7.1.0-4?
Actually, we don't use audio devices in vms. It's just because our vms are cloned from the same template with spice driver.
 
QEMU 7.2 made this a hard error and I guess in many/most cases it's good for the user to see right away that the audio initialization failed.


I'd suggest to just remove the audio device if you are not using it.
So, is there any way to migrate vms to the upgraded nodes(qemu 7.2) without shutting down the vms first? We have a lot of vms waitting for cluster rolling-upgrade, and the vm users doesn‘t accept downtime.:(
 
So, is there any way to migrate vms to the upgraded nodes(qemu 7.2) without shutting down the vms first? We have a lot of vms waitting for cluster rolling-upgrade, and the vm users doesn‘t accept downtime.:(
Unfortunately, I don't think there is a way, because the change to the audio device can't be hotplugged.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!