提交 8d7b36e9 编写于 作者: Q Qingtang Zhou 提交者: Lucas Meneghel Rodrigues

virt: Verify whether guest image is bootable

This patch adds a function in vm.verify_alive method,
to check if the image is bootable. If image can't bootup,
autotest will raise an ImageUnbootableError exception.

There are 2 parameters for this function:
 * image_verify_bootable: Turn on/off this checking function.
 * image_unbootable_pattern: Pattern for bootable checking.
Signed-off-by: NQingtang Zhou <qzhou@redhat.com>
上级 a0fb5f4d
...@@ -12,3 +12,4 @@ ...@@ -12,3 +12,4 @@
network = bridge network = bridge
restart_vm = yes restart_vm = yes
pxe_timeout = 60 pxe_timeout = 60
image_verify_bootable = no
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
inactivity_treshold = 1800 inactivity_treshold = 1800
# Set migrate_background to yes to run migration in parallel # Set migrate_background to yes to run migration in parallel
# migrate_background = yes # migrate_background = yes
image_verify_bootable = no
# Way of delivering ks file into the guest # Way of delivering ks file into the guest
variants: variants:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册