Prevent starting different hypervisors that leverage hardware virtualization (VT-x/AMD-V). Fixes #548.

This commit is contained in:
Jeremy
2015-07-26 19:21:30 -06:00
parent eb5e019a26
commit fcd4fda68e
5 changed files with 25 additions and 14 deletions

View File

@ -152,7 +152,7 @@ class QEMUHandler:
and "-no-kvm" not in vm.options:
pm = ProjectManager.instance()
if pm.check_hardware_virtualization(vm) is False:
raise HTTPConflict(text="Cannot start VM with KVM enabled because hardware virtualization is already used by another software like VMware or VirtualBox")
raise HTTPConflict(text="Cannot start VM with KVM enabled because hardware virtualization (VT-x/AMD-V) is already used by another software like VMware or VirtualBox")
yield from vm.start()
response.set_status(204)