Workaround a bug with KVM, Qemu >= 2.4 and Intel CPU

Fix #685
This commit is contained in:
Julien Duponchelle committed 2016-09-21 19:25:15 +02:00
1 parent de2dad20d5
commit 2bbdbeaa82
2 files changed
+65 -1

No files matched your search

+5
View File
@@ -1424,6 +1424,11 @@ class QemuVM(BaseVM):
command.extend(["-smp", "cpus={}".format(self._cpus)])
if self._run_with_kvm(self.qemu_path, self._options):
command.extend(["-enable-kvm"])
version = yield from self.manager.get_qemu_version(self.qemu_path)
# Issue on some combo Intel CPU + KVM + Qemu 2.4.0
# https://github.com/GNS3/gns3-server/issues/685
if version and parse_version(version) >= parse_version("2.4.0"):
command.extend(["-machine smm=off"])
command.extend(["-boot", "order={}".format(self._boot_priority)])
cdrom_option = self._cdrom_option()
command.extend(cdrom_option)