1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 12:59:06 +00:00

Fixes missing chipset info for VirtualBox VM (maybe some older VirtualBox version don't have it). Fixes #254.

This commit is contained in:
Jeremy 2015-07-25 16:39:38 -06:00
parent 2655d426c2
commit cf5af8a6f7

View File

@ -574,10 +574,11 @@ class VirtualBoxVM(BaseVM):
# check the maximum number of adapters supported by the VM
vm_info = yield from self._get_vm_info()
chipset = vm_info["chipset"]
maximum_adapters = 8
if chipset == "ich9":
maximum_adapters = int(self._system_properties["Maximum ICH9 Network Adapter count"])
if "chipset" in vm_info:
chipset = vm_info["chipset"]
if chipset == "ich9":
maximum_adapters = int(self._system_properties["Maximum ICH9 Network Adapter count"])
return maximum_adapters
def _get_pipe_name(self):