Cole Robinson
cfe9e7dc7e
virt-install: Make '--cpu none' work with aarch64
2015-03-23 17:46:09 -04:00
Cole Robinson
c7c772b200
virt-install: Default to --boot uefi
...
Try to use --boot uefi if the user hasn't already specified loader params,
or a kernel to boot. If we can't determine a UEFI setup, just print a
warning.
2015-02-22 10:25:51 -05:00
Cole Robinson
a04307cd70
virt-install: Add --boot uefi
...
Will enable UEFI if we know libvirt + hypervisor support it, and libvirt
is advertising a suitable UEFI binary.
2015-02-22 10:25:47 -05:00
Anatoly Belikov
e44b95149b
devicedisk: fix source name attribute for gluster volumes
...
(crobinso: Small code tweak, and add test cases)
2015-01-29 11:31:43 -05:00
Giuseppe Scrivano
dc169c1406
tests: check that HYPER-V is not enabled on win7 guest with UEFI
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-27 20:52:06 +01:00
Cole Robinson
5018233f63
tests: Test --channel none
2015-01-09 10:52:59 -05:00
Chen Hanxiao
5d0c68cc0c
clitest: replace DIR from current pwd to '/var'
...
Introduced by f16dc4dd34
This will cause test case failure on different machines.
Use '/var' to replace it.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-12-12 10:05:40 +08:00
Cole Robinson
9ae3dbe05b
virt-install: Fix --disk pool=NETPOOL,size=... creation
2014-12-10 13:22:42 -05:00
Cole Robinson
e1ab165b1a
cli: Don't try to create storage with source_pool + size
2014-12-10 13:22:42 -05:00
Cole Robinson
f16dc4dd34
tests: clitest: Lots of house cleaning
...
Drop redundant tests, organize things better, add more tests where we
can stick new cli device options and view the output, since that's the
most common extension.
2014-12-10 13:22:42 -05:00
Cole Robinson
464ebabc5a
virt-install: Wire up --disk vol= for network volumes
...
This involves convering pool/vol XML to disk source bits
2014-12-09 18:23:22 -05:00
Cole Robinson
838d7f015c
tests: Drop a bunch of redundant xmlconfig tests
...
These are mostly covered by clitests. Keep the important ones around
for code coverage.
2014-12-09 13:19:56 -05:00
Cole Robinson
9952764dda
virt-install: Make --disk $URL 'just work'
...
If VirtualDisk.path is set to a URL, parse it and fill in all the
source_* values automagically.
2014-12-09 10:45:26 -05:00
Cole Robinson
81009caa54
tests: clitest: Drop explict readonly file testing
...
This was originally to hit certain code paths in virtinst that are long
gone, and was causing issues for running the test suite in certain
situations:
http://www.redhat.com/archives/virt-tools-list/2014-December/msg00010.html
2014-12-09 07:13:27 -05:00
Cole Robinson
cd305da3f8
virt-install: support network --disk's
...
Handle type=network in devicedisk.py, and wire up all the network fields
for virt-install --disk. Right now it requires manually spelling out
all the protocol, name, host/port etc fields.
The one 'magic' bit is that VirtualDisk.path will be a pretty URL when
all those network fields are specified. This is keeps things mostly
working in various parts of the code where we expect 'path' to be an
identifier for a VirtualDisk.
2014-12-06 21:00:51 -05:00
Cole Robinson
86682c8c54
virt-install: Support --disk source_pool,source_volume
...
For setting type=volume disks. This requires some reworking of
devicedisk bits
2014-12-06 17:14:16 -05:00
Cole Robinson
7b8e850bc0
clitest: Sanitize diff output some more
2014-12-06 16:32:10 -05:00
Cole Robinson
2acbf52ce3
cli: If creating storage, always build vol_install
...
This is the start of moving this logic out of devicedisk
2014-12-05 20:00:11 -05:00
Cole Robinson
0389ab23a7
diskbackend: Remove backing by pool object
...
It just muddles things up for a minor edge case. The autopoolify logic
should catch all practical cases we care about.
2014-12-04 19:45:00 -05:00
Cole Robinson
e992cc15b2
virt-xml: Disable clearxml= for devices
...
It doesn't work in the general case, and users can just --remove and
--add devices as needed for the same effect
2014-12-04 15:28:14 -05:00
Cole Robinson
899bff4c4d
tests: Quiet things with non-latest libvirt
2014-12-04 13:04:02 -05:00
Cole Robinson
26828b52cc
guest: Use virtio-scsi for arm machvirt CDROM
...
Since it's the only option we have to actually use the CDROM
2014-11-20 11:27:09 -05:00
Martin Kletzander
339ead9f70
tests: fix failure on 32-bit machines
...
clitest.py used the value 100000000000 (100 PB) for memory size, which
was parsed as 0 by older libvirt. Latest release (1.2.10) has the
parsing fixed and properly reports an error on overflow. Changing the
memory size to 4000000 (4 TB) is still an overcommit, at least most
development machines and it works properly.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2014-11-05 09:00:58 +01: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
92db9bd4dd
tests: Add some more arm tests
...
Many are broken for now, but they will help validate we are setting
the correct defaults with subsequent patches.
2014-09-23 15:08:47 -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
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
64106230bd
virt-install: Add hidden option --test-media-detection
...
Can help with debugging and test cases
2014-09-20 20:32:19 -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
6a8194ebc7
docs: Document virtio-scsi better, and add explicit test cases for it
2014-09-20 15:03:19 -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
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
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
5aafe008bc
Remove virt-image, as scheduled
...
As promised with the last release, remove virt-image. In 6 months I didn't
hear a peep from any actual users that cared.
2014-09-06 18:05:43 -04:00
Cole Robinson
7d25dbe7a3
osdict: Always use vmvga for ubuntu
...
There's been a couple reports recently that virt-manager's default of video
model=qxl doesn't work well with latest ubuntu 14.04:
https://bugzilla.redhat.com/show_bug.cgi?id=1129803
https://lists.fedoraproject.org/pipermail/virt/2014-August/004105.html
However vmvga works, so let's use it for all ubuntu versions and not just a
couple of them. Marc Deslauriers confirmed it should be safe.
2014-09-06 13:45:15 -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
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
42fe235cbf
virt-install: Add --network portgroup= option
2014-05-31 14:30:07 -04: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
f397d96ca6
virt-install: Don't require install option with --print-xml (bz 1095789)
2014-05-11 19:19:00 -04:00
Cole Robinson
ea89dfb53f
tests: Don't fail on non-latest libvirt
2014-05-11 19:11:45 -04: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
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
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