1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Update qemu_vm.py

This commit is contained in:
Jeremy Grossmann 2017-02-17 17:37:06 +08:00 committed by GitHub
parent 99f817392d
commit 635e163954

View File

@ -1457,7 +1457,7 @@ class QemuVM(BaseNode):
if bridge_id > 1: if bridge_id > 1:
qemu_version = yield from self.manager.get_qemu_version(self.qemu_path) qemu_version = yield from self.manager.get_qemu_version(self.qemu_path)
if qemu_version and parse_version(qemu_version) < parse_version("2.4.0"): if qemu_version and parse_version(qemu_version) < parse_version("2.4.0"):
raise QemuError("You need to Qemu 2.4 or later in order to support large number of adapters") raise QemuError("Qemu version 2.4 or later is required to run this VM with a large number of network adapters")
pci_device_id = 4 + bridge_id # Bridge consume PCI ports pci_device_id = 4 + bridge_id # Bridge consume PCI ports