Commit Graph

1172 Commits

Author SHA1 Message Date
Cole Robinson
b4a9322839 Re-use created disk if retrying a VM install (fixed _again_) 2009-07-06 16:49:47 -04:00
Cole Robinson
e0f0b9a930 Support pool building for logical pools (now allowed by virtinst). 2009-07-02 13:13:17 -04:00
Cole Robinson
a87933c66c Use proper XML editting when setting boot device.
The current method is ugly and not future proof if extra options are
ever added to the boot list (which is likely).
2009-07-02 12:11:28 -04:00
Cole Robinson
fb7a999a81 Ensure mem/maxmem changes affect persistent config.
Split the Domain API into two pieces: 'hotplug memory' and 'define memory'.
This allows us to catch hotplug errors and inform the user.
2009-07-02 10:49:06 -04:00
Cole Robinson
705b50419a Add internal 'redefine' API for domain class.
Wraps up all the common code that would be easy to get wrong for new
xml altering functions.
2009-07-02 12:46:39 -04:00
Cole Robinson
6d50cb807d Add an 'info popup' helper, similar to the validation error box. 2009-07-02 12:45:48 -04:00
Cole Robinson
02fc09e0a8 Don't show startup error for SystemExit (used by --help). 2009-06-26 14:05:27 -04:00
Cole Robinson
1bd9c50942 Make sure we force a tick update if the domain XML config changes. 2009-07-02 10:01:16 -04:00
Cole Robinson
b87d51cda5 Remove some useless debugging and noisy logging. 2009-07-02 12:44:53 -04:00
Cole Robinson
dc17b21b9a Don't duplicate connections for libvirt 0.6.0 and later.
Newer libvirt doesn't require it, and it only causes issue (filling up libvirt
connect queue, prompting for auth, flooding the debug log, etc.).
2009-07-01 14:59:29 -04:00
Cole Robinson
71401272f5 Enable host device attachment for xen (libvirt now supports it). 2009-07-02 12:43:41 -04:00
Cole Robinson
bbc65216db Refactor OpticalHelper functionality.
Add helper functions to properly set up the cdrom combo widgets. Separate
the dbus polling from UI editting: eventually we will get some of this info
from libvirt hostdev APIs, and this will help.
2009-07-02 12:43:08 -04:00
Cole Robinson
8d9ce45ffd Fix up some choose-cd UI irregularities. 2009-07-02 12:42:41 -04:00
Cole Robinson
40dd22b1f6 Don't duplicate connections for libvirt 0.6.0 and later.
Newer libvirt doesn't require it, and it only causes issue (filling up libvirt
connect queue, prompting for auth, flooding the debug log, etc.).
2009-07-01 14:59:29 -04:00
Cole Robinson
33bf8f6372 Separate local net device polling from connection initialization.
Currently we connect to dbus and poke sysfs to find local net devices and
bridges: unfortunately we do this everytime _any_ connection object is
initialized. This floods the debug logs, and is complete overkill, since
net devices are associated with the host and not a connection.

Run the initialization once (at app startup) and carry around only one
instance of the polling code.
2009-07-01 14:59:13 -04:00
Cole Robinson
c0c3cf0d1a Don't reinvent (poorly) gconf.escape_key and friends. (Mark McLoughlin)
Was causing errors with storing per-connection preferences for remote
URIs with '+' in them.
2009-07-01 14:51:41 -04:00
Cole Robinson
97f6cd8fdb Remove readonly connection fallback.
If opening a connection R/W fails, we currently fallback to readonly. This
isn't very transparent and is likely not what the user wants (full R/W or
a useful error message why not). This has caused a lot of confusion and
bug reports, so let's drop it.
2009-07-01 11:13:30 -04:00
Cole Robinson
ed26fe9bc7 util.browse_local: Fix bug when storing directory in gconf (Michal Novotny) 2009-06-25 22:12:09 -04:00
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
cd24a71013 Update TODO to point to online roadmap. 2009-06-18 10:54:21 -04:00
Cole Robinson
4b49eb0929 Add HACKING file. 2009-06-18 10:53: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
eea13a648b Updated translations. 2009-06-16 21:22:58 -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
60fecb25b0 Previous patch was actually from Laurent Léonard: update AUTHORS. 2009-06-04 16:28:40 -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
a4b45c02bf Fix 'operating' typo in .po files. 2009-05-21 11:18:24 -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
6e86f6b403 Update man page bug reporting info and option listing. 2009-05-12 10:35:43 -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