From 1e371016413dc1512f2549c32e0130b8e298dd1b Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 23 Jun 2017 12:00:33 +0200 Subject: [PATCH] Allow IOU 64-bit images. --- gns3server/compute/iou/iou_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/iou/iou_vm.py b/gns3server/compute/iou/iou_vm.py index 4768614f..3f51ad6a 100644 --- a/gns3server/compute/iou/iou_vm.py +++ b/gns3server/compute/iou/iou_vm.py @@ -181,9 +181,9 @@ class IOUVM(BaseNode): except OSError as e: raise IOUError("Cannot read ELF header for IOU image '{}': {}".format(self._path, e)) - # IOU images must start with the ELF magic number, be 32-bit, little endian + # IOU images must start with the ELF magic number, be 32-bit or 64-bit, little endian # and have an ELF version of 1 normal IOS image are big endian! - if elf_header_start != b'\x7fELF\x01\x01\x01': + if elf_header_start != b'\x7fELF\x01\x01\x01' and elf_header_start != b'\x7fELF\x02\x01\x01': raise IOUError("'{}' is not a valid IOU image".format(self._path)) if not os.access(self._path, os.X_OK):