Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package virt-manager for openSUSE:Factory checked in at 2026-02-06 21:29:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virt-manager (Old) and /work/SRC/openSUSE:Factory/.virt-manager.new.1670 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virt-manager" Fri Feb 6 21:29:53 2026 rev:285 rq:1330617 version:5.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/virt-manager/virt-manager.changes 2026-01-09 17:03:33.112097570 +0100 +++ /work/SRC/openSUSE:Factory/.virt-manager.new.1670/virt-manager.changes 2026-02-06 21:29:57.025216830 +0100 @@ -1,0 +2,9 @@ +Fri Jan 23 12:05:21 MST 2026 - [email protected] + +- bsc#1257182 - A VM will fail to boot with Intel TDX or AMD SNP + with a TPM device defined in the VM + virtinst-remove-tpm-device-for-tdx-and-snp.patch +- Modified detection of SLES distros to be more flexible with + media naming conventions + +------------------------------------------------------------------- New: ---- virtinst-remove-tpm-device-for-tdx-and-snp.patch ----------(New B)---------- New: with a TPM device defined in the VM virtinst-remove-tpm-device-for-tdx-and-snp.patch - Modified detection of SLES distros to be more flexible with ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virt-manager.spec ++++++ --- /var/tmp/diff_new_pack.SEJBJB/_old 2026-02-06 21:29:58.613283459 +0100 +++ /var/tmp/diff_new_pack.SEJBJB/_new 2026-02-06 21:29:58.617283627 +0100 @@ -110,6 +110,7 @@ Patch285: virtinst-windows-server-detection.patch Patch286: virtinst-drop-removeprefix-usage.patch Patch287: virtinst-add-sle16-detection-support.patch +Patch288: virtinst-remove-tpm-device-for-tdx-and-snp.patch BuildArch: noarch ++++++ virtinst-add-sle16-detection-support.patch ++++++ --- /var/tmp/diff_new_pack.SEJBJB/_old 2026-02-06 21:29:58.893295207 +0100 +++ /var/tmp/diff_new_pack.SEJBJB/_new 2026-02-06 21:29:58.905295710 +0100 @@ -2,7 +2,7 @@ =================================================================== --- virt-manager-5.1.0.orig/virtinst/install/urldetect.py +++ virt-manager-5.1.0/virtinst/install/urldetect.py -@@ -271,8 +271,11 @@ class _SUSEContent: +@@ -271,20 +271,27 @@ class _SUSEContent: # Special case, parse version out of a line like this # cpe:/o:opensuse:opensuse:13.2,openSUSE @@ -16,22 +16,28 @@ distro_version = distro_version.strip() if "Enterprise" in self.product_name or "SLES" in self.product_name or "Micro" in self.product_name: -@@ -283,6 +286,14 @@ class _SUSEContent: + if " SAP " in self.product_name: + sle_version = self.product_name.strip().rsplit(' ')[7] +- if " High Performance " in self.product_name: ++ elif " High Performance " in self.product_name: + sle_version = self.product_name.strip().rsplit(' ')[6] ++ elif "SUSE SL Micro" in self.product_name: ++ sle_version = self.product_name.strip().rsplit(' ')[3] else: - if "SUSE SL Micro" in self.product_name: - sle_version = self.product_name.strip().rsplit(' ')[3] -+ elif "SLES Full" in self.product_name or "SUSE SLES" in self.product_name: -+ # For SLES 16 -+ sle_version = self.product_name.strip().rsplit(' ') -+ for num in sle_version: -+ num = num.rstrip(".0") -+ if num.isnumeric(): -+ sle_version = num -+ break - else: - sle_version = self.product_name.strip().rsplit(' ')[4] +- if "SUSE SL Micro" in self.product_name: +- sle_version = self.product_name.strip().rsplit(' ')[3] +- else: +- sle_version = self.product_name.strip().rsplit(' ')[4] ++ sle_version = self.product_name.strip().rsplit(' ') ++ for num in sle_version: ++ num = num.replace(".0", "", 1) ++ if num.isnumeric(): ++ sle_version = num ++ break if len(self.product_name.strip().rsplit(' ')) > 5 and not " Micro " in self.product_name: -@@ -518,13 +529,20 @@ class _SuseDistro(_RHELDistro): + if " SAP " in self.product_name: + sle_version = (sle_version + '.' + self.product_name.strip().rsplit(' ')[8][2]) +@@ -518,13 +525,20 @@ class _SuseDistro(_RHELDistro): if not cache.checked_for_suse_content: cache.checked_for_suse_content = True @@ -52,7 +58,7 @@ if media_str: media_arch = "x86_64" if 'aarch64' in media_str: -@@ -580,6 +598,10 @@ class _SuseDistro(_RHELDistro): +@@ -580,6 +594,10 @@ class _SuseDistro(_RHELDistro): if tree_arch == "ppc64": self._kernel_paths.append(("suseboot/linux64", "suseboot/initrd64")) @@ -63,16 +69,16 @@ # Tested with SLES 12 for ppc64le, all s390x self._kernel_paths.append(("boot/%s/linux" % tree_arch, "boot/%s/initrd" % tree_arch)) # Tested with Opensuse 10.0 -@@ -669,7 +691,7 @@ class _SLESDistro(_SuseDistro): +@@ -669,7 +687,7 @@ class _SLESDistro(_SuseDistro): PRETTY_NAME = "SLES" matching_distros = ["sles"] _variant_prefix = "sles" - _suse_regex = [".*SUSE Linux Enterprise Server*", ".*SUSE SLES*"] -+ _suse_regex = [".*SUSE Linux Enterprise Server*", ".*SLES Full*", ".*SUSE SLES*"] ++ _suse_regex = [".*SUSE Linux Enterprise Server*", ".*SLES*", ".*SUSE SLES*"] famregex = ".*SUSE Linux Enterprise.*" -@@ -965,17 +987,17 @@ def _build_distro_list(osobj): +@@ -965,17 +983,17 @@ def _build_distro_list(osobj): allstores = [ # Libosinfo takes priority _LibosinfoDistro, ++++++ virtinst-remove-tpm-device-for-tdx-and-snp.patch ++++++ References: bsc#1257182 Index: virt-manager-5.1.0/virtinst/guest.py =================================================================== --- virt-manager-5.1.0.orig/virtinst/guest.py +++ virt-manager-5.1.0/virtinst/guest.py @@ -1049,6 +1049,16 @@ class Guest(XMLBuilder): self.pm.set_defaults(self) self.os.set_defaults(self) self.launchSecurity.set_defaults(self) + # Currently TPM does not work with SEV-SNP and TDX. + # Remove TPM device if present. + if self.have_default_tpm: + domcaps = self.lookup_domcaps() + if domcaps.get_launch_security_type() is not None: + for dev in self.devices.get_all(): + if dev.type == DeviceTpm.TYPE_EMULATOR: + self.remove_device(dev) + self.have_default_tpm = False + break for dev in self.devices.get_all(): dev.set_defaults(self) --- virt-manager-5.1.0/tests/data/cli/compare/virt-install-amd-sev.xml.orig 2026-01-23 13:52:18.196433822 -0700 +++ virt-manager-5.1.0/tests/data/cli/compare/virt-install-amd-sev.xml 2026-01-23 13:53:20.340435342 -0700 @@ -66,9 +66,6 @@ <target type="virtio" name="com.redhat.spice.0"/> </channel> <input type="tablet" bus="usb"/> - <tpm model="tpm-crb"> - <backend type="emulator"/> - </tpm> <graphics type="spice" port="-1" tlsPort="-1" autoport="yes"> <image compression="off"/> </graphics>
