Cole Robinson
f8424c4002
console: Don't hardcode port 22 for ssh, defer to site default
2009-12-01 20:38:13 -05:00
Cole Robinson
55f6525408
virt-manager.py: Call set_prgname before import gtk
...
Some recent rawhide versions seem to have an implicit set_prgname call when
importing gtk, so make sure we get ours in before it.
2009-12-01 16:34:51 -05:00
Cole Robinson
b1c58dfa95
mediadev: Support media_label nodedev property
2009-12-01 16:33:58 -05:00
Cole Robinson
99ad626728
create: Also check installer scratchdir perms if required.
2009-12-01 12:41:45 -05:00
Cole Robinson
c4db9569e8
Use check_path_search_for_qemu
...
Used in create wizard, addhw, and choosecd.
2009-12-01 12:35:04 -05:00
Cole Robinson
86e955b30d
uihelpers: Add check_path_search_for_qemu helper
...
This can be used by various UI pieces to determine if the requested
disk/install path is accessible by the user libvirt launches qemu processes
as. We currently cannot programmatically determine what this user is, so
make it easy for distros to hardcode.
2009-12-01 12:23:19 -05:00
Cole Robinson
47e1a1826e
createnet: Allow specifying <forward mode='route'/>
2009-12-01 11:49:08 -05:00
Cole Robinson
51c9dce24b
Allow using node device APIs for CDROM enumeration.
...
One piece of info libvirt doesn't provide for us in the media label name,
other than that we have feature parity.
2009-11-30 16:16:43 -05:00
Cole Robinson
5d9d6a6fc4
connection: Only attempt to talk to HAL if absolutely required.
2009-11-30 13:05:35 -05:00
Cole Robinson
085f2de8f0
Show netdev and optical errors in UI.
...
Take the error from the vmmConnection object, and show where appropriate in
various UI locations.
2009-11-30 12:51:25 -05:00
Cole Robinson
12e6d6c8bd
Expose optical signals through connection object.
...
Connection object will get this info from either halhelper or libvirt (not
implemented yet).
2009-11-30 11:56:41 -05:00
Cole Robinson
30dbbcda56
mediadev: Associate media-added/removed signals
...
Rather than have these come from halhelper, push them to users via mediadev,
since this will be useful for non-hal backeneds (libvirt)
2009-11-30 10:50:04 -05:00
Cole Robinson
8ab60836a0
halhelper: Don't track any state
...
Tracking state is largely needless, so drop it. Should be a no op
2009-11-30 10:12:45 -05:00
Cole Robinson
837ed55501
Merge NetdevHelper and OpticalHelper into new class HalHelper
...
Provides all the signals we need from the previous two classes.
2009-11-30 16:25:39 -05:00
Cole Robinson
18d331a241
opticalhelper: Clean up signals
2009-11-30 16:22:20 -05:00
Cole Robinson
8c320509ed
opticalhelper: Move UI update routines to uihelpers
2009-11-30 16:21:04 -05:00
Cole Robinson
f9b7e9cdf4
Add new class vmmMediaDev, similar to vmmNetDev
...
Represents a physical media drive on the host (only cdrom for now, but could
be floppy later). Use this in opticalhelper
2009-11-30 16:20:06 -05:00
Cole Robinson
26f6ee3e18
manager: Remember previous window dimensions
2009-11-28 21:00:46 -05:00
Cole Robinson
71f54c0112
manager: Make code organization more readable
...
As has been done with other files, try to group similar functions in
commented blocks, and break apart massive __init__ functions into chunks.
2009-11-28 20:49:44 -05:00
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
436d1c39e2
console: Rework VNC sizing: allow scaling down and maintain ratio
...
There were several defficiencies in the way we handled VNC widget sizing, so
try to fix them up. We now have:
- Ability to scale down
- Aspect ratio maintained while scaling
- Much better scrollbar handling without the hacks.
2009-11-28 18:48:56 -05:00
Cole Robinson
a1172eb32f
connection: Prefer libvirt APIs for net device enumeration
...
If a connection supports interface APIs and nodedev APIs, use them over
HAL to enumerate net devices.
2009-11-25 17:07:12 -05:00
Cole Robinson
d0873210a0
connection: Only fetch interface object in tick when needed
...
We don't need to look up the interface object ahead of time, only do it
if we appear to have a new interface.
2009-11-25 14:56:35 -05:00
Cole Robinson
22a2a4b57c
connection: Poll for node devices, rather than fetch on demand
...
This should hopefully be much less taxing on bandwidth, since hostdevices
shouldn't change too much, so every tick we only need to compare a couples
lists.
2009-11-25 14:50:27 -05:00
Cole Robinson
a21a91f6c9
connection: Clean up autoconnect get/set routines
...
No reason to cache the autoconnect value, use gconf as intended.
2009-11-25 14:16:31 -05:00
Cole Robinson
919e82b477
addhw: Drop paranoid lower() call
2009-11-25 14:02:32 -05:00
Cole Robinson
806dbec913
connection: Drop image validation for restore
...
Apps shouldn't be expected to do this. If we want it, should be done at
the libvirt level or the hypervisor level. Qemu and test drivers already do
the correct thing.
2009-11-25 14:01:34 -05:00
Cole Robinson
f635c176e7
connection: Clean up usage of get_type
...
Move users to either get_driver or is_* functions, which are self documenting.
2009-11-25 13:58:29 -05:00
Cole Robinson
0b094377b9
connection: Reorganize code placement
...
Similar to what's been done in some other files, try to group functionality
into relevant commented blocks.
2009-11-25 16:13:46 -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
e0075f8b5f
uihelpers: Some improvements for network device listing
...
Sort the device list by device type, and alphabetically within types
Make sure we have a sane default selection
List empty bridges
2009-11-25 16:12:45 -05:00
Cole Robinson
325a33de18
connection: Track netdevs natively, don't just use netdevhelper lists
...
Our lists are built up from netdev-added and netdev-removed signals.
2009-11-25 16:12:03 -05:00
Cole Robinson
6ee14c7a65
Fix toolbar priority text settings
2009-11-24 14:12:55 -05:00
Cole Robinson
1c02280e6e
addhw: Remove usermode networking skip-network-page hack
...
The previous network page had no place to choose usermode networking, but
the current one is a bit more flexible, so drop our original hack to skip
straight to the summary page.
2009-11-24 13:32:14 -05:00
Cole Robinson
0812c40428
A few more UI tweaks.
...
Make sure dialog button boxes aren't expanding.
Make storage browser a gtk Window, with a dialog type hint.
2009-11-24 13:24:46 -05:00
Cole Robinson
6c968e7944
addhw: Greatly simply 'Add Network' wizard
...
Use a single combo box for the source device, and drop the network hints.
Most people likely won't have virtual networking and bridging set up, and if
they do they probably know what they are doing.
This allows us to reuse the UI code from the create wizard.
2009-11-24 13:14:55 -05:00
Cole Robinson
333a37209e
addhw: Try to organize method placement
...
Also break apart some complex methods. This should be a no op.
2009-11-24 12:43:54 -05:00
Cole Robinson
37eeae37c0
Fix 'make check'
2009-11-23 11:54:21 -05:00
Cole Robinson
263da14aaa
console: Make sure previous dimensions are restored after fullscreen.
...
If scaling is always enabled, returning from fullscreen wouldn't restore
the original VNC dimensions.
2009-11-22 16:39:38 -05:00
Cole Robinson
2c40c07252
domain: Fix a small typo causing a useless backtrace
2009-11-22 16:11:25 -05:00
Cole Robinson
6bb6a44c31
console: s/Console/Graphical console/g in page messages
2009-11-24 09:39:32 -05:00
Cole Robinson
d03207304a
Actually add the new interface file
2009-11-22 11:18:53 -05:00
Cole Robinson
54cd0cafde
create: Break out network paremeter validation to uihelpers
...
This will also be used by addhardware.
2009-11-20 13:12:24 -05:00
Cole Robinson
72315a372b
error: Make sure we set proper transient parent
...
We were using widget.parent, which is the parent container widget (if
present), not the dialog transient parent.
2009-11-20 13:11:33 -05:00
Cole Robinson
d159a29914
console: Remove some redundant debugging
2009-11-20 13:10:07 -05:00
Cole Robinson
0eec8017f7
create: Break out network populate functions to new file uihelpers.py
...
We will use this in the addhardware wizard.
2009-11-20 11:39:22 -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
f784eacf53
host: Add some basic UI work for viewing interfaces (not hooked up yet)
...
Won't be really implementing this for a while, but just push the basic
UI template in place, so any work done now will merge easier later.
2009-11-19 17:32:53 -05:00
Cole Robinson
28f87993ed
host: Fix some small UI issues with listing networks
...
- Desenitize list entry when network is inactive
- Have initial host window show sensitized network output
- Make sure network is selected when host window is open
2009-11-19 17:29:20 -05:00