Cole Robinson
18d8512699
Move the 'default graphics type' logic into Guest
...
So we can share it, and make virt-install more robust
2013-10-02 18:06:52 -04:00
Cole Robinson
fa0ee32172
virt-install: Fix multiple invocation of --disk pool=default
...
Don't use a global counter, just correctly specify a collidelist with
not yet created disk images
2013-10-02 13:20:27 -04:00
Cole Robinson
dd823d2d8c
cli: Don't log to debug files from the test suite
...
We shouldn't be doing it anyways, but my recent cache_dir change broke
a bunch of stuff without this.
2013-10-01 10:14:46 -04:00
Cole Robinson
0b58badfc1
Storage debug and scratch files in ~/.cache/virt-manager (bz 693028)
2013-10-01 08:28:15 -04:00
Cole Robinson
34c502560f
storage: Drop unused static function
...
This allows us to simplify the parameters for find_free_name
2013-09-30 16:22:12 -04:00
Cole Robinson
86a98f0d39
virt-install: Add --disk backing_store option
2013-09-29 11:23:59 -04:00
Cole Robinson
d414beb3a9
Warn that --prompt mode will likely be removed in the future.
2013-09-28 11:34:03 -04:00
Cole Robinson
4c15da439b
cli: Combine registering a bunch of common options
2013-09-28 11:27:26 -04:00
Cole Robinson
b1fb6c2567
cli: Pass key name to set_param convert_cb for error handling
2013-09-28 10:58:27 -04:00
Cole Robinson
5329a9afc9
virt-install: Add --tpm /dev/tpm convenience option
2013-09-28 10:28:04 -04:00
Cole Robinson
b3719f25ac
cli: s/yes_or_no/yes_no/g
2013-09-28 10:06:52 -04:00
Cole Robinson
b3a72bcb95
cli: Remove unneeded parameter to optparse.add_option
2013-09-28 10:03:08 -04:00
Cole Robinson
eca87838fb
virt-install: Add --features option
...
And hide docs about old --noacpi/--noacpi options. I don't think
anyone really uses them anyways, but if anyone complains we should
just implement --features for the other CLI commands.
2013-09-28 09:58:57 -04:00
Cole Robinson
16a190a0dc
cli: Add some consistency to deprecated option handling
...
Take all the old options and convert them to new style, so the rest
of the app only needs to deal with new style bits.
2013-09-27 22:31:52 -04:00
Cole Robinson
fd00ad74e2
devicehostdev: Drop device creation helper
...
Goes against other device paradigms, and is cleaner when we unwind it.
2013-09-27 18:28:28 -04:00
Cole Robinson
6013622da4
cli: Make option handling more consistent
2013-09-27 16:52:41 -04:00
Giuseppe Scrivano
601eb5f15e
virt-install: accept a single argument form for RNG devices
...
Detect the "--rng /dev/random" case and assume it is the "random" type.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-09-26 10:09:33 +02:00
Cole Robinson
a2e5206730
deviceinterface: Fix creating direct interfaces (bz 1006324)
...
And take the opportunity to standarize on setting net.source,
rather than have API users have to do net.bridge/network/source_dev
2013-09-24 10:00:01 -04:00
Giuseppe Scrivano
a55438f880
virt-install: add support for virtio-rng devices
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-09-20 18:56:19 -04:00
Cole Robinson
fd52fb2c32
util: Drop 'partition' helper, we require python 2.5 these days
2013-09-20 10:05:42 -04:00
Cole Robinson
aff0ddb259
Use XMLBuilder for Storage object handling
...
Simplify the API a bunch while we are at it, add tests, etc.
2013-09-20 10:00:08 -04:00
Cole Robinson
67cc81f6b1
virt-install: Add --boot useserial=on
...
Which gives bios output over serial console via sgabios
2013-09-04 11:57:26 -04:00
Daniel Gollub
1730a8e5ff
virtinst: add nwfilter support
...
This allows to make use of libvirt network filtering support with virt-install.
With the additional option "filterref" in the --network parameter one can
configure any defined nwfilter per network interface, i.e.:
virt-install ... --network network=mynet,model=virtio,filterref=clean-traffic
(crobinso: add an xmlparse test case)
2013-08-29 11:44:40 -04:00
Cole Robinson
e02fa9b4fe
virt-install: Add --boot dtb=DTB support
...
Allows passing in a device tree binary to the guest. Needed for
some non-x86 configurations.
2013-08-16 19:25:26 -04:00
Cole Robinson
c426d5a16f
Guest: Drop os_type, just use single os_variant
...
Internally the distinction hasn't been valuable for a long time,
so simplify the API here.
2013-08-11 12:39:36 -04:00
Cole Robinson
45d2db887d
virt-*: Unify handling of --os-variant
...
And hide --os-type from the cli since it is long since redundant.
2013-08-11 12:39:28 -04:00
Cole Robinson
3e158b80bf
guest: Move cpuset static functions to DomainNumatune
2013-08-11 12:39:28 -04:00
Cole Robinson
00e0057868
cli: Fix some comment spacing
2013-07-31 09:28:35 -04:00
Cole Robinson
85f1e1d4b1
Fix remote URL installs
...
We need to make sure the pool cache is invalidated if we create
the boot-scratch pool. Also share code that builds a volinstall instance.
2013-07-25 16:21:30 -04:00
Cole Robinson
2ba3ec2684
Guest: Convert to new style XML prop, drop a bunch of XML infrastructure
...
Now every XML property is new style, without explicit local get/set
handlers. Drop a bunch of XML infrastructure that was helping with the
transition.
2013-07-24 07:54:04 -04:00
Cole Robinson
012d1cdc52
Installer: Drop all XML handling, just have it setup install info
2013-07-23 17:34:33 -04:00
Cole Robinson
d9e82f984c
VirtualDevice: Raise error if parsing addrstr fails
2013-07-23 17:34:32 -04:00
Cole Robinson
510d28e33b
Seclabel: Convert to new style XML props.
2013-07-23 17:34:31 -04:00
Cole Robinson
e802eae07b
VirtualCharDevice: Convert to new style XML props, rework API
2013-07-23 17:34:31 -04:00
Martin Kletzander
b8a209ef9c
virt-install: Make default graphics configurable
...
The '--default-graphics' option of 'setup.py configure' only affects
virt-manager, but not virt-install. This should be unified, so this
patch checks whether default_graphics taken from the cli is supported
and uses that option.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=912615
2013-07-16 08:07:57 +02:00
Cole Robinson
4f7f9e2267
VirtualAudio: Convert to new style XML props
2013-07-15 22:00:08 -04:00
Cole Robinson
a9296ec3ae
VirtualController: Convert to new style XML props
2013-07-15 21:52:18 -04:00
Cole Robinson
f079ec36eb
VirtualHostDevice: Convert to new style XML props
2013-07-15 17:45:43 -04:00
Cole Robinson
e6e1036c59
VirtualMemballon: Convert to new style XML props
2013-07-15 16:55:32 -04:00
Cole Robinson
3ae835dc7c
VirtualNetworkInterface: Drop all XML __init__ params
2013-07-15 14:14:05 -04:00
Cole Robinson
98a4d86d7f
VirtualRedir: Convert to new style XML props
2013-07-15 12:57:37 -04:00
Cole Robinson
b6f2d99db2
VirtualSmartCard: Convert to new style XML props
2013-07-15 12:36:57 -04:00
Cole Robinson
f3a37ba195
VirtualTPM: Convert to new style properties
2013-07-15 12:18:23 -04:00
Cole Robinson
e5a7fe6405
VirtualVideo: Convert to new style xml props
2013-07-15 11:19:18 -04:00
Cole Robinson
70d34e928e
VirtualDisk: Drop set_vol_object, it is barely used
...
And it complicates syncing state. Make points where we sync values
more explicit.
2013-07-14 16:35:09 -04:00
Cole Robinson
c12327cbd1
Guest: Switch memory units to KB to match default XML
2013-07-13 23:07:01 -04:00
Cole Robinson
4ce1774d53
VirtualDisk: Rework provisioning and validation behavior
...
We separate all the provisioning bits to diskbackend.py. VirtualDisk
users now need to explicitly opt in to storage creation by using
set_create_storage().
validation is no longer done automatically, users must call the
validation() command.
__init__ drops all extra parameters.
This will eventually get us to a point where we can unify the manual
XML building and XML parsing machinery, and get consistent validation
behavior between devices.
2013-07-13 16:37:33 -04:00
Cole Robinson
d386ba5d62
VirtualConnection: Add option to cache fetch_* results
...
We use this in the CLI tools since there's no point in repeatedly updating
the VM list if the whole process only takes a few seconds.
2013-07-07 16:38:11 -04:00
Cole Robinson
9d560f7d9a
VirtualDisk: Always return VM names from is_conflict_disk
2013-07-07 16:34:46 -04:00
Cole Robinson
492a039f7d
VirtualConnection: proxy virtinst.support API
...
Simplifies the lives of callers, and will allow us to do caching later
2013-07-06 12:40:24 -04:00