现在的位置: 首页 > 综合 > 正文

使KVM autotest支持qemu 模拟

2013年12月01日 ⁄ 综合 ⁄ 共 737字 ⁄ 字号 评论关闭

在默认的情况下 kvm autotest必须要kvm的支持。 否则会报错。

现在做下面的改动,可以让在没有kvm支持的情况下,也可以使用kvm autotest。

diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py
index ffa55c1..2f20ce7 100644
--- a/client/virt/kvm_vm.py
+++ b/client/virt/kvm_vm.py
@@ -835,10 +835,10 @@ class VM(virt_vm.BaseVM):
             # KVM modules or with hugepage setup.
             output = self.process.get_output()
 
-            if re.search("Could not initialize KVM", output, re.IGNORECASE):
-                e = virt_vm.VMKVMInitError(qemu_command, self.process.get_outpu
-                self.destroy()
-                raise e
+            #if re.search("Could not initialize KVM", output, re.IGNORECASE):
+            #    e = virt_vm.VMKVMInitError(qemu_command, self.process.get_outp
+            #    self.destroy()
+            #    raise e
 

抱歉!评论已关闭.