Commit Graph

271 Commits

Author SHA1 Message Date
Cole Robinson
fa250a76ef create: Make sure we properly cleanup customize window 2011-04-14 13:22:05 -04:00
Cole Robinson
3d8e6a9398 Set parent for all dialogs 2011-04-14 08:47:42 -04:00
Cole Robinson
f2781ee62a Properly cleanup all dialogs
On app close, all dialogs are properly cleaned up so there are no
dangling references and python can garbage collect.

While this isn't that important when the app shuts down, it ensures that
lifecycle changes while the app is running (vm start/stop/remove, conn
start/stop/remove) have the infrastructure to properly release resources.
2011-04-13 10:20:47 -04:00
Cole Robinson
efee2bf7b2 uihelpers: Don't store network objs in combo model
Causes issues with trying to reap virConnect values
2011-04-11 19:42:17 -04:00
Cole Robinson
e8a040ae83 create: Fix minor debugging typo 2011-04-09 18:49:37 -04:00
Gerhard Stenzel
89dbf1e7cf virt-manager: enable direct interface selection
The following patch adds support to select direct interfaces
when defining a virtual machine via virt-manager. Also remove
the unused show_manual_bridge.

Signed-off-by: Gerhard Stenzel <gerhard.stenzel@de.ibm.com>
2011-04-09 17:10:26 -04:00
Cole Robinson
6da0a95b57 create: Fix building guest when no network options are present 2011-04-07 17:11:10 -04:00
Cole Robinson
f1c41b0866 error: Use more consistent details reporting
Always try and report summary + "\n\n" + details
2011-04-06 11:52:26 -04:00
Cole Robinson
e0bc2563c7 error: Simplify basic show_err call
If no error details are specified, use the traceback from the most recent
exception. We were doing this in numerous callers anyways.
2011-04-06 11:22:03 -04:00
Cole Robinson
2a970f6252 create: Only show PXE warning if user actually selects PXE 2011-03-24 13:58:44 -04:00
Cole Robinson
7cdb519640 create: Make sure create window maintains a sane each time it is launched 2011-03-24 09:57:31 -04:00
Cole Robinson
321b4a2e03 create: Don't use SPICE if conn/hv doesn't support it 2011-03-24 09:42:34 -04:00
Marc-André Lureau
771387052e Add graphic type in preference dialog for new VM 2011-03-21 12:12:25 -04:00
Cole Robinson
9118f8c4a9 create: If we show a startup error, disable page forward via keyboard 2011-03-15 16:33:55 -04:00
Cole Robinson
d90a28d997 Improve wording if offering to reuse an existing storage path 2011-03-08 11:22:01 -05:00
Cole Robinson
e9f87a0e32 console: Don't require spicegtk-python, show error if not available 2011-01-07 14:59:31 -05:00
Marc-André Lureau
f2da834e1d Show console if SPICE enabled. 2010-11-12 17:05:48 +01:00
Cole Robinson
2a05f2b333 create: Mention KVM kernel modules if no install options are found. 2010-12-13 16:34:41 -05:00
Cole Robinson
0973e6c31a create: Don't traceback errors in host space tick 2010-12-13 16:12:55 -05:00
Cole Robinson
004623a886 configure: Allow specifying 'preferred' VM distro choices
The create wizard will then list these options first
2010-12-13 16:02:59 -05:00
Cole Robinson
677f73fca7 Run pep8 with check-pylint, fix the fallout 2010-12-10 11:47:07 -05:00
Cole Robinson
d0d20148f7 asyncjob: Simplify error reporting 2010-12-10 09:57:42 -05:00
Cole Robinson
9e0a96bd8f util: Simplify dup_conn functions 2010-12-09 15:45:05 -05:00
Cole Robinson
5c45358adc Remove 'config' passing from remaining classes/functions 2010-12-09 14:06:00 -05:00
Cole Robinson
e78e2da3f5 Use the a base class for all libvirt object classes 2010-12-09 12:37:48 -05:00
Cole Robinson
0fd57daca1 pylint: Check for unused variables, fix fallout 2010-12-09 11:22:35 -05:00
Cole Robinson
2dd81900fa Have UI classes share a baseclass 2010-12-08 17:26:19 -05:00
Cole Robinson
324e3cf1ed create: Fix adding default graphics device 2010-12-08 12:56:28 -05:00
Cole Robinson
8b371b6e22 Domain: Pass pre-parsed capabilities to virtinst objects
Saves us from continually refetching caps and parsing. Also, only refresh
connection caps when we launch the create wizard: changing caps shouldn't
be common, and are really only important when creating guests.
2010-12-08 12:17:14 -05:00
Cole Robinson
5320431d85 create: Don't overwrite nic/disk list if moving back after customize 2010-12-07 16:48:13 -05:00
Cole Robinson
091828a862 create: Don't revalidate if use selects 'no storage'
Use a new simple livecd mode from virtinst to help out here.
2010-12-07 16:17:19 -05:00
Cole Robinson
dffe228f32 create: Remember customized changes if install fails 2010-12-07 14:20:11 -05:00
Cole Robinson
93331b01db create: Set OS type == 'generic' if detection fails
Also, don't run detection when we launch the wizard, only when we
switch to install screen.
2010-12-04 13:22:04 -05:00
Cole Robinson
8ff71a65b7 create: Warn if network doesn't support PXE, if PXE selected 2010-12-04 12:28:44 -05:00
Cole Robinson
766ddc7bf6 create: Don't prompt about default storage pool if importing 2010-12-03 13:09:29 -05:00
Cole Robinson
c871cc1d45 create: Don't skip distro detection if URL is pasted
Track whether we have already detected the current URL, and if not, force
a detection when the user press 'forward'
2010-12-03 12:55:56 -05:00
Cole Robinson
1c3e7a1ea3 Remove some unneeded imports and old pylint workarounds 2010-11-30 15:01:02 -05:00
Cole Robinson
779dcdd824 Don't use old style __gobject_init__() 2010-11-30 14:40:49 -05:00
Cole Robinson
749b6cdc88 error: Simplify dialog init, remove a bunch of boilerplate 2010-11-30 14:33:21 -05:00
Cole Robinson
c98c471f24 create: Don't show storage page when using back button for import installs. 2010-06-02 10:07:34 -04:00
Cole Robinson
c96b2a3fbb create: Don't erroneously desensitize guest/dom options 2010-05-28 11:57:15 -04:00
Cole Robinson
f0520044a3 create: Drop needed caps check 2010-05-28 11:52:00 -04:00
Cole Robinson
159e4af12d create: Skip post-install restart if user destroys VM 2010-05-13 11:21:01 -04:00
Cole Robinson
85acd6ecab create: Ask to start default pool if it is inactive 2010-05-13 10:37:46 -04:00
Cole Robinson
a5f898f6bd Specify connection when building all virtinst devices 2010-05-05 16:06:46 -04:00
Marc Deslauriers
88ed04b9e8 Add conn info to virtinst.VirtualGraphics 2010-05-05 15:57:00 -04:00
Cole Robinson
34ff5bdf9d create: Add 'Import' option for an existing disk image 2010-03-22 18:15:18 -04:00
Cole Robinson
290c99110a Allow user to manually specify a shared device name
This allows using remote bridge devices where netcf isn't supported.
2010-03-20 18:35:47 -04:00
Cole Robinson
4d4f34e596 create: Break out storage helpers for use in addhw 2010-03-04 15:31:33 -05:00
Cole Robinson
5f6a59f118 create: Offer to reuse an existing disk image
If the disk image has the expected name /var/lib/libvirt/images/VMNAME.img,
and is unused by any guests, ask the user if they want to use it.
2010-03-03 18:16:08 -05:00