Commit Graph

215 Commits

Author SHA1 Message Date
Cole Robinson
108fa864d7 details: Disable send key menu entries if VM is paused 2009-11-28 20:13:55 -05:00
Cole Robinson
8b31e9afc3 details: Remember previous window dimensions
In order to do this, we can't auto resize the window to the VNC desktop
resolution when details is brought up. So, to make this desired behavior
easier, add a View menu item 'Resize to VM' which resizes the details window
to match the active desktop dimensions.
2009-11-28 20:07:01 -05:00
Cole Robinson
ed8e00bad7 details: Fix a useless traceback if removing a device from inactive VM 2009-11-25 12:58:19 -05:00
Cole Robinson
d257ead552 Make sure that persistent VM config is updated after successful hotplug. 2009-11-20 09:29:26 -05:00
Cole Robinson
5d57a2ff06 details: Confirm with user before removing a device
Allow this removal to be skipped using a similar 'Don't show this again'
option as the previous commit.
2009-11-18 16:46:36 -05:00
Cole Robinson
164d7eebd1 migrate: Storage connection list in the migrate dialog, not migrate menu. 2009-11-18 13:51:36 -05:00
Cole Robinson
64e5998ded Add mnemonics for various menu items.
Also, try to be a bit more consistent between manager and details menus.
2009-11-17 17:47:34 -05:00
Cole Robinson
f78fe3c089 Numerous UI tweaks.
- Don't use custom button content, because it doesn't abide typical button
  gtk button + image preferences. This forces us to set the button image in
  the code since glade can't handle it.

- Use widget mnemonics _everywhere_

- Tweak some default widget focus, and other misc things.
2009-11-17 15:06:15 -05:00
Cole Robinson
71c686a7a1 details: cpu: List per cpu pinning info, and allow changing it. 2009-11-16 11:36:13 -05:00
Cole Robinson
eb3027375d Don't enable migration for offline VMs. 2009-11-15 15:29:42 -05:00
Cole Robinson
291c6f629c details: Make cpu/mem/graphics/input refresh routines more readable. 2009-11-11 12:56:58 -05:00
Cole Robinson
d8e8430285 details: Always have the apply button showing.
Also, swap the order of remove and apply so remove is less likely to be
pushed by accident.
2009-11-05 15:22:00 -05:00
Cole Robinson
9fbcce7859 details: Allow changing video model of an existing device. 2009-11-05 14:59:11 -05:00
Cole Robinson
a7ceb7ed52 details: Allow changing disk readonly + shareable attributes. 2009-11-04 16:30:51 -05:00
Cole Robinson
6abf4f601e details: disk: Slim down information output
Also, use checkboxes for readonly + shareable in preparation for making them
editable.
2009-11-04 15:41:18 -05:00
Cole Robinson
d602b5f38b details: Allow changing clock offset value. 2009-11-04 08:46:09 -05:00
Cole Robinson
90a35cab48 details: Allow changing APIC and ACPI settings. 2009-11-04 11:09:41 -05:00
Cole Robinson
0559c498e3 details: Break out wrapper for hotplug/config update routines
All XML updating routines follow a similar pattern or 'try hotplug, try
redefine, report error'. Break out a helper function for all this and use
it for security relabelling, media change, memory and vcpu hotplug.
2009-11-04 13:23:22 -05:00
Cole Robinson
339e568897 domain: Split cdrom media change into hotplug and define pieces.
This allows us to check for hotplug errors, but still define the change
to take place after the next reboot.
2009-11-03 16:15:18 -05:00
Cole Robinson
dc877783a5 domain: Don't set disk path to '-' if empty, let details do that. 2009-11-03 16:09:03 -05:00
Cole Robinson
d8f264da92 details: Lots of code reorganization.
Group all relevant functions into documented blocks, rather than leave them
scattered all along the code. Turn some methods into internal functions.
2009-11-04 13:18:14 -05:00
Cole Robinson
82855b54c0 details: List ACPI, APIC, and clock offset values.
These will be made editable shortly, but for now just show their values.
2009-11-04 13:16:38 -05:00
Cole Robinson
a7d4b6978d details: Clean up and comment __init__ 2009-11-02 11:21:50 -05:00
Michal Novotny
1c3766cbfe details: Lookup product/vendor name for host device details. 2009-11-04 10:36:38 -05:00
Cole Robinson
8af7df1b79 Fix setting VCPUs and cpuset. 2009-11-01 16:05:46 -05:00
Cole Robinson
9520a7cc88 details: Break out VNC + console pages to a separate class.
The details class is getting pretty big, so split out the VNC functionality
into a separate class (like it was many moons ago).

