Cole Robinson
26d16a5978
diskbackend: Fix typo
2014-10-29 12:35:18 -04:00
Chen Hanxiao
a6e72f30f3
virtinst: fix some comment typos
...
s/occurence/occurrence
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-10-29 16:00:28 +08:00
Cole Robinson
baee53fbaa
util: Simplify default_bridge to not confuse pylint
2014-10-27 19:53:25 -04:00
Cole Robinson
cbf38cbe9f
pylint: Ignore new warnings
2014-10-27 19:53:25 -04:00
Giuseppe Scrivano
cce5827195
virtinst: add support for disk type="volume"
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-09-26 16:24:59 +02:00
Cole Robinson
310f65273f
osdict: Restrict n-cpus to 1 for machvirt
...
It fails to boot otherwise
2014-09-23 17:09:36 -04:00
Cole Robinson
318ac3df55
guest: Add clarifying comment
2014-09-23 16:19:54 -04:00
Cole Robinson
42ac7a3036
guest: Set optimal arm CPU defaults
...
If doing arm kvm, use cpu=host. Otherwise, specify cortex-a57 for aarch64
so we actually get a 64bit cpu
2014-09-23 16:18:23 -04:00
Cole Robinson
c4162f6708
Use -M virt as default machine for arm/aarch64
...
Centralize the default machine logic in caps and use it consistently
2014-09-23 16:05:48 -04:00
Cole Robinson
0182ba3ead
guest: Use virtio for arm -M virt
...
In fact it's the only thing it supports
2014-09-23 15:12:02 -04:00
Cole Robinson
81fdc1e5e5
guest: Clarify a function name
2014-09-23 15:09:35 -04:00
Cole Robinson
86417d42ca
osxml: Ensure kernel/initrd/dtb are absolute paths
2014-09-23 14:32:01 -04:00
Cole Robinson
4c4bdbb8b8
cli: Allow embedding comma in kernel_args
...
And fix can_comma for aliases
2014-09-23 14:14:21 -04:00
Cole Robinson
30db9ece22
osdict: Add qemu-ga for RHEL6 and RHEL7 guests (bz 1139109)
2014-09-22 17:33:55 -04:00
Cole Robinson
e1c803dc7c
osdict: Only list latest point release in virt-manager
...
So only list RHEL6.5, and not 6.4-6.0 as well. That earlier versions
can be seen by selecting 'show all options'
2014-09-22 17:20:07 -04:00
Cole Robinson
b3fa8bb650
tests: Ensure osdict.py aliases is never extended
2014-09-21 15:26:03 -04:00
Cole Robinson
eda5eea549
virt-install: Switch --cpu host to use host-model, not copy (bz 1133155)
...
host-model offers us other protections now, like ensuring we don't try
to use a host cpu feature that qemu doesn't support.
http://bugzilla.redhat.com/show_bug.cgi?id=1133155
2014-09-20 20:44:13 -04:00
Cole Robinson
3933ff101b
guest: Limit number of default usb redirdevs to 2 (bug 1135488)
...
If we use 4 devices here, we fill up all the emulated USB2 slots,
and directly assigned devices are forced to fall back to USB1
https://bugzilla.redhat.com/show_bug.cgi?id=1135488
2014-09-20 20:16:31 -04:00
Cole Robinson
99700821c6
virt-install: Reorder --help output a bit
2014-09-20 19:30:16 -04:00
Cole Robinson
d7e1a40352
virt-install: Deprecate --nodisks in favor of --disk none
2014-09-20 19:16:13 -04:00
Cole Robinson
57ae284ad4
virt-install: Deprecate --nonetworks in favor of --network none
...
Follows the pattern used by the other cli options
2014-09-20 19:02:38 -04:00
Cole Robinson
1f3f3fa4fc
virt-install: If virt-viewer will fail, default to --wait -1
...
This can happen if user requests explicit --graphics, but they are on
a headless display. We had a few reports of this recently.
2014-09-20 18:28:43 -04:00
Cole Robinson
56c091600a
details: Move hostdev prettyifier to virtinst
2014-09-20 14:56:57 -04:00
Cole Robinson
5130d959e5
cli: Advertise the --host-device option as --hostdev
...
It annoys me that all the other CLI options map to the libvirt XML name,
except this one. Of course, keep the old option around for back compat,
just give precendence to the new option.
2014-09-20 14:29:34 -04:00
Cole Robinson
5bbd46a070
cli: Fix suddenly appearing pylint warning :/
2014-09-20 14:22:29 -04:00
Cole Robinson
c88d085d03
virt-xml: Make --remove-device --host-device <str> work
...
Need to add some infrastructure for arbitrary lookup functions
2014-09-20 14:22:29 -04:00
Cole Robinson
35c86a775a
nodedev: Simplify parameter comparison
2014-09-20 14:22:03 -04:00
Cole Robinson
cf80b4e013
cli: Show failing option via virt-xml --remove lookup
2014-09-20 13:53:27 -04:00
Cole Robinson
a3c6637989
nodedev: Share comparison logic for cli string lookup
2014-09-20 12:58:51 -04:00
Cole Robinson
dd67c48233
connection: Handle nodedev polling too
...
And cleanup up a bunch of nodedev functions as a result
2014-09-20 12:04:49 -04:00
Cole Robinson
8cd4958a19
cli: Break out function to disable libvirt error printing
...
We need it early in the test suite
2014-09-20 12:04:37 -04:00
Cole Robinson
439e5ad0fe
details: Reorg a bunch of the global helpers
...
Some were redundant, some should be in virtinst
2014-09-20 10:23:19 -04:00
Cole Robinson
ca2ee52eb8
virtinst: cli: Move unshared bits to virt-install
...
Since virt-image is gone, this stuff should all be private to virt-install
2014-09-19 20:31:22 -04:00
Cole Robinson
ae26313ed4
details: Add UI for enabling UEFI via 'customize before install'
...
We expose a simple combobox with two entries: BIOS, and UEFI. The
UEFI option is only selectable if 1) libvirt supports the necessary
domcapabilities bits, 2) it detects that qemu supports the necessary
command line options, and 3) libvirt detects a UEFI binary on the
host that maps to a known template via qemu.conf
If those conditions aren't met, we disable the UEFI option, and show
a small warning icon with an explanatory tooltip.
The option can only be changed via New VM->Customize Before Install.
For existing x86 VMs, it's a readonly label.
2014-09-17 18:43:41 -04:00
Cole Robinson
052220cfc8
virtinst: Add DomainCapabilities parser
2014-09-17 18:29:24 -04:00
Lin Ma
2f62ba964c
Add comparison function for NodeDevice
...
PCIDevice and USBDevice include respective comparison logic.
Signed-off-by: Lin Ma <lma@suse.com>
2014-09-16 11:41:13 -04:00
Laszlo Ersek
d2fffa509e
virt-install: add support for OVMF
...
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
2014-09-16 09:47:02 +02:00
Giuseppe Scrivano
21319c4232
osdict, libosinfo: use "minimum" resources when "recommended" is missing
...
Some OS entries in libosinfo miss the "recommended" resources block.
In this case use the "minimum" resources when available.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-09-16 09:12:04 +02:00
Giuseppe Scrivano
0218d29a35
virtinst: add ich9 to the list of audio models
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-09-16 09:04:14 +02:00
Chen Hanxiao
30c3434916
test: update compare_check flags for auto-clone cases
...
auto-clone cases use SUPPORT_CONN_BARE_BACKINGSTORE,
which check libvirt 1.2.4.
Change it to SUPPORT_CONN_LOADER_ROM(1.2.9)
and drop SUPPORT_CONN_BARE_BACKINGSTORE.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-09-16 10:03:27 +08:00
Chen Hanxiao
4a83ea3a83
test: skip unit tests affected by loader extention before libvirt 1.2.9
...
libvirt commit for 1.2.9
68bf13dbef8342eaee0bf57c73cebb60b7de11e8
conf: Extend <loader/> and introduce <nvram/>
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-09-16 10:02:57 +08:00
Cole Robinson
eb7612356e
virtinst: Switch to relative imports, fix cyclic import warnings
2014-09-12 16:28:38 -04:00
Cole Robinson
f512c05381
diskbackend: Get volume path from XML
...
The XML is likely already cached, and path() can hit the network, so
this can speed things up.
2014-09-12 16:28:38 -04:00
Cole Robinson
3064f4058d
diskbackend: Simplify pool source lookup
...
Have it share logic with a similar routine
2014-09-12 16:28:38 -04:00
Cole Robinson
508debaf2d
virtinst: Don't needlessly call conn.getType
2014-09-12 16:28:37 -04:00
Giuseppe Scrivano
a94cc98238
osdict: merge _OsVariantOsInfo with _OsVariant
...
Make a new class _OsVariantType which contains only the minimum
information shared between a OS type and an OS variant.
As it is not possible anymore to specify the type as the variant name,
define some alias names.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-09-12 10:36:11 +02:00
Giuseppe Scrivano
1291ffc8b7
osdict: _OsVariantOsInfo._init_ doesn't call _OsVariant._init_
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-09-12 10:36:11 +02:00
Giuseppe Scrivano
cbe5ffcee7
osdict: drop attribute "parent" from _OSVariant
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-09-12 10:36:11 +02:00
Lubomir Rintel
cf79f06559
nodedev: Be more descriptive about USB device identification
...
libvirt often passes devices with vendor and product information missing or
malformed, making the USB sharing dialog ugly or useless to the point it's
impossible to identify the device.
This aims to fix pretty-printing of weird textural identification and fall
back to numeric product and device id (in case textual represetations are
not present in the descriptor and device is too new to be in device
database).
2014-09-11 15:37:10 -04:00
Chen Hanxiao
61eadad354
distroinstaller: fix a typo
...
s/prepartions/preparations
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-09-11 11:08:22 +08:00