mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
New option: require KVM. If false, Qemu VMs will not be prevented to run without KVM.
This commit is contained in:
1 parent
068077c594
commit
3e2e8e61f7
3 files changed
+8
-1
No files matched your search
@@ -1624,7 +1624,10 @@ class QemuVM(BaseNode):
|
||||
return False
|
||||
|
||||
if not os.path.exists("/dev/kvm"):
|
||||
raise QemuError("KVM acceleration cannot be used (/dev/kvm doesn't exist). You can turn off KVM support in the gns3_server.conf by adding enable_kvm = false to the [Qemu] section.")
|
||||
if self.manager.config.get_section_config("Qemu").getboolean("require_kvm", True):
|
||||
raise QemuError("KVM acceleration cannot be used (/dev/kvm doesn't exist). You can turn off KVM support in the gns3_server.conf by adding enable_kvm = false to the [Qemu] section.")
|
||||
else:
|
||||
return False
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user