The split isn't as clean as it should be, but things work and readability is
greatly improved. If we ever add support for a different viewer widget (rdp
or spice?) we would need to do something similar anyways.
2009-10-30 13:25:27 -04:00
Cole Robinson
26535026b1 Refactor cdrom insert/eject routines.
We were doing some hacky stuff behind the scenes, removing and readding a
new device to the XML when we could just edit in place. Fix up these issues
(should be an effective nop).
2009-10-28 16:38:09 -04:00
Cole Robinson
11358820b0 Reorganize domain methods to wrap all virDomain calls.
Explicitly discourage direct access to the virDomain instance.
2009-09-25 09:52:03 -04:00
Cole Robinson
c3dfeeb66a details: List console vs. details choice in View menu
This way, if the user hides the toolbar, the same functionality is still
available.
2009-10-21 12:01:53 -04:00
Cole Robinson
3dea0fb098 details: Don't show console tabs after going fullscreen. 2009-10-21 10:11:42 -04:00
Cole Robinson
2f3783a35d details: Clean up VM state updating 2009-10-21 10:09:09 -04:00
Cole Robinson
b4eb66aeb2 Hide access to help docs: they are out of date to the point of uselessness. 2009-09-29 14:25:37 -04:00
Cole Robinson
010fec8600 details: Make sure 'remove' doesn't enter permenant insensitive state.
If we selected a PS2 mouse, the refresh function would disable the 'remove'
button. Since nothing else explictly enabled it, it would be stuck like that.
2009-07-28 21:24:02 -04:00
Cole Robinson
8aa9275dd3 details: Remove console/details tabs, use toolbar buttons instead.
Serial consoles are part of the main console tab, which can be chosen
from 'View->Consoles'.
2009-07-28 09:40:43 -04:00
Michal Novotny
7277d28c46 CPU Pinning support
Virt-manager doesn't consider CPU pinning settings in the Processor tab yet so
this is the patch to provide CPU pinning support for virt-manager. It's using
only CPU definition for libvirt itself and it doesn't support CPU pinning for
domains that are currently in running state since this feature will be rarely
used for already running domains in my opinion.
2009-07-27 22:55:11 -04:00
Cole Robinson
387045636a manager: Move button toolbar to top of the window.
A toolbar at the top is much more in line with existing UI convention, and is
more intuitive. Delete is dropped from the upfront buttons (since this likely
isn't a common operation), and buttons for shutdown and pause are added.
2009-07-26 16:15:05 -04:00
Cole Robinson
e33018602d Always enable CPU and Memory stats polling.
Not sure why I even added this in the first place, we fundamentally can't
avoid polling the requisit info. So rip it out with extreme prejudice.
2009-07-26 16:09:46 -04:00
Cole Robinson
342a5b2450 Add 'Clone VM' wizard. 2009-07-26 15:54:14 -04:00
Cole Robinson
27eeef93d9 Import new icons for VMs, VM status, and some devices. 2009-07-22 12:38:56 -04:00
Cole Robinson
631b7b9bed Reimplement current graph widgets in python. 2009-07-22 10:21:33 -04:00
Cole Robinson
27916ad571 Use icon theme icons rather than gtk stock icons.
This allows us to get many more relevant icons (mouse, tablet, sound card).
Also, reorganize the virtual network and hardware lists to have icons appear
first in the row.
2009-07-20 15:09:32 -04:00
Cole Robinson
32561b2d89 cleanup: Use self.topwin in details. 2009-07-20 14:52:53 -04:00
Cole Robinson
3936943a63 Allow changing vcpu count in the persistent config.
Changes similar to what was done with memory: try cpu hotplug, and always
follow up with XML definition.
2009-07-14 21:22:18 -04:00
Cole Robinson
69b6bea472 List all VM graphics devices (since libvirt supports more than 1 now) 2009-07-14 19:47:18 -04:00
Cole Robinson
b3746d9623 Teach serial console to deal with a changing pty path. 2009-07-14 19:42:16 -04:00
Cole Robinson
6658f4fe40 Don't list <console> tag in serial list if primary console is not PTY. 2009-07-14 19:25:17 -04:00
Cole Robinson
0eef04170c Make sure we have updated XML when viewing VM details. 2009-07-14 17:06:37 -04:00
Cole Robinson
a2d49aee87 Fix several broken hacks in migration code.
Key of URI in the migration list, not the short hostname we show: we can
have multiple connections with the same hostname, and it confuses things. This
allows us to drop the migrate invocation differences for the xen driver,
so things work as they should.
2009-07-14 15:59:57 -04:00
Cole Robinson
b4b5a2b138 vmmDomain: cleanup xml handling functions.
Separate the public interfaces (get_xml and get_xml_to_define) from the
private interfaces. Clean up usage where we violated this.
2009-07-11 21:22:30 -04:00
Cole Robinson
10be2d2a45 Support viewing and removing VM 'video' devices. 2009-07-09 14:35:55 -04:00