Cole Robinson
95cda55376
spec: Don't use hardcode lookup of qemu-system-x86
...
libvirt-daemon-kvm pulls in the correct emulator dep per architecture
2015-05-02 18:25:41 -04:00
Cole Robinson
cc3c6e24a3
packageutils: Add some extra logging
2015-05-02 18:01:52 -04:00
Cole Robinson
fa08d0ada5
clitest: Fix tests on F21
2015-05-02 16:41:21 -04:00
Cole Robinson
46ecafd820
migrate: Fix typos pointed out by translator
2015-05-01 09:38:25 -04:00
Ján Tomko
be7611b645
connection: refresh domain XML on device hotplug
...
Listen to the VIR_DOMAIN_EVENT_ID_DEVICE_ADDED event
too, added by libvirt 1.2.15.
https://bugzilla.redhat.com/show_bug.cgi?id=1179138
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2015-04-29 09:52:10 -04:00
Cole Robinson
0aeee5c449
serialcon: Fix opening with xen (bz 1215357)
...
Apparently xen doesn't set <serial> device alias names, and OpenConsole
just opens the first <console> device unconditionally.
Properly handling that would be to report it in the UI that we can
only open the first console, but for now just drop the alias check.
Apparently SUSE already does this as mentioned in the RH bug
https://bugzilla.redhat.com/show_bug.cgi?id=1215357
2015-04-26 11:54:55 -04:00
Cole Robinson
8369c65966
storage: Use ~/.config/libvirt/images for qemu:///session
...
It doesn't create the annoying ~/VirtualMachines directory, and already
has proper labelling.
2015-04-24 21:01:55 -04:00
Cole Robinson
05db555145
libvirtobject: Don't raise error during init_libvirt_state
...
The connection doesn't handle it. If it ever needs to know we can have
it return a value or something.
2015-04-24 15:34:55 -04:00
Giuseppe Scrivano
a2d453f3e2
sshtunnels: use ipaddr to check if address is loopback or unspecified
...
It supports IPv6 addresses written as "0::0", "0:0::0".
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-04-24 11:39:04 +02:00
Cole Robinson
33cfe883c6
guest: arm kvm should use host-passthrough, not model=host
...
Seems to work with libvirt, not sure if it was ever broken as the comment
suggested.
2015-04-23 10:14:58 -04:00
Cole Robinson
bbb048cbd0
clitest: Add KVM tests for aarch64, armv7, ppc64le
2015-04-22 20:28:47 -04:00
Cole Robinson
6fd3983f6d
tests: Clean up capabilities test data
...
Make it clear which ones are used for the caps unit tests, and which
are for cli/UI testing and can be updated at will. And drop a bunch
of outdated stuff.
2015-04-22 19:05:06 -04:00
Cole Robinson
8a3e3391c8
clitest: Drop explicit fake.iso filename
...
Just use one of the other files we stub out
2015-04-22 18:00:00 -04:00
Cole Robinson
d4bf3b58a0
clitest: Drop prompttest infrastructure
...
Just fake it for the one remaining test
2015-04-22 18:00:00 -04:00
Cole Robinson
070664b9e7
tests: Enable property checking for all objects
...
And loosen restrictions a bit so any read/write will trigger the
tracking.
2015-04-22 16:26:03 -04:00
Giuseppe Scrivano
1c22118179
aarch64: support virt-rhelsa7.1 machine type
...
Just check for the prefix of the machine type, as it is done for ARM
vexpress.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1212021
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-04-22 19:08:02 +02:00
Cole Robinson
4c361933ea
tests: Have the property checker work on whole test suite
...
Not just xmlparse.py. So we can test a new property via clitest and
not always via xmlparse
2015-04-21 20:15:37 -04:00
Cole Robinson
ccc0da3e51
tests: Add specific VM for virtxml tests
...
Decouple it from test-many-devices which is really about manual testing
of virt-manager UI. It's annoying that every time test-many-devices is
extended we need to regenerate all the virtxml tests.
2015-04-21 19:50:41 -04:00
Cole Robinson
18a6d8b444
migrate: Add 'temporary' option
...
This doesn't undefine the VM source, and leaves it temporary on the
destination. Basically the default migration action
2015-04-21 17:39:44 -04:00
Cole Robinson
fb26349546
domain: Make the tick() logic easier to follow
2015-04-21 17:15:58 -04:00
Cole Robinson
62ad0e91ee
migrate: Big reworking of the dialog
...
It's largely the same, but now
- The code is better organized
- The UI is much more streamlined, only showing relevant fields when
required.
- We warn about the hostname/URI cases that we know libvirt will error on
- Drop some of the attempts at being smart, and just mimic what libvirt
will do.
2015-04-21 17:15:58 -04:00
Cole Robinson
bfcfdbf785
host: Remove some redundant connection fields
2015-04-21 16:33:41 -04:00
Cole Robinson
996c8b76b8
clone: Use conn desc if showing destination conn
2015-04-21 16:33:41 -04:00
Cole Robinson
692604e0a3
domain: migrate: Use UNDEFINE_SOURCE
...
Leaving a VM defined on the source is dangerous: if they are sharing
storage, and aren't using virtlockd, then they might be inadvertently
started in two places at once and trash a disk image.
Some people might still need the option to turn this off, so maybe we
will revive it. Not sure though
2015-04-21 16:33:41 -04:00
Cole Robinson
26c729887d
domain: migrate: use PERSIST_DEST flag
...
Don't do it manually, it's been supported by libvirt for 5 years
2015-04-21 16:33:41 -04:00
Cole Robinson
be86785fdd
migrate: Drop unused 'live' parameter. We always pass LIVE
2015-04-21 16:33:41 -04:00
Cole Robinson
2b877cf337
migrate: Remove 'max downtime' support
...
This is only needed when people have very specific downtime constraints
on public facing services. I don't think that covers many virt-manager
users. So suggest they just use the command line for this.
2015-04-21 16:33:41 -04:00
Cole Robinson
39dc0c7b94
migrate: Drop 'bandwidth' UI
...
A bit too enterprisy for my tastes. If people need this they should use
the command line.
2015-04-21 16:33:41 -04:00
Cole Robinson
8aefc012c5
connect: Fix handling of missing avahi (bz 1213299)
...
gdbus seems to behave differently here now. Perform an API check at
initial lookup time to ensure avahi is available
2015-04-20 12:32:33 -04:00
Cole Robinson
7b1a4634a8
clone: Refresh cached pools after storage creation
2015-04-14 18:42:56 -04:00
Cole Robinson
6dbe19bd83
libvirtobject: Fix deleting a running VM
...
The recent XML rework wasn't catching when a domain disappears while
trying to refresh it's state from the event loop.
2015-04-13 18:24:46 -04:00
Cole Robinson
1a8c6ba645
console: Use VM title as window title
2015-04-13 17:30:12 -04:00
Cole Robinson
e4e4c8c6f7
domain: Some 'customize before install' fixes after XML rework
2015-04-13 17:25:40 -04:00
Cole Robinson
dcfce5585a
osdict: If detecting fedora-unknown, convert to latest fedora
...
That's basically what it is internally for libosinfo, and it helps
us generate better names in virt-manager
2015-04-13 17:07:16 -04:00
Cole Robinson
10ad151d4b
connection: Clarify tick functions and who should use them
2015-04-13 16:56:46 -04:00
Cole Robinson
4553912c64
diskbackend: Fix busted volume lookup API name
2015-04-13 16:41:59 -04:00
Cole Robinson
c82507fc41
mediacombo: Just log error if populating fails
...
This is a non-essential feature. I just hit a backtrace when trying
to refresh XML. It's fixed by the previous patch, but we should avoid
these errors from killing the create.py wizard at least.
2015-04-13 16:41:58 -04:00
Cole Robinson
83f1c5f4bb
nodedev: Populate XML at init time
2015-04-13 15:43:48 -04:00
Cole Robinson
6ecf01a3bd
console: Catch and handle password auth errors (bz 1151801)
2015-04-12 14:10:45 -04:00
Cole Robinson
4e47cc9061
console: Fix password entry grab_focus
2015-04-12 12:43:29 -04:00
Cole Robinson
f013453999
sshtunnels: Don't log the SSH command over and over
...
Just log it once at init time
2015-04-12 12:21:38 -04:00
Cole Robinson
2ca72d1117
viewers: Don't try to use SSH tunnels in spice local case
...
Regressed with the recent tunnel cleanups
2015-04-12 11:06:15 -04:00
Cole Robinson
acebd1248c
viewers: Add explicit API for removing display from parent
...
Previously we were hacking it in
2015-04-12 10:33:41 -04:00
Cole Robinson
c3fc4ee5a2
console: Drop timeout retry logic
...
This was needed in the days of old xen + libvirt, but I don't think
it's required nowadays, and if it is it's busted with our XML caching
I think.
2015-04-12 10:24:35 -04:00
Cole Robinson
792774450f
console: Properly cleanup viewer when closing
...
Otherwise signals aren't properly removed, can cause some backtraces on
shutdown.
2015-04-12 09:53:23 -04:00
Cole Robinson
80c2dde350
virt-manager: Fix connection to domain from cli
...
Need to tweak our signal handling here with the recent connection changes.
2015-04-12 09:34:55 -04:00
Cole Robinson
aec851f73a
viewers: Always clean up tunnel FDs when closing viewer
...
We were basically leaking a lot of FDs. They were still being tracked
but they were stranded and never dealt with.
2015-04-11 22:44:03 -04:00
Cole Robinson
e2cdfd651c
sshtunnels: Don't use python socket for FD we pass to spice
...
Since socket objects close their FD when they are garbage collected,
this seems to lead to crashes like reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=1135808
2015-04-11 22:36:04 -04:00
Cole Robinson
21b80226a8
config: Remove debug print statement
2015-04-11 22:36:04 -04:00
Cole Robinson
285e345f17
viewer: Simplify tunnel handling
...
- Cache ginfo, since it is tied to a single viewer instance
- Always create the sshtunnels object
- Track lock state so we can make it idempotent
2015-04-11 21:39:24 -04:00