diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py
index 9816b3523f9b6b6d67694999547434283b227960..671b8dfd545bfd6ecc5cfe51eb11fe1bb76acaf0 100644
--- a/lib/hypervisor/hv_kvm.py
+++ b/lib/hypervisor/hv_kvm.py
@@ -836,7 +836,9 @@ class KVMHypervisor(hv_base.BaseHypervisor):
     match = cls._VERSION_RE.search(result.output.splitlines()[0])
     if not match:
       return None
-    return (match.group(0), match.group(1), match.group(2), match.group(3))
+
+    return (match.group(0), int(match.group(1)), int(match.group(2)),
+            int(match.group(3)))
 
   def StopInstance(self, instance, force=False, retry=False, name=None):
     """Stop an instance.