2014-10-29 18:03:15 +01:00
|
|
|
Index: virt-manager-1.1.0/virtinst/guest.py
|
2014-09-29 18:47:31 +02:00
|
|
|
===================================================================
|
2014-10-29 18:03:15 +01:00
|
|
|
--- virt-manager-1.1.0.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-1.1.0/virtinst/guest.py
|
|
|
|
@@ -633,7 +633,7 @@ class Guest(XMLBuilder):
|
2014-09-03 23:55:51 +02:00
|
|
|
return
|
|
|
|
if self.os.is_container():
|
|
|
|
return
|
|
|
|
- if self.os.arch not in ["x86_64", "i686", "ppc64", "ia64", "s390x"]:
|
|
|
|
+ if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64", "s390x"]:
|
|
|
|
return
|
|
|
|
self.add_device(virtinst.VirtualGraphics(self.conn))
|
|
|
|
|
2014-10-29 18:03:15 +01:00
|
|
|
@@ -771,6 +771,8 @@ class Guest(XMLBuilder):
|
2014-09-03 23:55:51 +02:00
|
|
|
if self.conn.is_qemu():
|
|
|
|
if self.os.arch == "s390x":
|
|
|
|
preferred_emulator = "/usr/bin/qemu-system-s390x"
|
2014-09-05 16:08:09 +02:00
|
|
|
+ elif self.os.arch == "ppc64" or self.os.arch == "ppc64le":
|
2014-09-03 23:55:51 +02:00
|
|
|
+ preferred_emulator = "/usr/bin/qemu-system-ppc64"
|
|
|
|
else:
|
|
|
|
preferred_emulator = "/usr/bin/qemu-system-x86_64"
|
|
|
|
else:
|
2014-10-29 18:03:15 +01:00
|
|
|
@@ -877,7 +879,7 @@ class Guest(XMLBuilder):
|
2014-09-03 23:55:51 +02:00
|
|
|
if not self._lookup_osdict_key(key, False):
|
|
|
|
return False
|
|
|
|
|
|
|
|
- if self.os.is_x86() or self.os.is_s390x():
|
|
|
|
+ if self.os.is_x86() or self.os.is_s390x() or self.os.is_ppc64():
|
|
|
|
return True
|
|
|
|
if (self.os.is_arm_vexpress() and
|
|
|
|
self.os.dtb and
|
2014-10-29 18:03:15 +01:00
|
|
|
@@ -928,6 +930,8 @@ class Guest(XMLBuilder):
|
2014-09-03 23:55:51 +02:00
|
|
|
net_model = None
|
|
|
|
elif self._can_virtio("virtionet"):
|
|
|
|
net_model = "virtio"
|
|
|
|
+ elif self.os.is_pseries():
|
|
|
|
+ net_model = "spapr-vlan"
|
|
|
|
else:
|
|
|
|
net_model = self._lookup_osdict_key("netmodel", None)
|
|
|
|
|
2014-10-29 18:03:15 +01:00
|
|
|
Index: virt-manager-1.1.0/virtinst/osxml.py
|
2014-09-29 18:47:31 +02:00
|
|
|
===================================================================
|
2014-10-29 18:03:15 +01:00
|
|
|
--- virt-manager-1.1.0.orig/virtinst/osxml.py
|
|
|
|
+++ virt-manager-1.1.0/virtinst/osxml.py
|
|
|
|
@@ -60,6 +60,8 @@ class OSXML(XMLBuilder):
|
2014-09-03 23:55:51 +02:00
|
|
|
return self.is_ppc64 and self.machine == "pseries"
|
|
|
|
def is_s390x(self):
|
|
|
|
return self.arch == "s390x"
|
|
|
|
+ def is_ppc64(self):
|
|
|
|
+ return self.arch == "ppc64" or self.arch == "ppc64le"
|
|
|
|
|
|
|
|
_XML_ROOT_NAME = "os"
|
|
|
|
_XML_PROP_ORDER = ["arch", "os_type", "loader",
|
2014-10-29 18:03:15 +01:00
|
|
|
Index: virt-manager-1.1.0/virtinst/urlfetcher.py
|
2014-09-29 18:47:31 +02:00
|
|
|
===================================================================
|
2014-10-29 18:03:15 +01:00
|
|
|
--- virt-manager-1.1.0.orig/virtinst/urlfetcher.py
|
|
|
|
+++ virt-manager-1.1.0/virtinst/urlfetcher.py
|
|
|
|
@@ -944,10 +944,11 @@ class SuseDistro(Distro):
|
2014-09-29 18:47:31 +02:00
|
|
|
oldkern += "64"
|
|
|
|
oldinit += "64"
|
|
|
|
|
|
|
|
- if self.arch == "s390x":
|
|
|
|
+ if self.arch == "s390x" or \
|
|
|
|
+ self.arch == "ppc64" or self.arch == "ppc64le":
|
|
|
|
self._hvm_kernel_paths = [ ("boot/%s/linux" % self.arch,
|
|
|
|
"boot/%s/initrd" % self.arch) ]
|
|
|
|
- # No Xen on s390x
|
|
|
|
+ # No Xen on s390x and ppc
|
|
|
|
self._xen_kernel_paths = []
|
|
|
|
else:
|
|
|
|
# Tested with Opensuse >= 10.2, 11, and sles 10
|