Accepting request 1082818 from Virtualization
Fix for bsc#1201748 which adds support for a video device for ARM guests if video virtio is supported (qemu-hw-display-virtio-gpu installed) OBS-URL: https://build.opensuse.org/request/show/1082818 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virt-manager?expand=0&rev=242
This commit is contained in:
commit
cadecb2453
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 25 06:14:10 MDT 2023 - carnold@suse.com
|
||||||
|
|
||||||
|
- bsc#1201748 - virt-install --graphics vnc fails with not support
|
||||||
|
for video model 'virtio'
|
||||||
|
virtinst-enable-video-virtio-for-arm.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 17 13:24:16 MDT 2023 - carnold@suse.com
|
||||||
|
|
||||||
|
- Drop virtman-check-for-valid-display.patch. This patch is no
|
||||||
|
longer required.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 6 15:06:51 MDT 2023 - carnold@suse.com
|
Thu Apr 6 15:06:51 MDT 2023 - carnold@suse.com
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ Summary: Virtual Machine Manager
|
|||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
URL: http://virt-manager.org/
|
URL: http://virt-manager.org/
|
||||||
Source0: https://virt-manager.org/download/sources/virt-manager/virt-manager-%{version}.tar.gz
|
Source0: https://releases.pagure.org/virt-manager/virt-manager-%{version}.tar.gz
|
||||||
Source1: virt-install.rb
|
Source1: virt-install.rb
|
||||||
Source2: virt-install.desktop
|
Source2: virt-install.desktop
|
||||||
Source3: virt-manager-supportconfig
|
Source3: virt-manager-supportconfig
|
||||||
@ -74,17 +74,17 @@ Patch125: virtinst-add-caasp-support.patch
|
|||||||
Patch126: virtinst-add-sle15-detection-support.patch
|
Patch126: virtinst-add-sle15-detection-support.patch
|
||||||
Patch127: virtinst-add-pvh-support.patch
|
Patch127: virtinst-add-pvh-support.patch
|
||||||
Patch128: virtinst-media-detection.patch
|
Patch128: virtinst-media-detection.patch
|
||||||
|
Patch129: virtinst-enable-video-virtio-for-arm.patch
|
||||||
# Bug Fixes
|
# Bug Fixes
|
||||||
Patch151: virtman-increase-setKeepAlive-count.patch
|
Patch151: virtman-increase-setKeepAlive-count.patch
|
||||||
Patch152: virtman-allow-destroy-from-shutdown-menu-of-crashed-vm.patch
|
Patch152: virtman-allow-destroy-from-shutdown-menu-of-crashed-vm.patch
|
||||||
Patch153: virtman-check-for-valid-display.patch
|
Patch153: virtman-allow-creating-i686-vm.patch
|
||||||
Patch154: virtman-allow-creating-i686-vm.patch
|
Patch154: virtman-dont-specify-vte-version.patch
|
||||||
Patch155: virtman-dont-specify-vte-version.patch
|
Patch155: virtman-dont-specify-gtksource-version.patch
|
||||||
Patch156: virtman-dont-specify-gtksource-version.patch
|
Patch156: virtman-fix-restore-vm-menu-selection.patch
|
||||||
Patch157: virtman-fix-restore-vm-menu-selection.patch
|
Patch157: virtman-disallow-adding-floppy-disk.patch
|
||||||
Patch158: virtman-disallow-adding-floppy-disk.patch
|
Patch158: virtman-register-delete-event-for-details-dialog.patch
|
||||||
Patch159: virtman-register-delete-event-for-details-dialog.patch
|
Patch159: virtman-revert-use-of-AyatanaAppIndicator3.patch
|
||||||
Patch160: virtman-revert-use-of-AyatanaAppIndicator3.patch
|
|
||||||
Patch170: virtinst-xen-drive-type.patch
|
Patch170: virtinst-xen-drive-type.patch
|
||||||
Patch171: virtinst-xenbus-disk-index-fix.patch
|
Patch171: virtinst-xenbus-disk-index-fix.patch
|
||||||
Patch172: virtinst-refresh_before_fetch_pool.patch
|
Patch172: virtinst-refresh_before_fetch_pool.patch
|
||||||
@ -246,6 +246,9 @@ donttest="$donttest or testCLI0162virt_install"
|
|||||||
# Expectsion <video> element
|
# Expectsion <video> element
|
||||||
donttest="$donttest or testCLI0168virt_install_s390x_cdrom"
|
donttest="$donttest or testCLI0168virt_install_s390x_cdrom"
|
||||||
donttest="$donttest or testCLI0169virt_install_s390x_cdrom"
|
donttest="$donttest or testCLI0169virt_install_s390x_cdrom"
|
||||||
|
# Fedora specific
|
||||||
|
donttest="$donttest or testCLI0178virt_install_arm_defaultmach_f20"
|
||||||
|
donttest="$donttest or testCLI0179virt_install_arm_kvm_import"
|
||||||
# missing <boot> element, extra <kernel> element
|
# missing <boot> element, extra <kernel> element
|
||||||
donttest="$donttest or testCLI0189virt_install_xen_default"
|
donttest="$donttest or testCLI0189virt_install_xen_default"
|
||||||
donttest="$donttest or testCLI0190virt_install_xen_default"
|
donttest="$donttest or testCLI0190virt_install_xen_default"
|
||||||
|
173
virtinst-enable-video-virtio-for-arm.patch
Normal file
173
virtinst-enable-video-virtio-for-arm.patch
Normal file
@ -0,0 +1,173 @@
|
|||||||
|
References: bsc#1201748
|
||||||
|
|
||||||
|
Enable video virtio on arm if domain caps reports it is supported.
|
||||||
|
|
||||||
|
Index: virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-cdrom.xml
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/tests/data/cli/compare/virt-install-aarch64-cdrom.xml
|
||||||
|
+++ virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-cdrom.xml
|
||||||
|
@@ -63,6 +63,18 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <channel type="spicevmc">
|
||||||
|
+ <target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
+ </channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
+ <image compression="off"/>
|
||||||
|
+ </graphics>
|
||||||
|
+ <sound model="ich9"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
@@ -131,6 +143,18 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <channel type="spicevmc">
|
||||||
|
+ <target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
+ </channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
+ <image compression="off"/>
|
||||||
|
+ </graphics>
|
||||||
|
+ <sound model="ich9"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
Index: virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-firmware-no-override.xml
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/tests/data/cli/compare/virt-install-aarch64-firmware-no-override.xml
|
||||||
|
+++ virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-firmware-no-override.xml
|
||||||
|
@@ -43,6 +43,12 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="vnc" port="-1"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
@@ -95,6 +101,12 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="vnc" port="-1"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
Index: virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-kvm-gic.xml
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/tests/data/cli/compare/virt-install-aarch64-kvm-gic.xml
|
||||||
|
+++ virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-kvm-gic.xml
|
||||||
|
@@ -56,6 +56,12 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="vnc" port="-1"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
Index: virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-machdefault.xml
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/tests/data/cli/compare/virt-install-aarch64-machdefault.xml
|
||||||
|
+++ virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-machdefault.xml
|
||||||
|
@@ -55,6 +55,18 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <channel type="spicevmc">
|
||||||
|
+ <target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
+ </channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
+ <image compression="off"/>
|
||||||
|
+ </graphics>
|
||||||
|
+ <sound model="ich9"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
Index: virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-machvirt.xml
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/tests/data/cli/compare/virt-install-aarch64-machvirt.xml
|
||||||
|
+++ virt-manager-4.1.0/tests/data/cli/compare/virt-install-aarch64-machvirt.xml
|
||||||
|
@@ -55,6 +55,18 @@
|
||||||
|
<source mode="bind"/>
|
||||||
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
|
</channel>
|
||||||
|
+ <channel type="spicevmc">
|
||||||
|
+ <target type="virtio" name="com.redhat.spice.0"/>
|
||||||
|
+ </channel>
|
||||||
|
+ <input type="tablet" bus="usb"/>
|
||||||
|
+ <input type="keyboard" bus="usb"/>
|
||||||
|
+ <graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
||||||
|
+ <image compression="off"/>
|
||||||
|
+ </graphics>
|
||||||
|
+ <sound model="ich9"/>
|
||||||
|
+ <video>
|
||||||
|
+ <model type="virtio"/>
|
||||||
|
+ </video>
|
||||||
|
<memballoon model="virtio"/>
|
||||||
|
<rng model="virtio">
|
||||||
|
<backend model="random">/dev/urandom</backend>
|
||||||
|
Index: virt-manager-4.1.0/virtinst/guest.py
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/virtinst/guest.py
|
||||||
|
+++ virt-manager-4.1.0/virtinst/guest.py
|
||||||
|
@@ -1024,7 +1024,10 @@ class Guest(XMLBuilder):
|
||||||
|
return
|
||||||
|
if (not self.os.is_x86() and
|
||||||
|
not self.os.is_pseries()):
|
||||||
|
- return
|
||||||
|
+ if (not self.os.is_arm_machvirt() or
|
||||||
|
+ not self.lookup_domcaps().supports_video_virtio()):
|
||||||
|
+ log.debug("Domain caps reports video virtio is not supported.")
|
||||||
|
+ return
|
||||||
|
self.add_device(DeviceGraphics(self.conn))
|
||||||
|
|
||||||
|
def _add_default_rng(self):
|
||||||
|
Index: virt-manager-4.1.0/virtinst/devices/video.py
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-4.1.0.orig/virtinst/devices/video.py
|
||||||
|
+++ virt-manager-4.1.0/virtinst/devices/video.py
|
||||||
|
@@ -32,8 +32,11 @@ class DeviceVideo(Device):
|
||||||
|
if guest.os.is_pseries():
|
||||||
|
return "vga"
|
||||||
|
if guest.os.is_arm_machvirt():
|
||||||
|
- # For all cases here the hv and guest are new enough for virtio
|
||||||
|
- return "virtio"
|
||||||
|
+ if guest.lookup_domcaps().supports_video_virtio():
|
||||||
|
+ # For all cases here the hv and guest are new enough for virtio
|
||||||
|
+ return "virtio"
|
||||||
|
+ log.debug("Domain caps reports video virtio is not supported.")
|
||||||
|
+ return "none"
|
||||||
|
if guest.os.is_riscv_virt():
|
||||||
|
# For all cases here the hv and guest are new enough for virtio
|
||||||
|
return "virtio"
|
@ -1,20 +0,0 @@
|
|||||||
References: bnc#907958
|
|
||||||
Sanity check for those who forget '-X' on ssh and try to start virt-manager
|
|
||||||
Index: virt-manager-3.3.0/virtManager/virtmanager.py
|
|
||||||
===================================================================
|
|
||||||
--- virt-manager-3.3.0.orig/virtManager/virtmanager.py
|
|
||||||
+++ virt-manager-3.3.0/virtManager/virtmanager.py
|
|
||||||
@@ -66,8 +66,11 @@ def _import_gtk(leftovers):
|
|
||||||
print("gtk3 3.22.0 or later is required.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
- # This will error if Gtk wasn't correctly initialized
|
|
||||||
- Gtk.init()
|
|
||||||
+ if 'DISPLAY' in os.environ and os.environ['DISPLAY']:
|
|
||||||
+ # This will error if Gtk wasn't correctly initialized
|
|
||||||
+ Gtk.Window()
|
|
||||||
+ else:
|
|
||||||
+ raise Exception("Error starting virt-manager: No graphical display found")
|
|
||||||
globals()["Gtk"] = Gtk
|
|
||||||
|
|
||||||
# This ensures we can init gsettings correctly
|
|
Loading…
Reference in New Issue
Block a user