GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
819 stars 263 forks source link

Unable to Import IOU 17.15.1 Images (L2 and L3) #2449

Open gitsakar opened 3 days ago

gitsakar commented 3 days ago

Unable to import Cisco IOU L3 version 17.15.1 and Cisco IOU L2 version 17.15.1 The error reads as file was not found. However, the image upload was successful and is listed in the /opt/gns3/images/IOU.

I have tried complete uninstallation and reinstallation of both GNS3 and GNS3 VM

image

image

gitsakar commented 3 days ago

I was somehow able to add from "Edit -> Preferences -> IOU Devices -> New". But added nodes are only visible from desktop client and not from web ui (GNS3 VM's web ui not local server). Then, I also tried to upload from web ui but it keeps on spinning. Also the dialog box expects file to be .bin or .image. However, the latest IOU image uses the extension .iol

Issue still persists from "File -> New Template". It still reports as File Missing

grossmj commented 2 days ago

Please can you launch a browser and open this page while GNS3 is running?

http://localhost:3080/v2/computes/local/iou/images

Thanks.

gitsakar commented 2 days ago

I get this response

{ "message": "GET /iou/images not found", "status": 404 }

image

grossmj commented 2 days ago

What about http://localhost:3080/v2/computes?

gitsakar commented 2 days ago

[ { "capabilities": { "node_types": [ "cloud", "ethernet_hub", "ethernet_switch", "nat", "vpcs", "virtualbox", "dynamips", "frame_relay_switch", "atm_switch", "qemu", "vmware", "traceng" ], "platform": "win32", "version": "2.2.51" }, "compute_id": "local", "connected": true, "cpu_usage_percent": 47.3, "host": "localhost", "last_error": null, "memory_usage_percent": 75.8, "name": "Latitude-E7270", "port": 3080, "protocol": "http", "user": "admin" }, { "capabilities": { "node_types": [ "cloud", "ethernet_hub", "ethernet_switch", "nat", "vpcs", "virtualbox", "dynamips", "frame_relay_switch", "atm_switch", "qemu", "vmware", "traceng", "docker", "iou" ], "platform": "linux", "version": "2.2.51" }, "compute_id": "vm", "connected": true, "cpu_usage_percent": 0.7, "host": "192.168.158.128", "last_error": null, "memory_usage_percent": 13.2, "name": "GNS3 VM (GNS3 VM)", "port": 80, "protocol": "http", "user": null } ]

image

grossmj commented 2 days ago

Please can you try http://192.168.158.128/v2/computes/local/iou/images

Thanks

gitsakar commented 2 days ago

It is empty.

image

gitsakar commented 2 days ago

I copied the IOU files to "C:\Users\username\GNS3\images\IOU" folder and now I am able to install from "File -> New Template". It reuploaded the files to /opt/gns/images/IOU. However, it is says found locally. I tried with older image 17.12.1, uploaded it from my D:/ and it reports as Found on GNS3 VM (GNS3 VM). I believe GNS3 is not able to detect that the image is already uploaded to GNS3 VM

All the API response remains the same.

image

grossmj commented 1 day ago

Hum I cannot reproduce the problem.

Have you selected the GNS3 VM when installing the IOU appliance?

Image

Found locally means the IOU image was found on your local OS (Windows)

Image

Then if you select an IOU image and click next, the image will be uploaded. Have you seen this screen?

Image

You should be able to add IOU nodes and make sure they run inside the VM (in your case there is no other choice since IOU cannot run on Windows).

Image

Image

gitsakar commented 1 day ago

I think you are not able to reproduce this issue as you are trying with IOU version 17.12.1. This version gets imported fine for me as well. The issue is with the version 17.15.1, it is freely downloadable from Cisco CML 2.8 free tier reference platform image. (https://software.cisco.com/download/home/286193282/type/286326381/release/2.8.0%20Free%20Tier). The GNS3 appliance registry needs to be updated from online for the definitions of 17.15.1 to appear.

My setup does use GNS3 VM. In fact, the IOU I imported using a workaround "Edit -> Preferences -> IOU Devices -> New" runs fine. image

It's just that the import using "File -> New Template" fails. It does upload the image to GNS3 VM successfully but it still reports as missing files.

image

image

gitsakar commented 1 day ago

It seems the issue is a little bit widespread. Another user is facing similar issue but with Cisco 7200 version 153-3.XB12 https://www.gns3.com/community/featured/ios-images-not-being-recognized-in-gns-vm-v2-2-51

I tried to probe him but for some reason my gns3 account is reporting as email address not verified. I was able to post earlier, I only renamed my profile name yesterday and now I am not able to post, neither is there an option to verify my account. I have reported my GNS3 community account issue to info@gns3.net

grossmj commented 8 hours ago

It seems the issue is a little bit widespread. Another user is facing similar issue but with Cisco 7200 version 153-3.XB12 https://www.gns3.com/community/featured/ios-images-not-being-recognized-in-gns-vm-v2-2-51

Indeed, I think I found what was wrong and fixed that in https://github.com/GNS3/gns3-server/pull/2448