2014-02-28 15:58:33 +01:00
|
|
|
Index: virt-manager-1.0.0/ui/manager.ui
|
2013-07-03 23:44:06 +02:00
|
|
|
===================================================================
|
2014-02-28 15:58:33 +01:00
|
|
|
--- virt-manager-1.0.0.orig/ui/manager.ui
|
|
|
|
+++ virt-manager-1.0.0/ui/manager.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
|
|
|
@@ -277,7 +277,7 @@
|
2013-07-03 23:44:06 +02:00
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="show_arrow">False</property>
|
|
|
|
<child>
|
|
|
|
- <object class="GtkToolButton" id="vm-new">
|
|
|
|
+ <object class="GtkMenuToolButton" id="vm-new">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="has_tooltip">True</property>
|
- 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
|
|
|
@@ -289,7 +289,6 @@
|
2013-07-03 23:44:06 +02:00
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="expand">False</property>
|
|
|
|
- <property name="homogeneous">True</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
2014-02-28 15:58:33 +01:00
|
|
|
Index: virt-manager-1.0.0/virtManager/manager.py
|
2013-07-03 23:44:06 +02:00
|
|
|
===================================================================
|
2014-02-28 15:58:33 +01:00
|
|
|
--- virt-manager-1.0.0.orig/virtManager/manager.py
|
|
|
|
+++ virt-manager-1.0.0/virtManager/manager.py
|
- 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
|
|
|
@@ -95,6 +95,7 @@ class vmmManager(vmmGObjectUI):
|
2013-11-26 22:23:05 +01:00
|
|
|
"action-show-host": (GObject.SignalFlags.RUN_FIRST, None, [str]),
|
|
|
|
"action-show-preferences": (GObject.SignalFlags.RUN_FIRST, None, []),
|
|
|
|
"action-show-create": (GObject.SignalFlags.RUN_FIRST, None, [str]),
|
|
|
|
+ "action-show-create-vminstall": (GObject.SignalFlags.RUN_FIRST, None, [str]),
|
|
|
|
"action-suspend-domain": (GObject.SignalFlags.RUN_FIRST, None, [str, str]),
|
|
|
|
"action-resume-domain": (GObject.SignalFlags.RUN_FIRST, None, [str, str]),
|
|
|
|
"action-run-domain": (GObject.SignalFlags.RUN_FIRST, None, [str, str]),
|
- 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
|
|
|
@@ -298,7 +299,8 @@ class vmmManager(vmmGObjectUI):
|
|
|
|
|
2013-07-03 23:44:06 +02:00
|
|
|
|
|
|
|
def init_toolbar(self):
|
|
|
|
- self.widget("vm-new").set_icon_name("vm_new")
|
- 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
|
|
|
+ vmmenu.build_new_button_menu(self.widget("vm-new"),
|
2013-07-03 23:44:06 +02:00
|
|
|
+ self.vminstall_new_vm)
|
|
|
|
self.widget("vm-open").set_icon_name("icon_console")
|
- 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
|
|
|
|
|
|
|
menu = vmmenu.VMShutdownMenu(self, self.current_vm)
|
|
|
|
@@ -489,6 +491,9 @@ class vmmManager(vmmGObjectUI):
|
2013-07-03 23:44:06 +02:00
|
|
|
def new_vm(self, src_ignore=None):
|
|
|
|
self.emit("action-show-create", self.current_conn_uri())
|
|
|
|
|
|
|
|
+ def vminstall_new_vm(self, src_ignore=None):
|
|
|
|
+ self.emit("action-show-create-vminstall", self.current_conn_uri())
|
|
|
|
+
|
|
|
|
def show_about(self, src_ignore):
|
|
|
|
self.emit("action-show-about")
|
|
|
|
|
2014-02-28 15:58:33 +01:00
|
|
|
Index: virt-manager-1.0.0/virtManager/vmmenu.py
|
2013-07-03 23:44:06 +02:00
|
|
|
===================================================================
|
2014-02-28 15:58:33 +01:00
|
|
|
--- virt-manager-1.0.0.orig/virtManager/vmmenu.py
|
|
|
|
+++ virt-manager-1.0.0/virtManager/vmmenu.py
|
- 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
|
|
|
@@ -21,9 +21,28 @@
|
|
|
|
# pylint: disable=E0611
|
|
|
|
from gi.repository import Gtk
|
|
|
|
# pylint: enable=E0611
|
|
|
|
+from virtManager import config
|
2013-07-03 23:44:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
####################################################################
|
|
|
|
+# Build toolbar new button menu (manager and details toolbar) #
|
|
|
|
+####################################################################
|
|
|
|
+
|
|
|
|
+def build_new_button_menu(widget, vminstall_cb):
|
- 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
|
|
|
+ icon_name = config.running_config.get_new_icon_name()
|
2013-07-03 23:44:06 +02:00
|
|
|
+ widget.set_icon_name(icon_name)
|
2013-11-26 22:23:05 +01:00
|
|
|
+ menu = Gtk.Menu()
|
2013-07-03 23:44:06 +02:00
|
|
|
+ widget.set_menu(menu)
|
|
|
|
+
|
2013-11-26 22:23:05 +01:00
|
|
|
+ vminstallimg = Gtk.Image.new_from_icon_name(icon_name, Gtk.IconSize.MENU)
|
2013-07-03 23:44:06 +02:00
|
|
|
+
|
2014-01-07 23:00:10 +01:00
|
|
|
+ vminstall = Gtk.ImageMenuItem.new_with_mnemonic(_("_Vm-install"))
|
2013-07-03 23:44:06 +02:00
|
|
|
+ vminstall.set_image(vminstallimg)
|
|
|
|
+ vminstall.show()
|
|
|
|
+ vminstall.connect("activate", vminstall_cb)
|
|
|
|
+ menu.add(vminstall)
|
|
|
|
+
|
|
|
|
+####################################################################
|
|
|
|
# Build toolbar shutdown button menu (manager and details toolbar) #
|
|
|
|
####################################################################
|
|
|
|
|
2014-02-28 15:58:33 +01:00
|
|
|
Index: virt-manager-1.0.0/virtManager/config.py
|
2013-07-03 23:44:06 +02:00
|
|
|
===================================================================
|
2014-02-28 15:58:33 +01:00
|
|
|
--- virt-manager-1.0.0.orig/virtManager/config.py
|
|
|
|
+++ virt-manager-1.0.0/virtManager/config.py
|
- 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
|
|
|
@@ -191,6 +191,13 @@ class vmmConfig(object):
|
2013-07-03 23:44:06 +02:00
|
|
|
|
|
|
|
# General app wide helpers (gconf agnostic)
|
|
|
|
|
|
|
|
+ def get_new_icon_name(self):
|
2013-11-26 22:23:05 +01:00
|
|
|
+ theme = Gtk.IconTheme.get_default()
|
2013-07-03 23:44:06 +02:00
|
|
|
+ iconname = "vm_new"
|
|
|
|
+ if theme.has_icon(iconname):
|
|
|
|
+ return iconname
|
|
|
|
+ return "media-record"
|
|
|
|
+
|
2013-11-26 22:23:05 +01:00
|
|
|
def get_appname(self):
|
|
|
|
return self.appname
|
|
|
|
def get_appversion(self):
|
2014-02-28 15:58:33 +01:00
|
|
|
Index: virt-manager-1.0.0/virtManager/engine.py
|
2009-08-01 11:46:10 +02:00
|
|
|
===================================================================
|
2014-02-28 15:58:33 +01:00
|
|
|
--- virt-manager-1.0.0.orig/virtManager/engine.py
|
|
|
|
+++ virt-manager-1.0.0/virtManager/engine.py
|
- 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
|
|
|
@@ -28,6 +28,8 @@ import logging
|
|
|
|
import re
|
|
|
|
import Queue
|
2013-02-04 20:46:15 +01:00
|
|
|
import threading
|
|
|
|
+import traceback
|
2014-01-07 23:00:10 +01:00
|
|
|
+from subprocess import *
|
2013-02-04 20:46:15 +01:00
|
|
|
|
|
|
|
import libvirt
|
- 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
|
|
|
from virtinst import util
|
|
|
|
@@ -76,6 +78,7 @@ class vmmEngine(vmmGObject):
|
2013-11-26 22:23:05 +01:00
|
|
|
self.windowCreate = None
|
|
|
|
self.windowManager = None
|
|
|
|
self.windowMigrate = None
|
|
|
|
+ self.remote_install = None
|
|
|
|
|
|
|
|
self.conns = {}
|
|
|
|
self.err = vmmErrorDialog()
|
2014-02-28 15:58:33 +01:00
|
|
|
@@ -841,6 +844,7 @@ class vmmEngine(vmmGObject):
|
- 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
|
|
|
obj.connect("action-show-domain", self._do_show_vm)
|
2013-07-03 23:44:06 +02:00
|
|
|
obj.connect("action-show-preferences", self._do_show_preferences)
|
|
|
|
obj.connect("action-show-create", self._do_show_create)
|
|
|
|
+ obj.connect("action-show-create-vminstall", self._do_show_create_vminstall)
|
|
|
|
obj.connect("action-show-about", self._do_show_about)
|
|
|
|
obj.connect("action-show-host", self._do_show_host)
|
2013-11-26 22:23:05 +01:00
|
|
|
obj.connect("action-show-connect", self._do_show_connect)
|
2014-02-28 15:58:33 +01:00
|
|
|
@@ -881,11 +885,42 @@ class vmmEngine(vmmGObject):
|
2011-03-21 20:38:43 +01:00
|
|
|
self.windowCreate = obj
|
|
|
|
return self.windowCreate
|
2008-02-04 17:42:11 +01:00
|
|
|
|
2013-07-03 23:44:06 +02:00
|
|
|
- def _do_show_create(self, src, uri):
|
2011-03-21 20:38:43 +01:00
|
|
|
- try:
|
2011-09-20 17:08:57 +02:00
|
|
|
- self._get_create_dialog().show(src.topwin, uri)
|
2011-03-21 20:38:43 +01:00
|
|
|
- except Exception, e:
|
2011-09-20 17:08:57 +02:00
|
|
|
- src.err.show_err(_("Error launching manager: %s") % str(e))
|
2013-07-03 23:44:06 +02:00
|
|
|
+ def _vmmcreate_closing(self,signal,key):
|
|
|
|
+ self.windowCreate = None
|
|
|
|
+
|
|
|
|
+ def _do_show_create_vminstall(self, src, uri):
|
|
|
|
+ self._do_show_create(src, uri, True)
|
|
|
|
+
|
|
|
|
+ def _do_show_create(self, src, uri, use_vminstall=False):
|
2011-11-28 20:35:50 +01:00
|
|
|
+ if uri is None:
|
|
|
|
+ uri = default_uri()
|
2011-09-27 20:22:09 +02:00
|
|
|
+ conn = self._lookup_conn(uri)
|
2011-09-20 17:08:57 +02:00
|
|
|
+ do_remote = conn.is_remote()
|
2011-01-08 00:33:16 +01:00
|
|
|
+ if self.windowCreate == None or do_remote != self.remote_install:
|
2010-03-21 11:56:54 +01:00
|
|
|
+ try:
|
2013-07-03 23:44:06 +02:00
|
|
|
+ if do_remote or not use_vminstall:
|
2014-01-07 23:00:10 +01:00
|
|
|
+ self._get_create_dialog().show(src.topwin, uri)
|
- 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
|
|
|
+ self.remote_install = True
|
2010-12-20 22:07:40 +01:00
|
|
|
+ else:
|
2014-01-07 23:00:10 +01:00
|
|
|
+ args = ['/usr/bin/vm-install']
|
|
|
|
+ logging.debug("Launching: %s" % str(args))
|
|
|
|
+ p = Popen(args)
|
|
|
|
+ self.windowCreate = None
|
2011-01-08 00:33:16 +01:00
|
|
|
+ self.remote_install = False
|
2010-03-21 11:56:54 +01:00
|
|
|
+ except Exception, e:
|
2011-03-21 20:38:43 +01:00
|
|
|
+ src.err.show_err(_("Error launching manager: %s") % str(e),
|
|
|
|
+ "".join(traceback.format_exc()))
|
2008-04-12 21:33:47 +02:00
|
|
|
+ else:
|
2011-01-08 00:33:16 +01:00
|
|
|
+ if do_remote:
|
2011-09-27 20:22:09 +02:00
|
|
|
+ self.windowCreate.show(src.topwin, uri)
|
2011-01-08 00:33:16 +01:00
|
|
|
+ else:
|
2013-11-26 22:23:05 +01:00
|
|
|
+ message_box = Gtk.MessageDialog(None,
|
|
|
|
+ Gtk.DialogFlags.MODAL,
|
|
|
|
+ Gtk.MessageType.WARNING,
|
|
|
|
+ Gtk.ButtonsType.OK,
|
2011-01-08 00:33:16 +01:00
|
|
|
+ _("A new installation is already in progress.\n\nUse the YaST \"Create Virtual Machines\" utility for concurrent installations."))
|
|
|
|
+ message_box.run()
|
|
|
|
+ message_box.destroy()
|
2008-02-04 17:42:11 +01:00
|
|
|
|
2011-03-21 20:38:43 +01:00
|
|
|
def _do_show_migrate(self, src, uri, uuid):
|
|
|
|
try:
|