Wednesday, January 20, 2016

Install GNS3 v1.4 on Windows 10


Hello world! It has been quite a bit of time since I last wrote a post here. In my defense I have been insanely busy with family, work, and especially with planning my next SolarWinds NPM book. So on that note, let’s get straight to today’s topic – install GNS3 v1.4 on Windows 10.

What is GNS3?


GNS stands for “graphical network simulator 3”. It is emulation software that can run real-time Cisco IOS, JunOS, and other network OSes in a virtual environment (think virtual machines for network OSes such as Cisco’s IOS routers). GNS3 is very popular for those that create proof-of-concept networks for their own enterprise environments but it is also very popular for those training for the coveted Cisco certifications. It is important because GNS3 can be used in place of real hardware. As of the time of this writing the current GNS3 release is v1.4.0.

I am personally using GNS3 to help me with my next SolarWinds book. Plus it is just fun learning how to set up networks in a virtual environment. So lets get started!

This guide assumes you have at least an intermediate knowledge of networking and server administration.

Requirements:

  1. A Windows 10 Pro PC with at least 8GB RAM and Quad-core CPU.
    ** At the time of writing this post I’m using Windows 10 Pro build 10586.63 with 16GB RAM. (These instructions have not been tested on Windows 10 Home editions but it should work.)
  2. VMware Workstation 12 Pro installed and ready to go. Trial version works fine.
Assuming you have VMware Workstation 12 Pro installed on your Windows 10 Pro PC, we can get started! Lets download the software we need:
  • GNS3 v1.4.0
  • GNS3 Virtual Machine OVA Image for VMware
  • Cisco 3660 IOS image

Download the GNS3 software


Navigate to www.gns3.com and log in (sign up for an account if you don’t have one). On the downloads page, note the links in the screenshot below. You need the Windows download as well as the GNS3 VM. Get both of them and save the files locally.
image

Get a supported Cisco IOS image


Cisco IOS images are downloaded from Cisco.com provided you are legally licensed for the software. Luckily I am legally licensed. For this example I am using the image c3660-jk9o3s-mz.124-25d.bin.

Import the GNS3 VM OVA into VMware Workstation


Before we GNS3 we need to import the VM image into VMware Workstation so it is ready to go.
  1. Launch VMware Workstation.
  2. Click File > Open
    image
  3. Locate and select the GNS3 VM.OVA file, click Open.
  4. The Import Virtual Machine window will appear. Select the storage path and name for the VM (I’m using the default options). Click Import to finish.
    image
The VM should now be imported and available. Leave VMW12 running (don’t close it) because GNS3 will automatically access the VM on-demand. We can now proceed with installing and configuring GNS3 on our PC.

Installing GNS3


Now that we have all of the prerequisite items, we can move forward with the installation.
  1. Launch the installer, click Next.
  2. Agree to the license terms, click I Agree.
  3. At Choose Start Menu Folder, click Next.
  4. At Choose Components, select ALL items and click Next.
  5. At Choose Install Location, define a location and click Install. **Default C:\Program Files\ is recommended.
  6. The WinPcap installer will appear. Click Next
  7. Click I Agree on the license terms.
  8. Make sure the check mark is selected to automatically start the driver at boot time. Click Install, then Finish
  9. The Wireshark installer will appear. Click Next, then click I Agree.
  10. Select all components then click Next.
  11. On Additional Tasks, click Next.
  12. On Choose Install Location, leave the default location and click Next.
  13. Remove the checkmark to install WinPcap (because we already installed it). Click Install.
  14. When Wireshark is installed, click Next then Finish.
  15. The SolarWinds Response Time Viewer installer will appear. Enter your email address then click Continue.
  16. Click Next,
  17. Accept the license terms, Click Next,
  18. At Choose Install Location, leave the default path then click Next, then Next again.
  19. Click Finish.
  20. The GNS3 software will finish installing on it’s own. Click Next when done.
  21. The “SolarWinds Standard Toolset” free license option appeared for me. I opted out of the free offer. I leave it up to you if you want it.
  22. Go ahead and click Finish to launch GNS3 for the first time.
Lets move forward with initial setup.

Configuring GNS3


  1. The Setup Wizard will appear. Since we are using the GNS3 VM in VMware, choose the Local GNS3 VM option then click Next.
    image
  2. Select VMware and the VM we imported. I recommend changing the vCPU cores to 2x and reducing the RAM to 2048 for now. Click Next to proceed.
    NOTE: You can always increase the vCPU cores to 4x and increase the RAM at a later time if you plan on having a larger virtual environment. My personal configuration is shown in the screenshot below.
    image
  3. GNS3 will automatically start up the virtual machine in VMware. At Add Virtual Machines, check the box “Add an IOS router using a real IOS image” then click Finish.
    image
  4. Choose the GNS3 VM server type and click Next.
    image
  5. Choose your IOS image and click Next.
    image
  6. At Name and Platform, choose the appropriate options for your image and click Next.
    NOTE: The default options will suffice for most. When in doubt just use the default options.
    image
  7. Select the default RAM and click Next.
    Again, when in doubt just use the default option.
    image
  8. The next screen is where you define the default adapters that are added automatically when a new copy of this device is added to the GNS3 lab environment. Choose the adapters you want then click Next.
    image
  9. At the idle-pc finder, skip this section and just click Finish. (This can be done at a later time.)
  10. The Preferences window will appear. Just click OK to close.
  11. Create a new Lab name then click OK.
    image
And that is it! GNS3 is now installed and working in VMware Workstation. If you open up VMware you should see the GNS3 virtual machine running and should look similar to the screenshot below.
image

Adding Your First Device to the Lab


Everything is now good to go. So lets go ahead and add in the first device and get it up and running!
Click the devices button, drag and drop the device into the lab pane, then click the Play button.
image

If everything is good, you’ll see the device status in green on the topology pane. Right-click the device and choose Console to open up the PuTTY console window to confirm.

From this point you should head over to the GNS3 community and start learning! Here is a direct link: https://gns3.com/community.

There are also a bunch of additional how-to/example videos on YouTube for GNS3 so you’ll want to look there as well.

A few notes:
  • Don’t close VMware Workstation when you have GNS3 open because it will shut down your virtual machines and cause GNS3 to crash.
  • Don’t close GNS3 until you have saved your lab because GNS3 will automatically shut down the GNS3 VM in VMware Workstation when the app is closed. Also when you launch GNS3 it will automatically launch VMware Workstation and start up the VM. This is by design and is helpful so you won’t have to remember to start/stop the VM when launching or closing GNS3.
Well, that’s all I have for now. I’m still working on setting up my GNS3 and SolarWinds lab environments so maybe I’ll have more to write about soon. Have fun setting up your own labs!

- Joe