From e3734f6e9120ed62238bcffb6bd0679b64b42c70 Mon Sep 17 00:00:00 2001 Message-ID: From: Pavel Hrdina Date: Mon, 25 Mar 2024 14:39:20 +0100 Subject: [PATCH] virtinst: remove spice devices when removing last spice graphics When Spice graphics is used QEMU creates a Spice server and communicates with Spice client using multiple channels. These channels are used by the spice devices as well. Without the Spice graphics defined there is no use for the other devices. In addition libvirt will report error for such configuration. Signed-off-by: Pavel Hrdina (cherry picked from commit aaf85519142d672e7486020d9847358f36df4f70) https://issues.redhat.com/browse/RHEL-17435 Signed-off-by: Pavel Hrdina --- .../virt-xml-remove-spice-graphics.xml | 18 ++++++++++---- virtinst/guest.py | 24 +++++++++++++++++++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/tests/data/cli/compare/virt-xml-remove-spice-graphics.xml b/tests/data/cli/compare/virt-xml-remove-spice-graphics.xml index ed9f2a584..3d27d4121 100644 --- a/tests/data/cli/compare/virt-xml-remove-spice-graphics.xml +++ b/tests/data/cli/compare/virt-xml-remove-spice-graphics.xml @@ -1,14 +1,24 @@ - - - + /usr/bin/qemu-system-x86_64 + + +- +- +- - - - - - -