Cole Robinson
21fb072d4a
virt-install: Default to qcow2 for new images
...
Following along with virt-manager's change. It has all the features and
good enough performace, and is easy enough to override for people that
care.
2014-02-10 18:47:58 -05:00
Cole Robinson
cdd9dbe7fc
cli: Add simple mode --disk size=X
...
Works the same as pool=default, we generate a disk image path and
create it in the default pool.
2014-02-10 18:34:44 -05:00
Cole Robinson
d76aab264e
tests: Only use one env variable to notify we are running tests
2014-02-10 14:47:20 -05:00
Cole Robinson
82754ddc84
Expose hostdev rombar in UI and cli (bz 768857)
2014-02-10 14:25:23 -05:00
Cole Robinson
719f23a273
cli: Support per-device <boot order=>
2014-02-09 14:07:27 -05:00
Chen Hanxiao
fcac052cdc
virt-install: add support for user namespace
...
This patch will enable configuring idmap.
It could be used as enable user namespace
for LXC containers.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-09 13:16:34 -05:00
Chen Hanxiao
e067051287
test: fix some test suites
...
commit:
67743cbe31
c5f6c6852a
and
98ea4cdad2
break some test suites.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-09 08:38:56 -05:00
Cole Robinson
98ea4cdad2
Reduce test suites clear_cache calls
2014-02-08 19:28:56 -05:00
Cole Robinson
c5f6c6852a
VirtualDisk: Always use storage APIs for provisioning
...
This means if we are passed an unmanaged path, we try to create a
storage pool for the parent directory.
We skip directories like /dev where doing this might be problematic.
This makes things much friendlier to use for remote connections, and
means we can always rely on having libvirt's storage APIs to use
for format probing.
2014-02-08 19:24:14 -05:00
Cole Robinson
67743cbe31
storage: Only try lazy_refcounts with format=qcow2
2014-02-08 19:24:13 -05:00
Cole Robinson
0b4a72fd77
virt-convert: Reimplement it
...
We totally break CLI compat here, but the previous tool wasn't sustainable.
Instead, repurpose the tool as strictly converting external formats
like ovf/vmx to native libvirt XML, and launch the guest.
So we drop vmx/virt-image output, and virt-image input, and a slew of
command line options. I don't think anyone was depending on this in a
scripted fashion, so in practice I don't think anyone will care.
Add much more comprehensive unit tests while we are at it.
2014-02-07 21:16:09 -05:00
Cole Robinson
2ffd5a66e6
guest: Add single entry point for adding default devices
2014-02-07 16:07:32 -05:00
Chen Hanxiao
5a097183a9
test: add more test cases for option --blkiotune
...
Add additional test cases for option --blkiotune.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-07 23:12:54 +08:00
Chen Hanxiao
dbfa8166b1
virt-xml: fix a terminal_width depends issue
...
One of virt-xml test case will output logs by
urlgrabber.process, which will get the real width of
terminals.
If we resize terminal, of who is running test, from
80 to other size, test case will fail.
This patch will screen it when running test case.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-07 23:05:41 +08:00
Giuseppe Scrivano
74463e394e
tests: fix tests suite with the last libvirt version
...
commit 499cb63f65
broke the test suite
with the last version of libvirt.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-02-07 00:04:20 +01:00
Giuseppe Scrivano
499cb63f65
doc: remove reference to SDL from virt-install man page
...
Adjust some tests to not use --graphics sdl.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-02-06 16:20:12 +01:00
Chen Hanxiao
3be9dd3eb3
virt-install: Add --blkiotune option
...
This patch provides the ability to
tune Blkio cgroup tunable parameters for the domain.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-06 22:41:00 +08:00
Cole Robinson
dff14ea12b
tests: Use consistent predictable URIs
2014-02-05 19:02:42 -05:00
Cole Robinson
f5c32063e4
wip
2014-02-05 14:09:05 -05:00
Cole Robinson
7a825d9a28
virt-install: Add usbredir channels by default if using spice
...
Can be disabled with --redirdev none
2014-02-05 13:07:01 -05:00
Cole Robinson
f635187bb8
virt-install: If using spice graphics, add <sound> by default
...
Can be disabled with --sound none
2014-02-05 12:51:27 -05:00
Cole Robinson
e70ab961f9
virt-install: Switch back to using --sound argument
...
Since argparse allows optional arguments, we can back compat handle the
original boolean --sound option. This is nicer than using an option
named --soundhw
2014-02-05 12:41:34 -05:00
Cole Robinson
4e4fb15a2f
virt-*: Drop all --prompt handling
...
This stuff is not very helpful and a pain to maintain. Let's drop it once
and for all. We still accept the CLI options and log a warning so people
hopefully take the hint.
2014-02-04 17:01:27 -05:00
Cole Robinson
8917445e32
Fix tests with latest libvirt
2014-02-03 16:08:34 -05:00
Cole Robinson
02402fcc0a
Fix some pylint
2014-02-03 16:00:03 -05:00
Cole Robinson
35d06e668a
setup: Add tests --regenerate-output
...
Static variable is too dangerous (notice I forgot to unset it with a
recent commit)
2014-02-03 15:55:20 -05:00
Cole Robinson
cac593da8f
storage: Use qcow2 lazy_refcounts if supported
2014-02-03 15:55:20 -05:00
Cole Robinson
0654784643
virt-install: Add --pm option
2014-02-03 11:11:38 -05:00
Cole Robinson
4fbee9aa41
cli: Make --cpu host-model and --cpu host-passthrough work
2014-02-03 11:11:38 -05:00
Cole Robinson
66d9cdbe22
tests: Strip beginning lines from diff output to not conflict so much
2014-02-02 13:44:20 -05:00
Cole Robinson
bce8ee942d
Fix some pylint
2014-02-01 19:47:31 -05:00
Cole Robinson
6638587077
clitest: Don't needlessly deviate default_bridge from test infra
2014-02-01 14:19:37 -05:00
Cole Robinson
184fe3fdb1
clitest: Make it easier to filter prompt tests
2014-02-01 14:17:03 -05:00
Cole Robinson
a0bcaf55d9
testdriver: Add startupPolicy example
2014-02-01 09:51:08 -05:00
Cole Robinson
24c1c5a2bd
cli: --network: Support driver_queues option
2014-02-01 07:48:04 -05:00
Cole Robinson
34e2ca8389
cli: --network: Wire up virtualport options
2014-01-31 16:51:02 -05:00
Cole Robinson
b12f06b84b
cli: --disk: Add iotune paramters
2014-01-31 15:38:39 -05:00
Cole Robinson
427400d3f3
virtinst: cpu: Reorder feature bits to match libvirt XML order
2014-01-31 13:44:50 -05:00
Cole Robinson
16390a5433
clitest: Infrastructure for skipping test compare
...
Our virt-xml tests don't compare correctly if we aren't using the
latest libvirt that supports the <panic> device.
2014-01-30 11:05:45 -05:00
Giuseppe Scrivano
3a4be995db
tests: fix tests with latest libvirt from git
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-01-30 08:41:52 -05:00
Cole Robinson
dde0012732
tests: Fix my busted clone skip change
2014-01-30 08:41:28 -05:00
Cole Robinson
4314a8379b
tests: Silence needless 'skip' output
2014-01-29 11:36:19 -05:00
Cole Robinson
6042d762b5
cli: Add --graphics connected option (bz 730923)
2014-01-29 09:52:49 -05:00
Cole Robinson
64b2d0c6b7
Move shared graphics editing UI to gfxdetails.py
...
Fixes a couple UI bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=696217
https://bugzilla.redhat.com/show_bug.cgi?id=875403
2014-01-29 09:22:28 -05:00
Cole Robinson
d0c734e215
devicegraphics: Fix updating listen address
...
We need to make sure to change the corresponding <listen> block on newish
libvirt.
2014-01-29 09:22:28 -05:00
Cole Robinson
dde460e399
xmlbuilder: Fix adding devices with child properties
...
And test it
2014-01-27 19:55:37 -05:00
Cole Robinson
b963c3ec39
cli: Allow '--option help' for introspection as well
2014-01-27 14:48:23 -05:00
Cole Robinson
b004d11eae
cli: Fix unsetting --disk path
2014-01-26 13:09:26 -05:00
Cole Robinson
57e89cda8b
virt-xml: Create storage if necessary
2014-01-26 13:09:26 -05:00
Cole Robinson
443ae1b303
virt-xml: Change clear format to clearxml=yes, add --help example
2014-01-25 20:30:08 -05:00