From b90df5806deb724533fee4c3f10f7824d75d58aa Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 18 Sep 2015 15:40:56 -0600 Subject: [PATCH] Automatically add the -no-kvm option if -icount is detected to help with the migration of ASA VMs created before version 1.4 --- gns3server/modules/qemu/qemu_vm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 35bf228e..19441d2d 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -657,6 +657,10 @@ class QemuVM(BaseVM): options = options.replace("-no-kvm", "") if "-enable-kvm" in options: options = options.replace("-enable-kvm", "") + elif "-icount" in options: + # automatically add the -no-kvm option if -icount is detected + # to help with the migration of ASA VMs created before version 1.4 + options = "-no-kvm " + options self._options = options.strip() @property