Networking

Setup GNS3 VM VMware ESXi

In this post we will take a look at how to setup GNS3 VM VMware ESXi and the process to configure your VM and network settings for GNS3.

GNS3 has definitely matured as a product and offers tremendous functionality especially if you look at the cross vendor platform support that it offers. ย I definitely prefer the interface of GNS3 over other products such as VIRL. ย VIRL is maturing and getting there as a product, but the VM Maestro interface leaves a lot to be desired. ย Anyways, without getting into a quick review of the differences between the different products, I wanted to write up a quick post on how to setup GNS3 VM VMware ESXi installation. ย I had recently refamiliarized myself with GNS3 and it has changed a good amount since the last time I had used it.

One of the bigger changes lately is the use of the GNS3 VM instead of the IOU VM that has replaced this functionality moving forward. ย However, I found the documentation a bit all over the place when it came to setting up the GNS3 VM so I wanted to quickly encapsulate what I did to get it up and running in my ESXi lab environment.

Setup GNS3 VM VMware ESXi

Navigate to the GNS3 official website and download the OVA template for VMware ESXi. ย You will need to create a free account if you have not done so already. ย Notice theย Download the GNS3 VMย link at the bottom.

gns3esxi001

Once you have downloaded the OVA template, you will deploy this in the normal means of deploying an OVA file in vCenter. ย Either using the WebUI or vCenter client, deploy the template. ย The VM boots for the first time. ย I love the extending tongue of the GNS3 logo to show boot progress.

gns3esxi02

Upon the first boot, you may be prompted to configure the network settings. ย In this particular lab environment, I didn’t have a DHCP server running, so the ethernet adapter wasn’t able to pull an IP address as you can see below. ย By default it is set to DHCP.

gns3esxi01

Also, since the VM uses KVM, so you must enableย nested virtualization or you will receive the error message below.

gns3esxi01b

To enable nested virtualization capabilities on the GNS3 VM, open the WebUI in vCenter and in theย Edit Settings dialog box under theย CPU, you will see the option forย Hardware virtualization. ย Place a check in theย Expose hardware assisted virtualization to the guest OS. ย This must be done when the VM isย powered off.

gns3esxi01c

Now, when you boot, you should not see the error. ย Now we will configure theย Networking of the GNS3 VM. ย Select theย Networking –ย Configure networking settings option in the menu.

gns3esxi03

This will open the low level edit of theย /etc/network/interfaces file where you can edit your network settings. ย To disable DHCP and set a static IP address, comment/uncomment out the following:

  • iface eth0 inet dhcp
  • iface eth0 inet static

As you can see below, I commented out theย DHCP line and thenย uncommented theย static line and set my IP address parameters in that section.

gns3esxi05

After you save the file, you will be prompted to reboot to instantiate the network changes you have made.

gns3esxi04

As you can see when you boot the VM, you should see your new IP address configured.

gns3esxi06

Thoughts

GNS3 has come a long way and is certainly in my humble opinion the best network lab software you can use due to the wide range of vendors that it can simulate as well as the ease of use of the interface. ย Add to the fact, that you can even use your VIRL images in the new GNS3 VM, it becomes a swiss army knife of capabilities. ย In the next post, I will show how to upgrade/install your GNS3 Windows installation as well as how to install appliances from the marketplace and import your VIRL images. ย As we have show in thisย setup GNS3 VM VMware ESXi post, the process to get up and running with the new GNS3 VM is painless and easy.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.