virt-manager/virtman-allow-pv-iso-install.patch
Charles Arnold 0ab97a4010 - If connection is Xen, default to PV instead of HVM.
virtman-default-to-xen-pv.patch

- Update to virt-manager 1.0.0
  * virt-manager: Snapshot support
  * New tool virt-xml: Edit libvirt XML in one shot from the command line. Check out some examples: http://www.redhat.com/archives/libvir-list/2014-January/msg01226.html
  * Improved defaults: qcow2, USB2, host CPU model, guest agent channel, …
  * Introspect command line options like –disk=? or –network=help
  * The virt-image tool will be removed before the next release, speak up if you have a good reason not to remove it.
  * virt-manager: Support arm vexpress VM creation
  * virt-manager: Add guest memory usage graphs (Thorsten Behrens)
  * virt-manager: UI for editing devices (Cédric Bosdonnat)
  * Spice USB redirection support (Guannan Ren)
  * UI and command line support (Stefan Berger)
  * UI and command line support (Giuseppe Scrivano)
  * UI and command line support (Chen Hanxiao)
  * command line support (Chen Hanxiao)
  * virt-manager: support for glusterfs storage pools (Giuseppe Scrivano)
  * cli: New options –memory, –features, –clock, –metadata, –pm
  * Greatly improve app responsiveness when connecting to remote hosts
  * Lots of UI cleanup and improvements
  virt-manager-1.0.0.tar.bz2
- Dropped the following patches by taking a newer upstream tarball
  virt-manager-0.10.0.tar.bz2
  Add-memory-stats-widget-also-to-manager-tree-view.patch
  Attempt-empty-path-on-virDomainBlockStats.patch
  Base-mem-statistics-on-virDomainMemoryStats-if-avail.patch
  virtinst-add-cache-modes.patch
  virtinst-allow-ide-hdb.patch
  virtinst-clone-disks.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=143
2014-02-15 15:46:55 +00:00

38 lines
1.6 KiB
Diff

Index: virt-manager-1.0.0/virtManager/create.py
===================================================================
--- virt-manager-1.0.0.orig/virtManager/create.py
+++ virt-manager-1.0.0/virtManager/create.py
@@ -419,8 +419,8 @@ class vmmCreate(vmmGObjectUI):
method_tree.set_sensitive((is_local or can_remote_url) and
installable_arch)
- method_local.set_sensitive(not is_pv and can_storage and
- installable_arch)
+ # Allow PV ISO/CDROM install for SLES
+ method_local.set_sensitive(can_storage and installable_arch)
method_pxe.set_sensitive(not is_pv and installable_arch)
method_import.set_sensitive(can_storage)
virt_methods = [method_local, method_tree, method_pxe, method_import]
@@ -637,6 +637,21 @@ class vmmCreate(vmmGObjectUI):
self.capsdomain.hypervisor_type == domtype):
default = len(model)
+ if gtype == "xen":
+ pv_cdrom = False
+ if self.guest and self.guest._lookup_osdict_key('pv_cdrom_install', False):
+ pv_cdrom = True
+
+ instmethod = self.get_config_install_page()
+ if (instmethod == INSTALL_PAGE_PXE or
+ instmethod == INSTALL_PAGE_ISO and
+ pv_cdrom == False):
+ sensitive = False
+ tooltip = _("Only URL or import installs are supported "
+ "for paravirt.")
+ else:
+ default = 0
+
model.append([label, gtype])
show = bool(guests)