Commit Graph

3653 Commits

Author SHA1 Message Date
Cole Robinson cd0ab0d217 virt-image: Print warning that it is planned for removal 2014-02-10 15:24:12 -05:00
Cole Robinson f6de5331ba prefs: Disable memory polling by default
This path hits the qemu monitor, and leads to the virt-manager UI being
locked up when performing asynchronous tasks like creating a snapshot.
So make it opt in for people that want it.
2014-02-10 15:14:10 -05:00
Cole Robinson 94b7c124f6 details: stats: Report if memory polling is disabled 2014-02-10 15:13:31 -05:00
Cole Robinson a411a98cc7 man: virt-install: Clarify docs after auto-storage work 2014-02-10 14:50:59 -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 2ea6b7e35d addhw: Make hostdev list a bit wider 2014-02-10 14:04:35 -05:00
Cole Robinson 4a006b5ff8 details: Expose fine grained boot config
Basically put an explicit device list in the boot UI, if the hypervisor
supports it. For unsupported hv, use the same old disk/cd/floppy/net UI.
2014-02-10 13:34:17 -05:00
Cole Robinson 8577bdf386 details: Break out icon and label helpers for each device 2014-02-09 15:20:41 -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
Chen Hanxiao 2fee95c704 man: fix typos in virt-xml man page
s/unsed/used
s/Propertys/Properties

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-09 21:12:33 +08: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
Chen Hanxiao de21747dbb virt-convert: fix a small pylint
s/desc =_/desc = _/

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-08 23:30:53 +08:00
Kristóf Marussy 256052d389 console: Improve resize-guest when scaling is enabled 2014-02-08 10:14:50 -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 96c260199d man: a proper example for blkiotune
Parameter device_path should be block device rather than
files.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-08 00:00:08 +08: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
Chen Hanxiao c23de0b181 virtinst: drop parameter guest in convert_old_networks
We do not use this paramter any more since commit:
46d3e0041a.
So drop it.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-06 22:33:00 +08:00
Cole Robinson a8dd7bd213 util: Fix validate_name error reporting 2014-02-05 19:02:42 -05:00
Cole Robinson dff14ea12b tests: Use consistent predictable URIs 2014-02-05 19:02:42 -05:00
Cole Robinson 46d3e0041a deviceinterface: Absorb cli 'default source' logic 2014-02-05 19:02:42 -05:00
Cole Robinson 6fdc2f6d16 details: Tweak label of usb redirdev 2014-02-05 14:27:46 -05:00
Cole Robinson 76ec8680bd netlist: Make sure to disconnect all signal handlers 2014-02-05 14:25:13 -05:00
Cole Robinson 404b5dedc2 create: Don't log inaccurate 'close' message 2014-02-05 14:25:01 -05:00
Cole Robinson c37d0db001 create: Drop unused property 2014-02-05 14:24:44 -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 69015c048f addstorage: Fix check VM path collision 2014-02-04 17:39:44 -05:00
Cole Robinson b2b0ac0cc2 details: Fix regression in 'customize before install'
char target_port isn't available before we've installed the guest
2014-02-04 17:32:46 -05:00
Cole Robinson 6f93d3decf Use .qcow2 extension when creating qcow2 files
Seems the be the practice these days
2014-02-04 17:30:24 -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 fadc47449c details: Simplify 'Redirect USB device' tooltip 2014-02-04 15:27:56 -05:00
Cole Robinson 8618a3abd7 prefs: Add 'Add SPICE USB redirection' option, enable it
For qemu guests that are using spice, add 4 redirdevs so USB redirection
happens for free. This can be disabled in the preferences dialog.
2014-02-04 15:27:56 -05:00
Cole Robinson 2cf1901286 virt-manager: Don't make --spice-disable-auto-usbredir permanent
Not sure why it worked this way, but it shouldn't touch gsettings
2014-02-04 15:27:56 -05:00
Chen Hanxiao 163bcf4ff3 man: add virt-xml examples for changing startup policy and IO mode of disks
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-05 00:24:32 +08:00
Chen Hanxiao d0001cff89 details: fix a small typo
s/editted/edited

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-04 20:03:52 +08:00
Chen Hanxiao f0fb4ca204 details: show port number for console device in hwlist
We could see more than one console devices
in hwlist because of multi console support.
This patch will show port number of console device
in hwlist.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-04 10:30:12 +08:00
Cole Robinson e0103286bd devicedisk: Short circuit path_exists(None) 2014-02-03 16:43:25 -05:00
Cole Robinson 8917445e32 Fix tests with latest libvirt 2014-02-03 16:08:34 -05:00