Re: issues with vm after upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, Aug 02, 2021 at 04:33:20PM +0200, daggs wrote:
Greetings Martin,

Sent: Monday, August 02, 2021 at 12:17 PM
From: "Martin Kletzander" <mkletzan@xxxxxxxxxx>
To: "daggs" <daggs@xxxxxxx>
Cc: libvirt-users@xxxxxxxxxx
Subject: Re: issues with vm after upgrade

On Sat, Jul 31, 2021 at 12:19:59PM +0200, daggs wrote:
>a few weeks ago I've upgraded my system, this resulted with qemu and libvirt being upgraded to 6.0.0 and ~7.5.0 respectfully.
>I have two vms running on my system, router and streamer.
>the router vm works great, the streamer vm doesn't.
>after the streamer vm start, the monitor screen gets black and thats it. no relevant error are found in the log, see:
>the xml ca be found at
>in contrast the following oneliner works: qemu-system-x86_64 \
>-machine pc-q35-5.0,accel=kvm,usb=off,smm=on,dump-guest-core=off \
>-cpu host,migratable=on \
>-m 15360 \
>-smp 4,sockets=1,dies=1,cores=2,threads=2 \
>-drive file=/home/streamer/,if=virtio,format=qcow2 \
>-device vfio-pci,host=0000:00:02.0,romfile=/home/streamer/gpu-8086:5912-uefi.rom,multifunction=on \
>-device vfio-pci,host=0000:00:1f.3,multifunction=on \
>-usb \
>-device usb-host,vendorid=0x046d,productid=0xc52e \
>-device usb-host,vendorid=0x2548,productid=0x1002 \
>-display none \
>-netdev tap,id=hostnet0,ifname=virtsw-streamer,script=no,downscript=no \
>-device e1000e,netdev=hostnet0,id=net0,mac=52:54:00:5a:4c:8c \
>-blockdev '{"driver":"file","filename":"/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
>-blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/streamer-vm-q35_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}'
>another issue encountered caused by this param: "-audiodev id=audio1,driver=none" which is auto added to the qemu line.
>if I add the line to the above oneliner, the guest doesn't detects the pt sound card. without it it does and it works.

The links have expired, so I cannot look at the XML.  However do you
have any <audio/> in the XML at all?  I believe that without it we are
disabling any audio backends since no audio HW was requested.

here are the links:
1. xml:
2. log:

as for the audio entry, "    <audio id='1' type='none'/>" is in the xml
I didn't added it

So let get this straight.  You want the VM to use the HW GPU that you
assigned to it and also use the audio on that GPU (e.g. HDMI or DP
output).  When you add the "-audiodev driver=none" the VM cannot see the
audio device on that GPU card?  Or is that unrelated?

There were some strict definitions added for audio devices lately, I
presume to make sure that no data gets leaked in/out the VM and in order
to get audio anywhere else than from/to VNC/spice you'd need to
configure that.  It should not affect device assignment as far as I
understand it, although there might be some misunderstanding.



Attachment: signature.asc
Description: PGP signature

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux