Commit Graph

1056 Commits

Author SHA1 Message Date
Michal Novotny
fd480885bc Make virt-manager remember last used paths
This patch makes virt-manager remember last used paths for disk images, saved
snapshots, restored snapshots, media paths and also screenshot paths not to
bother users with changing paths from the default location per HV technology.
Useful when installing multiple domains and having all the media/image files
in non-default locations.
2009-06-23 19:30:12 -04:00
Cole Robinson
f918e05d31 Document util.browse_local options, remove an unused one. 2009-06-22 14:24:09 -04:00
Cole Robinson
550db73928 Use storage broswer for CDROM insert and install media. 2009-06-18 10:40:37 -04:00
Cole Robinson
735f009169 Change storage browser to be a dialog, not a window.
It is essentially a glorified file chooser, so give it dialog behavior.
(like associating with a parent window, and being able to be the top window
above other dialogs like the CD chooser).
2009-06-18 10:39:55 -04:00
Cole Robinson
56b523e0f9 Update 'About' copyright date. 2009-06-18 10:39:20 -04:00
Cole Robinson
3d6e0c7121 Remove lots of XML parsing duplication.
Break out the common XML parsing idiom into a utility function, and
convert the domain class to use it.
2009-06-18 10:38:15 -04:00
Cole Robinson
7a773c9558 Fix add usermode network device via Add Hardware wizard. 2009-06-17 11:56:45 -04:00
Cole Robinson
e3d0ce2562 Fix current mem vs. max mem spin button interaction.
Switch max mem to abide current mem value, not the other way around: most
people are only interested in the current allocation.

