@@ -5,6 +5,24 @@ include tests_base.cfg
include cdkeys.cfg
include virtio-win.cfg
+# Here you can override the image name for our custom linux and windows guests
+#
+CustomGuestLinux:
+ image_name = custom_image_linux
+ image_size = 10G
+ # If you want to use a block device as the vm disk, uncomment the 2 lines
+ # below, pointing the image name for the device you want
+ #image_name = /dev/mapper/vg_linux_guest
+ #image_raw_device = yes
+
+CustomGuestWindows:
+ image_name = custom_image_windows
+ image_size = 10G
+ # If you want to use a block device as the vm disk, uncomment the 2 lines
+ # below, pointing the image name for the device you want
+ #image_name = /dev/mapper/vg_windows_guest
+ #image_raw_device = yes
+
# Modify/comment the following lines if you wish to modify the paths of the
# image files, ISO files or qemu binaries.
#
@@ -83,6 +101,23 @@ variants:
only Fedora.15.64
only unattended_install.cdrom, boot, shutdown
+ # Runs your own guest image (qcow2, can be adjusted), all migration tests
+ # (on a core2 duo laptop with HD and 4GB RAM, F15 host took 3 hours to run)
+ # Be warned, disk stress + migration can corrupt your image, so make sure
+ # you have proper backups
+ - @qemu_kvm_custom_migrate:
+ # We want qemu-kvm for this run
+ qemu_binary = /usr/bin/qemu-kvm
+ qemu_img_binary = /usr/bin/qemu-img
+ only qcow2
+ only rtl8139
+ only ide
+ only smp2
+ only no_pci_assignable
+ only smallpages
+ only CustomGuestLinux
+ only migrate
+
# You may provide information about the DTM server for WHQL tests here:
#whql:
# server_address = 10.20.30.40
@@ -1216,6 +1216,11 @@ variants:
re_str = "[vhs]d[a-z][^0-9]"
variants:
+ - CustomGuestLinux:
+ image_name = custom_image
+ image_size = 10G
+ #image_name = /dev/mapper/vg_some_label
+ #image_type_raw = yes
- Fedora:
no setup
shell_prompt = "^\[.*\][\#\$]\s*$"
@@ -2222,6 +2227,11 @@ variants:
pre_cmd = del diskpart.script && (for /L %i in (1 1 23) do echo select disk %i >> diskpart.script && echo create partition primary >> diskpart.script && echo assign >> diskpart.script) && echo select disk 0 >> diskpart.script && echo exit >> diskpart.script && diskpart /s diskpart.script
variants:
+ - CustomGuestWindows:
+ image_name = custom_image
+ image_size = 20G
+ #image_name = /dev/mapper/vg_some_label
+ #image_type_raw = yes
- Win2000:
no reboot whql
image_name = win2000-32
In order to help people wanting to use their own, custom guest images with KVM autotest, added CustomGuestLinux and CustomGuestWindows, with comments on how to use lvm devices or other raw block devices as the vm disk. Added an example qemu_kvm_custom_migrate variant that runs all combinations of stress tests (takes approx. 3 hours to run on my development laptop), so people run something actually useful other than simple boot and shutdown tests. Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com> --- client/tests/kvm/tests.cfg.sample | 35 ++++++++++++++++++++++++++++++++ client/tests/kvm/tests_base.cfg.sample | 10 +++++++++ 2 files changed, 45 insertions(+), 0 deletions(-)