78a6564ed4
virt-manager-1.2.1.tar.bz2 * Bugfix release * Fix connecting to older libvirt versions (Michał Kępień) * Fix connecting to VM console with non-IP hostname (Giuseppe Scrivano) * Fix addhardware/create wizard errors when a nodedev disappears * Fix adding a second cdrom via customize dialog - Dropped tarball and patches virt-manager-1.2.0.tar.bz2 848123e6-fix-memory-stats-for-shutoff-VM.patch ebcb7c06-fix-exception-when-the-address-is-not-an-IP.patch c4d26d16-fix-VM-polling-on-old-libvirt.patch ac2be796-do-not-throw-exception-if-volume-or-pool-dont-exist.patch 88e18c86-fix-sending-net-removed-signal.patch fbdf574c-fix-shortcut-key-for-USB-redir-dev-type.patch 2c1e482b-fix--show-host-summary-error-windows-flooding.patch 4b5c836a-read-start-mode-from-inactive-conf-XML.patch 776c1d97-fix-changing-USB-device-model.patch bbc4f83b-enable-qemu_ga-for-sles-11-sp4-and-newer.patch f8af2e6b-verify-HYPER-V-support-after-customization.patch 9ea3fcd1-add-classes-for-SUSE-distros.patch 23f262ec-fetch-URL-media-from-content-file-for-suse-distros.patch 5618fa4c-add-support-for-detecting-os-variants-of-suse-distros.patch 9b99eff7-add-opensuse-13.x-tests.patch f5a13510-clone-dont-use-separator-when-disk-under-root.patch - Upstream support for suse distros 9ea3fcd1-add-classes-for-SUSE-distros.patch 23f262ec-fetch-URL-media-from-content-file-for-suse-distros.patch 5618fa4c-add-support-for-detecting-os-variants-of-suse-distros.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=237
87 lines
3.3 KiB
Diff
87 lines
3.3 KiB
Diff
Reference: bnc#869024
|
|
Add s390x support
|
|
Index: virt-manager-1.2.1/virtManager/create.py
|
|
===================================================================
|
|
--- virt-manager-1.2.1.orig/virtManager/create.py
|
|
+++ virt-manager-1.2.1/virtManager/create.py
|
|
@@ -417,7 +417,7 @@ class vmmCreate(vmmGObjectUI):
|
|
can_remote_url = self.conn.get_backend().support_remote_url_install()
|
|
|
|
installable_arch = (self.capsinfo.arch in
|
|
- ["i686", "x86_64", "ppc64", "ppc64le", "ia64"])
|
|
+ ["i686", "x86_64", "ppc64", "ppc64le", "ia64", "s390x"])
|
|
|
|
if self.capsinfo.arch == "aarch64":
|
|
try:
|
|
@@ -684,7 +684,7 @@ class vmmCreate(vmmGObjectUI):
|
|
archs.remove("i686")
|
|
archs.sort()
|
|
|
|
- prios = ["x86_64", "i686", "aarch64", "armv7l", "ppc64", "ppc64le"]
|
|
+ prios = ["x86_64", "i686", "aarch64", "armv7l", "ppc64", "ppc64le", "s390x"]
|
|
if self.conn.caps.host.cpu.arch not in prios:
|
|
prios = []
|
|
else:
|
|
Index: virt-manager-1.2.1/virtinst/osxml.py
|
|
===================================================================
|
|
--- virt-manager-1.2.1.orig/virtinst/osxml.py
|
|
+++ virt-manager-1.2.1/virtinst/osxml.py
|
|
@@ -70,6 +70,8 @@ class OSXML(XMLBuilder):
|
|
return self.arch == "ppc64" or self.arch == "ppc64le"
|
|
def is_pseries(self):
|
|
return self.is_ppc64() and self.machine == "pseries"
|
|
+ def is_s390x(self):
|
|
+ return self.arch == "s390x"
|
|
|
|
_XML_ROOT_NAME = "os"
|
|
_XML_PROP_ORDER = ["arch", "os_type", "loader", "loader_ro", "loader_type",
|
|
Index: virt-manager-1.2.1/virtinst/guest.py
|
|
===================================================================
|
|
--- virt-manager-1.2.1.orig/virtinst/guest.py
|
|
+++ virt-manager-1.2.1/virtinst/guest.py
|
|
@@ -120,7 +120,10 @@ class Guest(XMLBuilder):
|
|
self.skip_default_channel = False
|
|
self.skip_default_sound = False
|
|
self.skip_default_usbredir = False
|
|
- self.skip_default_graphics = False
|
|
+ if self.os.is_s390x():
|
|
+ self.skip_default_graphics = True
|
|
+ else:
|
|
+ self.skip_default_graphics = False
|
|
self.x86_cpu_default = self.cpu.SPECIAL_MODE_HOST_MODEL_ONLY
|
|
|
|
self.__os_object = None
|
|
@@ -605,11 +608,13 @@ class Guest(XMLBuilder):
|
|
self.conn.check_support(
|
|
self.conn.SUPPORT_CONN_VIRTIO_CONSOLE)):
|
|
dev.target_type = "virtio"
|
|
+ elif self.os.is_s390x():
|
|
+ dev.target_type = "sclp"
|
|
|
|
self.add_device(dev)
|
|
|
|
def add_default_video_device(self):
|
|
- if self.os.is_container():
|
|
+ if self.os.is_container() or self.os.is_s390x():
|
|
return
|
|
if self.get_devices("video"):
|
|
return
|
|
@@ -654,7 +659,7 @@ class Guest(XMLBuilder):
|
|
return
|
|
if self.os.is_container():
|
|
return
|
|
- if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64"]:
|
|
+ if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64", "s390x"]:
|
|
return
|
|
self.add_device(VirtualGraphics(self.conn))
|
|
|
|
@@ -956,7 +961,7 @@ class Guest(XMLBuilder):
|
|
if self._hv_only_supports_virtio():
|
|
return True
|
|
|
|
- if self.os.is_x86():
|
|
+ if self.os.is_x86() or self.os.is_s390x():
|
|
return True
|
|
|
|
if (self.os.is_arm_vexpress() and
|