Popular Post netkillui Posted March 28, 2024 Popular Post Posted March 28, 2024 This is the hidden content, please Sign In or Sign Up 543 114 5 4 2
Popular Post w1z4rd Posted March 28, 2024 Popular Post Posted March 28, 2024 Downloaded the two images. Installed the L2 image in GNS3 on my Ubuntu laptop. I gave it 640MB or RAM and it worked just fine. My only issue is that GNS3 cannot push a template startup-config. So you have to create the IOL device and do not define a Startup-config. To get the file to work with GNS3 on Ubuntu, I also renamed the file to give it a .bin extension. Also, you need to give the file executable permissions: This is the hidden content, please Sign In or Sign Up At the end, I got the following: This is the hidden content, please Sign In or Sign Up Thanks a bunch @netkillui! 372 70 3 5 3
Popular Post netkillui Posted March 29, 2024 Author Popular Post Posted March 29, 2024 3 hours ago, w1z4rd said: Downloaded the two images. Installed the L2 image in GNS3 on my Ubuntu laptop. I gave it 640MB or RAM and it worked just fine. My only issue is that GNS3 cannot push a template startup-config. So you have to create the IOL device and do not define a Startup-config. To get the file to work with GNS3 on Ubuntu, I also renamed the file to give it a .bin extension. Also, you need to give the file executable permissions: This is the hidden content, please Sign In or Sign Up At the end, I got the following: This is the hidden content, please Sign In or Sign Up Thanks a bunch @netkillui! Tried this on gns3 running with a VM in Windows and on eve-ng. did not work. The L3 image works fine as is. 79 10 2 1 1
w1z4rd Posted March 29, 2024 Posted March 29, 2024 4 hours ago, netkillui said: Tried this on gns3 running with a VM in Windows and on eve-ng. did not work. The L3 image works fine as is. I did manage to get the IOL L2 image to run on GNS3. I run my GNS3 images directly on my Ubuntu host. I guess the way I do it must be very similar to how you would do it when using the GNS3 VM. When I first tried running the IOL L2 image, it would not run because the image was not an executable. I thus had to `chmod +x` the file. After that, I managed to add it into GNS3 as an IOL device, with no issues. But when I tried running it, GNS3 threw an error. I think the problem that GNS3 had in the beginning was actually writing the startup-config into the switch's NVRAM (or flash, whatever). GNS3 just couldn't do it and it threw an error. (I am not exactly sure but, if I remember correctly, the error was something like "GNS3 could not find nvram in the expected location"). Well, I thought, the only reason that GNS3 is looking for the nvram during bootup, to begin with, would be to put the startup-config in there. I knew it wasn't the IOL image that couldn't find its NVRAM, because it was GNS3 that was complaining, not the IOL itself. So I went to the device's settings in GNS3, and told GNS3 to not use a startup-config. To be sure that the issue had nothing to do with the VM's RAM, I also bumped RAM to 614 MB. I started the switch, and it worked. It actually boots up pretty fast too. I later tried 512 MB RAM, and that worked as well. I tried the L2 IOL because my experience that those ones are a little harder to get to run, and have not yet tested the IOL L3 image. Are you getting an error message when trying to run the L2 image in GNS3? Can you post the error here? And how much RAM did you give it? 4
netkillui Posted March 30, 2024 Author Posted March 30, 2024 19 hours ago, w1z4rd said: I did manage to get the IOL L2 image to run on GNS3. I run my GNS3 images directly on my Ubuntu host. I guess the way I do it must be very similar to how you would do it when using the GNS3 VM. When I first tried running the IOL L2 image, it would not run because the image was not an executable. I thus had to `chmod +x` the file. After that, I managed to add it into GNS3 as an IOL device, with no issues. But when I tried running it, GNS3 threw an error. I think the problem that GNS3 had in the beginning was actually writing the startup-config into the switch's NVRAM (or flash, whatever). GNS3 just couldn't do it and it threw an error. (I am not exactly sure but, if I remember correctly, the error was something like "GNS3 could not find nvram in the expected location"). Well, I thought, the only reason that GNS3 is looking for the nvram during bootup, to begin with, would be to put the startup-config in there. I knew it wasn't the IOL image that couldn't find its NVRAM, because it was GNS3 that was complaining, not the IOL itself. So I went to the device's settings in GNS3, and told GNS3 to not use a startup-config. To be sure that the issue had nothing to do with the VM's RAM, I also bumped RAM to 614 MB. I started the switch, and it worked. It actually boots up pretty fast too. I later tried 512 MB RAM, and that worked as well. I tried the L2 IOL because my experience that those ones are a little harder to get to run, and have not yet tested the IOL L3 image. Are you getting an error message when trying to run the L2 image in GNS3? Can you post the error here? And how much RAM did you give it? Here's my settings and the error message:
jitendra Posted March 30, 2024 Posted March 30, 2024 (edited) @w1z4rd Hi Guys, on GNS3 ubuntu Host VM. thank you...  Edited March 30, 2024 by jitendra
w1z4rd Posted March 30, 2024 Posted March 30, 2024 Nice @jitendra! Did you have to do anything special, or did you just add the image through the GNS3 UI?
Cirus Posted March 30, 2024 Posted March 30, 2024 (edited) Getting the same error as @netkillui. Looks like the error is limited to GNS3 VM. Can anyone help us out fix this? Edited March 30, 2024 by Cirus
jitendra Posted March 30, 2024 Posted March 30, 2024 @w1z4rd Just added image on GUI gns3 host ubuntu also follow your steps. thanks!
hariram Posted March 30, 2024 Posted March 30, 2024 PNET Lab - L2 Image not working. i get below error on wrapper. tail: /opt/unetlab/tmp/9/50/wrapper.txt: file truncated 30/2 14:40:13.66 INF Â Â Device_id = 2 30/2 14:40:13.66 INF Â Â Session_id = 50 30/2 14:40:13.66 INF Â Â port = 30050 30/2 14:40:13.67 INF Â Â NETMAP file created. 30/2 14:40:13.67 INF Â Â TS configured. 30/2 14:40:13.67 INF Â Â TAP interface configured (s=9, n=vunl50_0). 30/2 14:40:13.67 INF Â Â TAP interface configured (s=11, n=vunl50_16). 30/2 14:40:13.67 INF Â Â TAP interface configured (s=13, n=vunl50_32). 30/2 14:40:13.67 INF Â Â TAP interface configured (s=15, n=vunl50_48). 30/2 14:40:13.67 INF Â Â Adding subprocess stdout descriptor (6). 30/2 14:40:13.68 INF Â Â Adding telnet socket descriptor (8). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (9). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (11). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (13). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (15). 30/2 14:40:16.68 ERR Â Â /tmp/netio32818/514,/tmp/netio32818/2,-2070196716,-2070196724. 30/2 14:40:16.68 ERR Â Â Error while connecting local AF_UNIX: Connection refused (2) 30/2 14:40:16.68 ERR Â Â Cannot listen at AF_UNIX (2). ERR: Cannot open AF_UNIX sockets (2). 30/2 14:40:16.68 ERR Â Â Failed to create AF_UNIX socket file (2). 30/2 14:40:16.68 INF Â Â Caught SIGTERM, killing child. 30/2 14:40:16.68 INF Â Â Child is no more running. Â
najibarca Posted March 30, 2024 Posted March 30, 2024 (edited) 3 hours ago, hariram said: PNET Lab - L2 Image not working. i get below error on wrapper. tail: /opt/unetlab/tmp/9/50/wrapper.txt: file truncated 30/2 14:40:13.66 INF   Device_id = 2 30/2 14:40:13.66 INF   Session_id = 50 30/2 14:40:13.66 INF   port = 30050 30/2 14:40:13.67 INF   NETMAP file created. 30/2 14:40:13.67 INF   TS configured. 30/2 14:40:13.67 INF   TAP interface configured (s=9, n=vunl50_0). 30/2 14:40:13.67 INF   TAP interface configured (s=11, n=vunl50_16). 30/2 14:40:13.67 INF   TAP interface configured (s=13, n=vunl50_32). 30/2 14:40:13.67 INF   TAP interface configured (s=15, n=vunl50_48). 30/2 14:40:13.67 INF   Adding subprocess stdout descriptor (6). 30/2 14:40:13.68 INF   Adding telnet socket descriptor (8). 30/2 14:40:13.68 INF   Adding TAP interface descriptor (9). 30/2 14:40:13.68 INF   Adding TAP interface descriptor (11). 30/2 14:40:13.68 INF   Adding TAP interface descriptor (13). 30/2 14:40:13.68 INF   Adding TAP interface descriptor (15). 30/2 14:40:16.68 ERR   /tmp/netio32818/514,/tmp/netio32818/2,-2070196716,-2070196724. 30/2 14:40:16.68 ERR   Error while connecting local AF_UNIX: Connection refused (2) 30/2 14:40:16.68 ERR   Cannot listen at AF_UNIX (2). ERR: Cannot open AF_UNIX sockets (2). 30/2 14:40:16.68 ERR   Failed to create AF_UNIX socket file (2). 30/2 14:40:16.68 INF   Caught SIGTERM, killing child. 30/2 14:40:16.68 INF   Child is no more running.  can you test these two commands : sed -i -e 's/127.0.0.1 xml.cisco.com//' /etc/hosts  Edited March 30, 2024 by najibarca
w1z4rd Posted March 31, 2024 Posted March 31, 2024 15 hours ago, hariram said: PNET Lab - L2 Image not working. i get below error on wrapper. tail: /opt/unetlab/tmp/9/50/wrapper.txt: file truncated 30/2 14:40:13.66 INF Â Â Device_id = 2 30/2 14:40:13.66 INF Â Â Session_id = 50 30/2 14:40:13.66 INF Â Â port = 30050 30/2 14:40:13.67 INF Â Â NETMAP file created. 30/2 14:40:13.67 INF Â Â TS configured. 30/2 14:40:13.67 INF Â Â TAP interface configured (s=9, n=vunl50_0). 30/2 14:40:13.67 INF Â Â TAP interface configured (s=11, n=vunl50_16). 30/2 14:40:13.67 INF Â Â TAP interface configured (s=13, n=vunl50_32). 30/2 14:40:13.67 INF Â Â TAP interface configured (s=15, n=vunl50_48). 30/2 14:40:13.67 INF Â Â Adding subprocess stdout descriptor (6). 30/2 14:40:13.68 INF Â Â Adding telnet socket descriptor (8). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (9). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (11). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (13). 30/2 14:40:13.68 INF Â Â Adding TAP interface descriptor (15). 30/2 14:40:16.68 ERR Â Â /tmp/netio32818/514,/tmp/netio32818/2,-2070196716,-2070196724. 30/2 14:40:16.68 ERR Â Â Error while connecting local AF_UNIX: Connection refused (2) 30/2 14:40:16.68 ERR Â Â Cannot listen at AF_UNIX (2). ERR: Cannot open AF_UNIX sockets (2). 30/2 14:40:16.68 ERR Â Â Failed to create AF_UNIX socket file (2). 30/2 14:40:16.68 INF Â Â Caught SIGTERM, killing child. 30/2 14:40:16.68 INF Â Â Child is no more running. Â Can you try running the binary as root? Something like `sudo x86_64_crb_linux_l2-adventerprisek9-ms.bin` ?
hariram Posted March 31, 2024 Posted March 31, 2024 The host file already have xml.cisco.com not sure i have understand this command "sudo x86_64_crb_linux_l2-adventerprisek9-ms.bin" - dont think that work in Linux. i run manually i get below error : root@pnetlab:/opt/unetlab/addons/iol/bin# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/x86_64_crb_linux_l2-adventerprisek9-ms.bin 1 IOS On Unix - Cisco Systems confidential, internal use only Warning: Abnormal ciscoversion string, please notify the IOU team with the name of this branch Warning: we parsed - NULL Aborted (core dumped) (other images - boots as expected) Â
Popular Post w1z4rd Posted March 31, 2024 Popular Post Posted March 31, 2024 1 hour ago, hariram said: The host file already have xml.cisco.com not sure i have understand this command "sudo x86_64_crb_linux_l2-adventerprisek9-ms.bin" - dont think that work in Linux. i run manually i get below error : root@pnetlab:/opt/unetlab/addons/iol/bin# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/x86_64_crb_linux_l2-adventerprisek9-ms.bin 1 IOS On Unix - Cisco Systems confidential, internal use only Warning: Abnormal ciscoversion string, please notify the IOU team with the name of this branch Warning: we parsed - NULL Aborted (core dumped) (other images - boots as expected)   From your output, it seems that this problem has nothing to do with permissions. But for completeness' sake, try the following:   `sudo` is a fairly common tool in Linux. As far as I can tell, Ubuntu has always included `sudo`, and since the GNS3 VM is based on Ubuntu, I would be very surprised if `sudo` didn't work in the GNS3 VM shell. To see how `sudo` works, try the following within the GNS3 VM: This is the hidden content, please Sign In or Sign Up `sudo` will ask for your password, and if you provide the `gns3` user's password, you should get the directory contents. Then try the 3 following, separate commands: This is the hidden content, please Sign In or Sign Up  Another thing you can try is to copy the .yaml file that you can find with the image into the same directory as the image (/opt/unetlab/addons/iol/bin/ in your case).   177 27 2 3
netkillui Posted March 31, 2024 Author Posted March 31, 2024 (edited) 2 hours ago, hariram said: The host file already have xml.cisco.com not sure i have understand this command "sudo x86_64_crb_linux_l2-adventerprisek9-ms.bin" - dont think that work in Linux. i run manually i get below error : root@pnetlab:/opt/unetlab/addons/iol/bin# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/x86_64_crb_linux_l2-adventerprisek9-ms.bin 1 IOS On Unix - Cisco Systems confidential, internal use only Warning: Abnormal ciscoversion string, please notify the IOU team with the name of this branch Warning: we parsed - NULL Aborted (core dumped) (other images - boots as expected)  1. remove xml.cisco.com entry from /etc/hosts file 2. run this command "iptables -I OUTPUT -p udp --dport 53 -m string --hex-string "|03|xml|05|cisco|03|com" --algo bm -j DROP" 3. Try IOL2 image again.  Edited March 31, 2024 by netkillui 5 2
hariram Posted March 31, 2024 Posted March 31, 2024 sure i have suggested by other friend. same steps and it works.
Mark1 Posted April 1, 2024 Posted April 1, 2024 @netkillui Hi. Thank you for the images. How to run them on EVE-NG Community? They don't work for me. 1
Cirus Posted April 2, 2024 Posted April 2, 2024 On 3/31/2024 at 7:21 PM, netkillui said: 1. remove xml.cisco.com entry from /etc/hosts file 2. run this command "iptables -I OUTPUT -p udp --dport 53 -m string --hex-string "|03|xml|05|cisco|03|com" --algo bm -j DROP" 3. Try IOL2 image again.  Hey, Thanks a lot! That worked for me in GNS3 VM. 1 1
jitendra Posted April 2, 2024 Posted April 2, 2024 (edited) Hi team. I have successfully able to run L2 image on EVE-NG & GNS3 VM hosted Windows.  Many Many Thanks man!!!! @netkillui Edited April 2, 2024 by jitendra
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now