Marc-André Lureau
4ad74278ca
cli: add memory backing access_mode & source_type
...
Allow to set some memory backing options, ex:
--memorybacking access_mode=shared,source_type=anonymous
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2018-10-02 11:12:13 -04:00
Cole Robinson
9db3b5c7e5
ui: create: Drop lots of indentation
...
Makes better use of horizontal space
2018-10-02 10:26:04 -04:00
Cole Robinson
d389e93586
tests: Fix with latest libosinfo
...
And add some logic to skip these tests on older libosinfo as well
2018-10-01 11:34:51 -04:00
Cole Robinson
757910a1bb
cli: Add --metadata os_name= and os_full_id=
...
Allows changing the libosinfo metadata for an existing vm via virt-xml
2018-09-30 20:55:32 -04:00
Cole Robinson
b19f94299b
details: Add OS name view/edit, + oslist rework
...
This is just a big nasty commit.
Turn the OS inspection page into an always available page that
shows the libosinfo name from the domain metadata XML. Use oslist.py
and have it absorb more of the common behavior needed by create.py
and details.py. Add UI tests for it all
2018-09-30 20:55:32 -04:00
Cole Robinson
75c64151b1
engine: Exit app if if --show-X bits fail
...
We were missing some cases. Simplify the code while we are at it
and add some extra ui test cases
2018-09-30 20:55:18 -04:00
Cole Robinson
97ea737386
devices: interface: Have x86 fallback model be e1000
...
libvirt will use rtl8139, but the qemu default changed a while
ago to e1000, and libvirt has diverged. e1000 is more modern and
considered the better default here, so use it
2018-09-29 14:35:28 -04:00
Cole Robinson
627bfabc32
pylint: Silence output on Fedora 29
2018-09-29 14:27:34 -04:00
Cole Robinson
4adb1c8c30
pycodestyle: fix W605 invalid escape sequence
2018-09-29 13:59:19 -04:00
Cole Robinson
2d44912a70
pycodestyle: Disable W504 line break after binary operator
2018-09-29 13:59:15 -04:00
Cole Robinson
7356afcca7
osdict: Use USB tablet if no OS specified
...
Most OS users will be installing benefit from it, so make it the
default
2018-09-29 13:36:42 -04:00
Cole Robinson
87d19ebf36
tests: Add rhel5 and win10 kvm XML tests
2018-09-14 14:37:12 -04:00
Cole Robinson
a741f595ea
guest: Drop update_defaults
...
Fold its one purpose into the UEFI setting bits, fix it and test it
2018-09-13 15:59:27 -04:00
Cole Robinson
d7ff46f7f5
guest: Encode the cli --os-variant in the XML
...
And add some testdriver examples of it
2018-09-13 15:11:22 -04:00
Cole Robinson
86ef998023
guest: Lookup osinfo object from libosinfo metadata XML
2018-09-13 15:03:36 -04:00
Cole Robinson
bad5eabd93
domain: Add metadata.libosinfo
...
From the libosinfo discussion here:
https://www.redhat.com/archives/libosinfo/2018-September/msg00003.html
This is a cross-app schema for tracking libosinfo OS ID in the
domain <metadata> XML. Example:
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0 ">
<libosinfo:os id="http://fedoraproject.org/fedora/17 "/>
</libosinfo:libosinfo>
</metadata>
2018-09-13 12:39:56 -04:00
Cole Robinson
baaab74b6d
xmlapi: Rework xmlns setting slightly
...
So the xmlns is not always set on the top element. We need this for
custom <metadata> support
2018-09-13 12:39:56 -04:00
Cole Robinson
6063538750
guest: Replace os_variant with set_os_name
...
And have callers directly access osinfo.name if they need it
2018-09-12 17:24:28 -04:00
Cole Robinson
d669ce8417
tests: Add a set_defaults idempotent test
2018-09-12 12:36:58 -04:00
Cole Robinson
2d53f7223d
clitest: Test comparison against --os-variant fedora-unknown
...
Which always maps to the latest Fedora. May help catch accidental
changes
2018-09-12 12:33:16 -04:00
Cole Robinson
e903d374c2
guest: Always encode machine= in XML
...
Don't rely on libvirt's default. This makes any XML changes more
explicit, and can help other parts of the code that may depend on
a machine type being encoded
2018-09-12 12:16:47 -04:00
Cole Robinson
a2fa799478
capabilities: Drop lookup_virtinst_guest
...
Users should just init Guest() directly, and call
set_capabilities_defaults if they need default arch data
2018-09-06 20:28:05 -04:00
Cole Robinson
5f22f41da4
guest: Absorb capabilities defaults setup
...
Rather than forcing API users to go through the capabilities APIs.
This lets us simplify things in virt-install quite a bit, and is
needed for smarter machine type defaults
2018-09-06 20:12:49 -04:00
Cole Robinson
a09a46289a
addhardware: Move controller list logic to virtinst
...
And tweak the UI defaults a bit, preferring virtio-scsi and
usb3
2018-09-06 16:05:12 -04:00
Cole Robinson
7994dc90c8
addhardware: Move video model list to virtinst
...
And make it smart about the hypervisor
2018-09-06 14:45:05 -04:00
Cole Robinson
b3865d7b0d
addhardware: Drop tcp/udp/dev char support
...
I know openstack uses tcp consoles but for end users I've never
really heard about it. RHEL compiles out udp as well. I'm fine telling
users to go to the cli and use virt-xml for this use case.
Use this opportunity to drop a lot of code that only simplified the
case when there are tons of char options we need to consider
2018-09-06 13:28:21 -04:00
Cole Robinson
cd07d6af34
sound: Track recommended models in virtinst
...
Change addhardware to show an editable model entry, like the
details wizard
2018-09-06 13:28:21 -04:00
Cole Robinson
c5033c02d5
fsdetails: Use combo entry for format list
...
And stop listing all the crazy qemu formats
2018-09-06 13:28:21 -04:00
Cole Robinson
f13d10590d
createvol: Only show raw+qcow2 as file formats
...
And turn the combo into a text entry, so users can enter their
own if they want. raw and qcow2 covers the vast majority of usecases
2018-09-06 13:28:21 -04:00
Cole Robinson
2ac54ac001
guest: Drop self.installer and start_install wrapper
...
This changes all the callers to invoke start_install directly on the
Installer object. We still stash the installer instance inside the
guest object in create.py, just for simplicity
2018-09-04 14:55:04 -04:00
Cole Robinson
c154bbacd4
guest: Fold add_default_devices into set_defaults
...
It doesn't have any need anymore to be separate
2018-09-04 14:55:04 -04:00
Cole Robinson
256ca7f3fb
virt-install: Simplify install method validation a bit
...
And drop the --pxe --nonetwork collision check, it's near pointless
2018-09-04 14:55:04 -04:00
Cole Robinson
1e76496fa8
storage: remove default_cb usage
2018-09-04 14:55:04 -04:00
Cole Robinson
221dd00cb9
devices: disk: remove default_cb usage
2018-09-04 14:55:04 -04:00
Cole Robinson
fff3c88f9c
devices: disk: Absorb Guest bus/target default setting
...
Simplifies cli stuff as a nice side effect
2018-09-04 14:55:04 -04:00
Cole Robinson
ef83565e48
devices: hostdev: Add set_defaults
2018-09-04 14:55:04 -04:00
Cole Robinson
64dc334538
devices: interface: Add set_default function
...
Move all the Guest network default logic to it, and drop a now
redundant test
2018-09-04 14:55:04 -04:00
Cole Robinson
347143982a
devices: Add set_defaults for memballon, redirdev, rng, smartcard
2018-09-04 14:55:04 -04:00
Cole Robinson
31bda5bbb6
devices: watchdog: Add set_defaults
2018-09-04 14:55:04 -04:00
Cole Robinson
d25ce81439
guest: Force qxl/vga more often
...
Letting libvirt choose gives us cirrus, which is really bad.
So for x86 for it more
2018-09-04 14:55:04 -04:00
Cole Robinson
fdd1cc5ca8
guest: Make spice default device additions explicit
...
Don't lump it in with setting video defaults
2018-09-04 14:55:04 -04:00
Cole Robinson
c3515fa469
guest: Drop multifunction address magic
...
Seems sufficiently obscure that if someone is manually specifying
addresses we can require them to pass multifunction as well
2018-09-04 14:55:04 -04:00
Povilas Kanapickas
3c62685bf1
uitests: Use Ctrl_L+Alt_L+Z as a grab keys when testing prefs
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:30:14 -04:00
Povilas Kanapickas
568a39f1ee
uitests: Increase click offset for window drag
...
On KDE the testManagerWindowCleanup test clicks right on the border and
the drag operation fails, bringing down the test. Clicking a bit lower
fixes this issue.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:30:14 -04:00
Povilas Kanapickas
fb7b295e21
uitests: Fix selection of items in long menus that don't fit on screen
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:30:14 -04:00
Povilas Kanapickas
895668fa9a
uitests: Fix onscreen to return True only when full widget is on screen
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:30:14 -04:00
Povilas Kanapickas
bf823fdb3c
details: Pin network-model label directly to combo to simplify tests
...
This approach is used in majority of other places and allows the
combobox items to be selected directly instead of typing text in tests.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:17:19 -04:00
Povilas Kanapickas
c81d722a19
uitests: Improve robustness of click_combo_entry()
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:17:19 -04:00
Povilas Kanapickas
1f2b9b8342
uitests: Don't fail when requiested file is not visible
...
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2018-09-04 13:17:19 -04:00
Cole Robinson
10290cbf48
tests: uitests: Fix remote dbus test
...
My last patch broke it!
2018-09-04 13:17:19 -04:00