mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-19 07:53:47 +02:00
Fixes missing chipset info for VirtualBox VM (maybe some older VirtualBox version don't have it). Fixes #254.
This commit is contained in:
parent
2655d426c2
commit
cf5af8a6f7
@ -574,8 +574,9 @@ class VirtualBoxVM(BaseVM):
|
|||||||
|
|
||||||
# check the maximum number of adapters supported by the VM
|
# check the maximum number of adapters supported by the VM
|
||||||
vm_info = yield from self._get_vm_info()
|
vm_info = yield from self._get_vm_info()
|
||||||
chipset = vm_info["chipset"]
|
|
||||||
maximum_adapters = 8
|
maximum_adapters = 8
|
||||||
|
if "chipset" in vm_info:
|
||||||
|
chipset = vm_info["chipset"]
|
||||||
if chipset == "ich9":
|
if chipset == "ich9":
|
||||||
maximum_adapters = int(self._system_properties["Maximum ICH9 Network Adapter count"])
|
maximum_adapters = int(self._system_properties["Maximum ICH9 Network Adapter count"])
|
||||||
return maximum_adapters
|
return maximum_adapters
|
||||||
|
Loading…
Reference in New Issue
Block a user