Also, tweak the spin button climb rate and step size to be a bit more useful.
2009-06-16 18:04:29 -04:00
Michal Novotny
9e46f8bdb5 Make Processor tab item in VM details show correctly
The Processor tab in VM details was not showing at all because of exception.
The exception occured everytime the tab was selected because of call to non
existing function get_type() that has been renamed to get_hv_type() in the
newest version of virt-manager's code by revision 1135.
2009-06-16 15:36:10 -04:00
Cole Robinson
050677047e Correctly handle non sparse request in VM wizard. (Mark McLoughlin)
We currently have it backwards, so a sparse request actually asks for
nonsparse. We didn't see this much, since until recently virtinst wasn't
allowing nonsparse volume allocation.
2009-06-16 15:31:18 -04:00
Cole Robinson
01ec2efdfc Fix Add Hardware summary for VNC keymap value (Guido Gunther) 2009-06-04 14:45:42 -04:00
Cole Robinson
6c8302a436 Don't set paravirt disk defaults in create wizard: virtinst now handles it. 2009-06-04 14:42:33 -04:00
Cole Robinson
54c7719c92 List HV, Arch, Emulator in VM->Details->Overview 2009-05-12 13:09:08 -04:00
Cole Robinson
1bcd79d46b Rename VM domain get_type to get_hv_type. 2009-05-12 11:43:07 -04:00
Cole Robinson
653a23d79d Log capabilities XML at connection startup. 2009-05-12 11:12:37 -04:00
Cole Robinson
5ff3d7aa01 Make --debug imply --no-fork 2009-05-12 10:34:02 -04:00
Cole Robinson
d954dcc918 Fix changing 'arch' in VM create wizard.
Previously it never did anything :(
2009-05-11 13:18:14 -04:00
Cole Robinson
92ea5be08d Mark some strings as translatable (Emmanuel Lacour) 2009-05-11 12:24:15 -04:00
Cole Robinson
58bc9af45d Force gettext init for glade files (Emmanuel Lacour) 2009-05-11 12:19:24 -04:00
Cole Robinson
62de590fbb Clean up old VM gconf entries on connection startup.
If a VM has disappeared from a connection since the last time we connected,
remove it's old gconf preferences so we don't slowly pollute the db.
2009-05-11 12:05:46 -04:00
Cole Robinson
3ad177128c Keep a list of used install ISO paths.
Store these in gconf on a per hostname basis, since a local path likely
isn't relevant for a connection on another host.
2009-05-11 11:00:03 -04:00
Cole Robinson
b619961f29 Remember VNC scaling setting for each VM.
Uses the newly added per-VM preference infrastructure
2009-05-11 10:45:25 -04:00
Cole Robinson
d9860d4a61 Add Per VM/Conn/Hostname preference tracking infrastructure.
We add a new gconf level for per connection and per VM preferences, at

/apps/virt-manager/connection_prefs/{URI}/vms/{UUID}

Hostname specific prefs are stored at:

/apps/virt-manager/connection_prefs/hosts/{HOSTNAME}

The URI does a simple s|/|-|g to simplify things a bit. If a VM specific
preference hasn't been set, we use the global preference.
2009-05-11 12:37:47 -04:00
Cole Robinson
02c62a572f Fix UI screwiness with named text entries in ComboBoxEntrys
Worked at some point, but now everytime the vmm-create file is saved in
a new glade version (as on rawhide), the naming gets wiped out and the
wizard won't even launch.
2009-05-11 10:17:52 -04:00
Cole Robinson
1e603974bd Clean up some pylint warnings on rawhide. 2009-05-11 10:13:32 -04:00
Daniel P. Berrange
0b2184279a Extend VNC auth handling to cope with fetching a username too & record username in gconf 2009-05-07 19:22:33 +01:00
Daniel P. Berrange
c2e336c0bc Fix check for local pixmap path 2009-05-06 16:47:10 +01:00
Daniel P. Berrange
402111e851 Fix console window resize 2009-05-06 16:46:55 +01:00
Cole Robinson
d05e004240 Revert 1108: not all nc versions have -q option (including Fedora). 2009-04-23 11:29:41 -04:00
Cole Robinson
ea17df3c59 Remove some pylint. 2009-04-22 16:12:26 -04:00
Cole Robinson
ae1f7b2560 Don't try to libvirt/images if we don't have access to it. 2009-04-22 15:44:07 -04:00
Cole Robinson
ec8e76b870 Remove 'path' field from storage volume list: it's mostly redundant. 2009-04-22 16:06:34 -04:00
Cole Robinson
35d25f9db7 Define migrated VM on destination connection 2009-04-21 14:46:46 -04:00
Cole Robinson
123d2f8db6 Remove debugging code from migrate routine, and actually call 'migrate' 2009-04-21 14:46:26 -04:00
Cole Robinson
69b292dadf Fix 'operating' typo in create wizard. 2009-04-21 13:03:24 -04:00
Cole Robinson
baf1cb0efe Close connection if 'tick' hits an error (e.g. libvirt crashes). (Dan Walsh) 2009-04-20 12:56:07 -04:00
Cole Robinson
e40410d944 Let netcat quit on EOF (Guido Gunther) 2009-04-20 12:20:36 -04:00
Cole Robinson
e4cecfda22 Fix a comment typo. 2009-04-20 11:47:02 -04:00
Cole Robinson
0f608da66c Use MB instead of GB for pretty memory < 10GB. (Gerrit Slomma) 2009-04-20 11:46:37 -04:00
Cole Robinson
d85358067c Fix incorrect vcpu capping in create wizard.
Cap was always 10 less than we intended. Apparently spinbutton page_size != 0
is deprecated, yet is the default set by glade3? Schweet.
2009-04-06 12:22:44 -04:00
Cole Robinson
368dcfe05a Have migration use typical progress dialog. 2009-04-03 16:06:46 -04:00
Cole Robinson
3b6c2ffe1f Change 'choose cd' button ordering. 2009-04-03 15:38:41 -04:00
Cole Robinson
3f26e4a516 Reorder buttons in the delete dialog. 2009-04-03 15:35:21 -04:00
Cole Robinson
b9760f3aa5 Improve uri connection error message formatting. 2009-04-03 14:58:51 -04:00
Cole Robinson
1d58e66450 Populate details migrate menu on demand. 2009-04-03 14:18:40 -04:00
Cole Robinson
65f1f52a79 Fork off connection when 'restoring' domain. 2009-04-03 14:15:25 -04:00
Cole Robinson
dd50d5e141 Check 'defined outside init' w/ pylint script, fix errors. 2009-04-03 14:15:23 -04:00
Cole Robinson
329113afe3 Use dup_conn in delete dialog. 2009-04-03 14:15:22 -04:00
Cole Robinson
f9680aa8e0 Store errors in asyncjob instances.
This allows us to remove all the hackish global error reporting variables
whenever we run an async job.
2009-04-03 14:15:15 -04:00
Cole Robinson
7b24154f19 Don't leave app hanging around if user closes it while an async job is in
progress.
2009-04-03 14:15:14 -04:00
Cole Robinson
8bf874c2e7 Pull necessary info from vm object when building migrate list. 2009-03-23 17:38:25 -04:00
Cole Robinson
742bf5465e Log info if connection doesn't support storage management. 2009-03-13 14:37:57 -04:00
Cole Robinson
170c6cd4a7 Fix default 'New VM' install options on older xen connections. 2009-03-13 14:37:15 -04:00
Cole Robinson
2e616066f3 Handle old style 'console' tag in 'Connect to serial' list. 2009-03-13 14:35:55 -04:00
Cole Robinson
445f07eaec Don't show error dialog on KeyboardException. 2009-03-13 14:35:28 -04:00
Cole Robinson
fd9fa7f0ad Better error checking if we can't set a tooltip. 2009-03-13 14:33:52 -04:00
Cole Robinson
d49d0778c5 Remove mem/cpu hotplug checks.
We can't reliably determine whether it's supported or not, so just leave
the error reporting up to libvirt.
2009-03-13 13:51:35 -04:00
Cole Robinson
bdf1801123 Check what XMLDesc flags the connection supports before using them. 2009-03-13 13:13:24 -04:00
Cole Robinson
aa8711b5ce Fix xml parsing for old style 'console' xml. 2009-03-13 11:21:07 -04:00
Cole Robinson
a8a19966c4 Fix default selection in 'Add Connection' to be dependent on what's available. 2009-03-09 22:58:05 -04:00
Cole Robinson
e0833c00ee Fix some create wizard cpu logic. 2009-03-09 22:42:17 -04:00
Cole Robinson
df034321d1 Update authors info. 2009-03-09 17:02:58 -04:00
Cole Robinson
4c38fb2f31 Add new application icon (Mike Langlie, Jeremy Perry) 2009-03-09 16:58:55 -04:00
Cole Robinson
c18068ccbd Fix missing import. 2009-03-09 16:24:27 -04:00
Cole Robinson
97e9f52f28 Show a helpful error if we couldn't determine a default connection (as when qemu, kvm, or xen isn't installed) 2009-03-09 16:22:03 -04:00
Cole Robinson
933d0130e4 Fix conn uri lookup for domain migration. 2009-03-09 16:21:53 -04:00
Cole Robinson
ebe91d6ce2 Attempt to use krb5-auth-dialog for libvirt auth (if applicable) (Guido Gunther) 2009-03-09 16:21:32 -04:00
Cole Robinson
01de80f203 Check if we can resolve avahi '.local' host names, and if not, strip it. 2009-03-09 16:21:21 -04:00
Cole Robinson
a590888ef6 'Add Physical Host Device' wizard for existing guests. 2009-03-09 16:20:23 -04:00
Cole Robinson
b1f69cffd8 Add libvirt storage aware file browser.
Hook it up to the New VM and Add Hardware wizards, all storage browsing.
2009-03-09 16:19:39 -04:00
Cole Robinson
c83113e79b Storage aware 'Delete VM' dialog. 2009-03-09 16:17:09 -04:00
Cole Robinson
f9dfe4acab New 'Create VM' wizard. 2009-03-09 16:16:45 -04:00
Cole Robinson
a650c6c6ec Better logging with connection failures. 2009-03-09 11:54:46 -04:00
Cole Robinson
09be6d1702 Centralize connection duplication, and always use openAuth. 2009-03-09 01:04:29 -04:00
Cole Robinson
e8aa74000e Fix VNC password entry activate listener. 2009-03-09 00:49:41 -04:00
Cole Robinson
74418de62d If altering a running domain, only change the inactive XML config. 2009-03-09 00:49:31 -04:00
Cole Robinson
7a7f407f29 Don't poll disk + net stats if vm isn't active. 2009-03-09 00:48:23 -04:00
Cole Robinson
731d97a45c Some host details UI cleanup. 2009-03-08 15:34:17 -04:00
Cole Robinson
ab7df76617 Clean up pool and net listing in host details.
Break out pool functions, so they can be re-used by a storage browser dialog.
2009-03-08 15:34:15 -04:00
Cole Robinson
ee159418b5 Clean up 'VM Restore' functionality.
Actually catch error messages. Don't check save file header magic when
libvirt already does it for us.
2009-03-08 15:31:15 -04:00
Cole Robinson
390f308819 Add option to set 'Create Volume' wizard as modal. 2009-03-08 15:16:47 -04:00
Cole Robinson
dcd07970f0 Break all FileBrowser calls out into a util function. 2009-03-08 15:14:00 -04:00
Cole Robinson
2e3b9b7758 Don't harmlessly traceback in try_login if VM is deleted. 2009-03-08 15:11:56 -04:00
Cole Robinson
782406b222 Add domain api for invalidating and updating cached xml.
Use this be a bit more intelligent with Details hardware list: only update
list if domain xml has changed. Don't even check for new xml if the details
window isn't present.
2009-02-28 19:27:20 -05:00
Rob James
05a0c51217 Make properties in the details dialog selectable 2009-02-28 17:28:00 -05:00
Cole Robinson
dbf5a43902 Fix overwriting VNC password when updating VM xml. 2009-02-28 17:21:41 -05:00
Cole Robinson
caa149823f Submit password if the entry box is activated. 2009-02-28 17:21:41 -05:00
Cole Robinson
1472a3c0aa Fix hal device removal callback to not spew tons of errors. 2009-02-28 17:21:41 -05:00
Cole Robinson
fafe136f33 Actually pull 'shareable' info from disk xml. 2009-02-28 17:21:41 -05:00
Cole Robinson
76e44d2ed1 Update --debug output to print file and line numbers. 2009-02-28 17:21:41 -05:00
Cole Robinson
300456d1ff Fix VNC widget to screen if fullscreen, for large VM resolution (Guido Gunther) 2009-02-23 19:02:27 -05:00
Cole Robinson
f5448f87e7 Add global option for VNC scaling: vm details defaults to that. 2009-02-23 18:50:47 -05:00
Cole Robinson
7ce13ad36a Change VNC scaling options to 'Always', 'Fullscreen only', or 'Never' 2009-02-23 18:50:27 -05:00
Cole Robinson
229d31be04 opticalhelper: Select new cdrom media if inserted 2009-02-09 22:34:56 -05:00
Cole Robinson
a5687e0408 opticalhelper: Display same combo label for initial and add/remove cdrom devs. 2009-02-09 22:06:13 -05:00
Cole Robinson
e20f2b71bf Add gconf listeners for sound preferences. 2009-02-12 13:32:55 -05:00
Cole Robinson
a0852bc422 Fix regression for pre existing vm and stats preferences not keeping new values. 2009-02-16 19:04:44 -05:00
Cole Robinson
012f0c1506 Use proper border and box spacing for 'Add Hardware' dialog. 2009-02-15 21:40:21 -05:00
Cole Robinson
4573f493e2 Fix sending ctrl-alt-del and ctrl-alt-backspace. (Tomohiro Takahashi) 2009-02-15 21:25:43 -05:00
Cole Robinson
70bd947c74 Don't use yes/no dialog for sparse size warning (Guido Gunther) 2009-02-15 21:20:14 -05:00
Cole Robinson
c6a54c143f Select first list entry in the manager on app startup. 2009-02-15 18:29:29 -05:00
Cole Robinson
f72020a0e2 Make manager vm list have input focus on startup. 2009-02-15 17:37:53 -05:00
Cole Robinson
3adb736c46 Select any connection added to the manager list. 2009-02-15 17:36:36 -05:00
Cole Robinson
41861c7119 Break out VM->Overview into two 'Details' list entries: Overview and Performance. 2009-02-09 14:55:18 -05:00
Cole Robinson
f6069284b6 Don't drop .local for zeroconf (Guido Gunther) 2009-02-09 09:56:23 -05:00
Cole Robinson
8f90cea9ee Remove unnecessary hide_all calls (Vitaly Mayatskikh) 2009-02-06 14:12:24 -05:00
Cole Robinson
8bd35ee945 Fix up storage model alignment in add hardware. 2009-01-26 13:02:50 -05:00
Cole Robinson
aa5c82ff46 Fix some device add/remove reorg fallout. 2009-01-26 12:59:41 -05:00
Cole Robinson
3c587e9dda Wrap all tooltip calls so we don't fail on older gtk (i.e. RHEL5) 2009-01-26 11:12:43 -05:00
Cole Robinson
c5c6aa8944 Attempt a full R/W connection regardless of polkit: only try RO if that connecti
on fails (Michael Marineau)
2009-01-26 11:10:39 -05:00
Cole Robinson
45d9aaa44a Fix up 'login' button for password protected vnc (Radek Hladik) 2009-01-26 10:17:33 -05:00
Cole Robinson
b73c3da1e5 Unmark useless strings as translatable. 2009-01-26 09:44:54 -05:00
Cole Robinson
9be6f6ef67 Show pool-specific explanations for the different parameters in the Create Pool wizard.
We pull the doc from virtinst's storage API.
2009-01-25 15:41:44 -05:00
Cole Robinson
524c73325c Make default URI determination a bit more robust. 2009-01-24 15:58:40 -05:00
Cole Robinson
e0ee7ebe60 Update pointer grab notification (Richard Laager) 2009-01-24 15:03:53 -05:00
Cole Robinson
07c93da1b9 Use a synchronous error dialog if reporting a startup error, so the user can actually see it. 2009-01-24 14:29:41 -05:00
Cole Robinson
cd121ff60a Remove last uses of old pause and run icons. 2009-01-24 14:28:59 -05:00
Cole Robinson
9fcf867e94 Throw clean error is user doesn't specify a physical cdrom device for installation. 2009-01-24 13:46:33 -05:00
Cole Robinson
295f776630 More UI tweaks (Richard Laager) 2009-01-23 16:34:33 -05:00
Cole Robinson
4e34fb71ff Update 'New VM' wizard to clarify that a shared device == bridge. (James Ralston) 2009-01-23 15:21:05 -05:00
Cole Robinson
d0e4dbd791 Remove 'iso' filter for install media browser. 2009-01-23 15:11:03 -05:00
Cole Robinson
8ae867c6e8 Mark a string as translatable. 2009-01-23 14:41:18 -05:00
Cole Robinson
bf93dfa2b3 Give a clear error if no iso path is entered. 2009-01-23 12:09:54 -05:00
Cole Robinson
37f436300f List, display info about, and enable removing VM host devices. 2009-01-22 17:00:38 -05:00
Cole Robinson
05cbb24d97 Implement 'Add Sound Device' wizard. 2009-01-22 17:00:26 -05:00
Cole Robinson
a7fe46d5bf Allow specifying 'model' when adding a net device to an existing VM. 2009-01-22 17:00:10 -05:00
Cole Robinson
9045b04119 Make all error dialogs non-modal. 2009-01-21 16:28:54 -05:00
Cole Robinson
fb412dd60b Rename host 'Storage Pools' tab to just 'Storage' 2009-01-21 10:55:00 -05:00
Cole Robinson
40709676ae Add --debug option to print debug information to the command line. 2009-01-19 15:50:32 -05:00
Cole Robinson
d2fe79fa03 Fix regression in cset 989. 2009-01-19 15:48:21 -05:00
Cole Robinson
4bbcfad653 Factor out some duplication when rescanning hardware list. 2009-01-15 11:17:30 -05:00
Cole Robinson
57f991757e More device add/remove backend cleanup and improvements. 2009-01-15 11:15:04 -05:00
Cole Robinson
7bd4da9acc Try to make some sense of out details device list/removal backend organization. 2009-01-15 11:01:24 -05:00
Cole Robinson
85bac893aa Remove hardcoded hotplug checks, differ to libvirt instead. 2009-01-15 10:13:37 -05:00
Cole Robinson
017a44243e Centralize some device listing work, and rename device variables to be consistent. 2009-01-15 11:23:23 -05:00
Cole Robinson
6cf2fbbc7e Don't throw exception if we try to reopen an existing vnc tunnel. 2009-01-12 17:05:16 -05:00
Cole Robinson
c8f19ab87b Rename variable to be more descriptive. 2009-01-15 09:43:37 -05:00
Richard Laager
8216658a12 Change "Local VM" and "Remote VM" to "Local virtual machine" and
"Remote virtual machine".  To do this, small changes had to be made to
the layout and Glade rewrote the whole file.
2009-01-12 09:40:41 -05:00
Richard Laager
e5b34e7597 Eliminate the unnecessary "Autostart VM" label by combining it with the
heading
to create a single checkbox labeled "Start virtual machine on host boot up".
2009-01-12 09:24:55 -05:00
Richard Laager
33e90fa2a7 Various string changes to improve consistency, usability, and HIG compliance. 2009-01-12 09:22:35 -05:00
Cole Robinson
0d6708edac Hook up new global stats enable/disable work. 2008-12-17 15:27:06 -05:00
Cole Robinson
b17442a876 Revamp preferences dialog.
More extensible design, hopefully will facilitate adding more options.
Add options to disable stats reporting by type (cpu, mem, disk, net), but
don't hook them up yet.
2008-12-17 15:27:06 -05:00
Cole Robinson
eb8e4b9af7 Don't needlessly prevent using remote block devices for storage. 2008-12-11 15:41:01 -05:00
Cole Robinson
1a35560847 Don't log countless exceptions if can't launch notification popup. 2008-12-08 13:17:48 -05:00
Cole Robinson
f702f68b4e Ignore SIGHUP if we fork off, otherwise a dropped serial console kills the whole app. (bz 470548) 2008-12-08 11:25:53 -05:00
Cole Robinson
9ffee40675 Set page_size = 0 for all Spin Buttons to silence a deprecation warning on F10. 2008-12-08 11:14:54 -05:00
Cole Robinson
31f838c0b1 Fix spelling typo. 2008-12-07 16:32:32 -05:00
Cole Robinson
08dac49b2c Have 'Details' toolbar abide global toolbar button preference (bz 452405) 2008-12-06 23:08:52 -05:00
Guido Günther
55e03b70eb Allow different username for <hv>+ssh:// 2008-12-06 23:06:28 -05:00
Cole Robinson
1f23c56779 Don't sort virtinst os lists, they now come presorted. 2008-12-06 23:06:20 -05:00