Cole Robinson
f2f2c1fd95
Fix some pylint
2014-09-06 13:47:10 -04:00
Cole Robinson
d1f46a75e7
cli: Don't rely on libvirt to generate MAC if mac=RANDOM (bz 1130449)
2014-08-15 15:02:57 -04:00
Chen Hanxiao
cff8e32c55
virt-install: support setting hugepages/page/[@size, @unit, @nodeset] for memorybacking
...
libvirt commit
136ad49740f017aabcac48d02d2df6ab7b0195e9
introduce ./hugepages/page/[@size, @unit, @nodeset]
for memory backing.
This patch will add support in virt-install.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-07-30 14:34:03 +08:00
Cole Robinson
5f81c4bdc0
virtinst: cli: Tweak some command line strings and indentation
2014-07-15 09:25:20 -04:00
Cole Robinson
1e77c05c4e
Clarify some translation strings, reported on transifex
2014-07-04 16:42:24 -04:00
Chen Hanxiao
75d43f6a37
fix some missed binary prefixes for units
...
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-06-17 09:33:14 +08:00
Chen Hanxiao
d1b0fade1d
virt-install: add --resource support
...
This patch will enable setting
resource partition configuration.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-06-04 10:08:05 +08:00
Cole Robinson
da73e4980b
virt-install: Add --boot initargs=
...
Expects a shell escaped string which we split into individual initarg bits
2014-05-31 17:15:03 -04:00
Cole Robinson
42fe235cbf
virt-install: Add --network portgroup= option
2014-05-31 14:30:07 -04:00
Chen Hanxiao
33c7e63a99
cli: fix some style misc issue
...
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-05-29 17:06:13 +08:00
Chen Hanxiao
3c45262526
virt-install: add --events support
...
This patch will enable setting event configuration:
on_poweroff, on_reboot and on_crash.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-05-29 09:46:24 +08:00
Cole Robinson
196ff823b3
Fix warnings with latest pep8
2014-05-02 10:20:59 -04:00
Jim Minter
764063dfe9
virt-install --disk discard= support
...
(crobinso: Remove default overriding, add test cases)
2014-04-29 10:38:30 -04:00
Cole Robinson
a398d245cb
Clean up pylint integration
...
- Drop no longer needed disable= bits
- Use string names for all skipped pylint messages
2014-04-02 19:00:24 -04:00
Cole Robinson
9050998028
cli: Rename --membacking to --memorybacking
...
More consistent with the existing --memory option, and the
XML block name.
2014-03-22 12:28:23 -04:00
Cole Robinson
a5b3c1d2f8
guest: Drop back compat hugepage attribute
2014-03-22 12:25:28 -04:00
Cole Robinson
d1749c614d
cli: Move hugepages=on example to membacking
2014-03-22 12:19:44 -04:00
Chen Hanxiao
7096c3708e
virt-install: Add --membacking option
...
Add option --membacking for "Memory Backing".
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-03-22 12:16:24 -04:00
Chen Hanxiao
58a07d04fb
remove memoryBacking parameters from --memory
...
Remove some "Memory Backing" parameters from --memory,
and keep 'hugepages' for backward compatibility.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-03-22 12:16:24 -04:00
Chen Hanxiao
008feeb09a
Add more parameters for memoryBacking
...
Add support for parameters nosharepages and locked
if using option --memory.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-03-14 21:23:23 +08:00
Cole Robinson
b4e4f68376
cli: Add --graphics defaultMode
2014-02-27 17:43:59 -05:00
Chen Hanxiao
c1e7da72b7
cli: add missing remove_first method for --blkiotune
...
Add missing remove_first method for --blkiotune.
Update related man pages.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-26 09:38:20 +08:00
Chen Hanxiao
a48f75078d
virt-install: Add --memtune option
...
This patch provides the ability to
tune memroy tunable parameters for the domain.
Also add test cases for --memtune option
and update man page.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-24 21:02:31 -05:00
Chen Hanxiao
155bd7da8f
cli: unify tag style
...
Unify tag style, looks a little better.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-18 22:40:39 +08:00
Chen Hanxiao
b53b3874a4
virt-xml: add "-c" as short option of "--connect"
...
Add "-c" as short option of "--connect" for virt-xml.
We could use either
virt-xml -c lxc:///
or
virt-xml --connect lxc:///
This will be more convenient if we operate
non-default hypervisor.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-12 22:57:40 +08:00
Chen Hanxiao
020957c756
cli: fix a tiny typo
...
s/./:
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-02-11 22:08:55 +08:00
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
7bff99f853
cli: Use correct file extension for --disk pool=FOO
2014-02-10 18:27:06 -05:00
Cole Robinson
ac6706208d
cli: Shorten some long --help examples
2014-02-10 18:13:42 -05:00
Cole Robinson
d0f44491ff
cli: Warn if disk path isn't searchable by qemu
2014-02-10 18:09:15 -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
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
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
46d3e0041a
deviceinterface: Absorb cli 'default source' logic
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
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
156a2a1dcb
cli: Clarify a translation string
2014-02-03 11:21:16 -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
24c1c5a2bd
cli: --network: Support driver_queues option
2014-02-01 07:48:04 -05:00