2014-03-24 16:05:15 +01:00
|
|
|
Index: virt-manager-1.0.1/virtManager/create.py
|
2013-07-03 23:44:06 +02:00
|
|
|
===================================================================
|
2014-03-24 16:05:15 +01:00
|
|
|
--- virt-manager-1.0.1.orig/virtManager/create.py
|
|
|
|
+++ virt-manager-1.0.1/virtManager/create.py
|
2014-03-27 23:27:37 +01:00
|
|
|
@@ -1227,11 +1227,34 @@ class vmmCreate(vmmGObjectUI):
|
2013-07-03 23:44:06 +02:00
|
|
|
variant = self.widget("install-os-version")
|
|
|
|
variant.set_active(0)
|
|
|
|
|
|
|
|
+ def _update_kickstart_label(self):
|
2013-11-26 22:23:05 +01:00
|
|
|
+ # Update label based on os version selected to either kickstart or autoyast
|
2013-07-03 23:44:06 +02:00
|
|
|
+ combo = self.widget("install-os-version")
|
|
|
|
+ if combo.get_active() != -1:
|
2013-11-26 22:23:05 +01:00
|
|
|
+ tree_iter = combo.get_active_iter()
|
|
|
|
+ if tree_iter != None:
|
|
|
|
+ model = combo.get_model()
|
|
|
|
+ unused, os_name = model[tree_iter][:2]
|
|
|
|
+ else:
|
|
|
|
+ entry = combo.get_child()
|
|
|
|
+ os_name = entry.get_text()
|
|
|
|
+ if os_name:
|
|
|
|
+ os_name = os_name.lower()
|
|
|
|
+ label = self.widget("kickstart-url-label")
|
|
|
|
+ if label and os_name:
|
|
|
|
+ if os_name.startswith('opensuse') or os_name.startswith('suse') or os_name.startswith('novell'):
|
|
|
|
+ label.set_text("AutoYaST URL:")
|
|
|
|
+ else:
|
|
|
|
+ label.set_text("Kickstart URL:")
|
|
|
|
+ label.show()
|
2013-07-03 23:44:06 +02:00
|
|
|
+
|
|
|
|
def change_os_version(self, box):
|
- 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 16:46:55 +01:00
|
|
|
show_all = uiutil.get_list_selection(box, 3)
|
|
|
|
if not show_all:
|
2013-07-03 23:44:06 +02:00
|
|
|
return
|
|
|
|
|
|
|
|
+ self._update_kickstart_label()
|
|
|
|
+
|
|
|
|
# Get previous
|
- 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 16:46:55 +01:00
|
|
|
type_row = self._selected_os_row()
|
|
|
|
if not type_row:
|
2014-03-27 23:27:37 +01:00
|
|
|
@@ -1585,7 +1608,10 @@ class vmmCreate(vmmGObjectUI):
|
2013-07-25 22:51:25 +02:00
|
|
|
if extra:
|
|
|
|
extraargs += extra
|
|
|
|
if ks:
|
|
|
|
- extraargs += " ks=%s" % ks
|
|
|
|
+ if variant.startswith('opensuse') or variant.startswith('sle') or variant.startswith('oes'):
|
|
|
|
+ extraargs += " autoyast=%s" % ks
|
|
|
|
+ else:
|
|
|
|
+ extraargs += " ks=%s" % ks
|
|
|
|
|
|
|
|
if extraargs:
|
|
|
|
self.guest.installer.extraargs = extraargs
|
2014-03-27 23:27:37 +01:00
|
|
|
@@ -1981,6 +2007,7 @@ class vmmCreate(vmmGObjectUI):
|
- 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 16:46:55 +01:00
|
|
|
dl = self.set_os_val(self.widget("install-os-type"), distro_type)
|
|
|
|
vl = self.set_os_val(self.widget("install-os-version"), distro_var)
|
2013-07-03 23:44:06 +02:00
|
|
|
self.set_distro_labels(dl, vl)
|
|
|
|
+ self._update_kickstart_label()
|
|
|
|
|
|
|
|
def check_detection(self, idx, forward):
|
|
|
|
results = None
|
2014-03-24 16:05:15 +01:00
|
|
|
Index: virt-manager-1.0.1/ui/create.ui
|
2013-07-17 23:21:42 +02:00
|
|
|
===================================================================
|
2014-03-24 16:05:15 +01:00
|
|
|
--- virt-manager-1.0.1.orig/ui/create.ui
|
|
|
|
+++ virt-manager-1.0.1/ui/create.ui
|
- 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 16:46:55 +01:00
|
|
|
@@ -869,7 +869,7 @@ bar</property>
|
2013-07-17 23:21:42 +02:00
|
|
|
<property name="column_spacing">6</property>
|
|
|
|
<property name="row_spacing">4</property>
|
|
|
|
<child>
|
|
|
|
- <object class="GtkLabel" id="label25">
|
|
|
|
+ <object class="GtkLabel" id="kickstart-url-label">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="xalign">0</property>
|