plugin: shell
id: virtualization/kvm_check_vm
user: root
environ: http_proxy https_proxy
estimated_duration: 300.0
requires:
 package.name == 'qemu-system'
 package.name == 'qemu-utils'
 virtualization.kvm == 'supported'
command: virtualization kvm --debug
_description:
 Test to check that a cloud image boots and works properly with KVM
_summary:
 Verify KVM VM boots

plugin: shell
id: virtualization/xen_ok
requires: package.name == 'libvirt-bin'
user: root
estimated_duration: 1.0
command: virsh -c xen:/// domstate Domain-0
_description:
 Test to verify that the Xen Hypervisor is running.
_summary:
 Verify Xen is running

plugin: shell
id: virtualization/xen_check_vm
depends: virtualization/xen_ok
user: root
estimated_duration: 300.0
command: xen_test /images/xentest.img /images/xentest.xml
_description:
 Test to check that a Xen domU image can boot and run on Xen on Ubuntu
_summary:
 Verify Xen domU can boot
