Gns3 Vmware Workstation


An unexpected error has occurred. Error Message: Unexpected token G in JSON at position 0 Report Feedback Return to Home page.

GNS3 VMware Workstation Player allows you to run nested Virtualization for free. Download the VMware Player from the VMware website and the GNS3 VM from the GNS3 website. Then integrate the GNS3 GUI with the GNS3 VM and run complex network topologies. VMware Workstation Players (and VMware Workstation Pro users) can use a script included with GNS3 (named gns3vmnet) to automatically create and configure the additional VMnets necessary. In Windows, this executable is located in the default GNS3 installation directory. GNS3 supports both VMware Workstation Pro and VMware Fusion (Paid software), as well as VMware Player (Free software). NOTE VMware Player requires the installation of additional free software (VMware VIX). If you forget to install this, GNS3 will prompt you to do so (and open a browser to the link on VMware’s website). GNS3 should also run on VM Player - free from vmware. I only use VMware Workstation. Tried VirtualBox and VM Player few versions ago and it was ok. I am sure they improve the software since then. I know GNS3 runs on VMware Workstation well. If u don' have VMware Workstation, use VirtualBox. I think VirtualBox is better then free VM Player.

The claims and recommendations in this post are my experiences experimenting with the different software involved over a weekend. I could very well be wrong about multiple things here, and if you feel that I am, don’t be afraid to comment.

Software used:

  • Windows 7
  • GNS3 1.1
  • VMware Workstation 10.0.1
  • Virtualbox 4.3.18
  • XRv 5.2.0

1. Introduction

Download Gns Vm

Cisco’s XRv is a VM of their IOS XR operating system that can be deployed on x86 systems. Commercially, it’s marketed for use as an out of band route reflector, but for enthusiasts like us, it’s a tool for playing around with XR without needing to rent relatively expensive rack time, or buying routers instead of a new car. It doesn’t have a complete set of feature, and lower layer features that are “closer to the hardware” are less likely to work. An example would be something like VPLS. This thread over at one of Cisco’s forums has more discussion on that issue:

XRv is supposed to be deployed on a bare metal hypervisor which presents a problem for home users like me who only has a single computer with enough RAM. The good news is that it works fine on VMware Workstation. The bad news is that if you don’t read a post like this one, you risk losing a ton of time on solutions that should work, but really don’t. A big problem with XRv is its boot time of 10+ minutes which makes experimenting with different set ups incredibly tedious.

This post will not describe every single detail of these configurations and will instead simply point you in the right direction to avoid the worst pitfalls. If you need more details, I’m sure you can find that elsewhere.

2. What Doesn’t Work

2.1 GNS3 + Virtualbox + XRv

Any kind of integration with GNS3 seems to be broken. What’s worse is that it’s not completely broken, occasionally allowing packets to flow – something that caused me to waste a lot of time on it. The general idea on how to get XRv into GSN3 is:

  • Install Virtualbox
  • Create one or more XRv VMs in Virtualbox and assign them several network adapters connected to host network adapters.
  • Each installed network adapter will map to one out of 4 “physical” interfaces within XRv
  • Install GNS3
  • Use GNS3’s Virtualbox wrapper feature to import the VM into GNS3.
  • Connect the VM to whatever else you have in your GNS3 topology.

The problems are twofold:

  • The interface numbers do not properly match up. Meaning, the first physical interface in XRv will not always be interface 1 in GNS3. This wouldn’t necessarily be a problem if it was a consistent offset, but it doesn’t seem to be.
  • Worse, when I imported two identical sets of VMs, communication was possible between two of them, but the other two were dead. This is some kind of bug with GNS3, Virtualbox and XRv. This long thread has more details:
  • The solutions presented in that thread involve things like removing and replacing links between devices, something that you wouldn’t be interested in messing around with when labbing.

2.2 GNS3’s Cloud Feature

The next thing I tried was using GNS3’s cloud feature. For anyone not familiar with GNS3, it essentially allows you to send packets from any network adapter installed on the machine into whatever device you have it connected to in GNS3. It’s great for things like connecting Windows or Linux VMs to your router topology. I had high hopes for this approach because both Virtualbox and VMware Workstation allows you to output traffic from a “vswitch” into a software network adapter installed on the host system. Getting the traffic from the “virtualized” NIC into GNS3 through the cloud feature seems conceptually viable, but I could not get it to work. With Virtualbox I had a similar experience to how Virtualbox behaved with the previously mentioned wrapper feature; it worked, and then it didn’t. VMware Workstation didn’t want to play ball at all.

3. What Actually Works

Using VMware Workstation (VMW), but keeping all traffic within the virtual network of that system seems to work without issues. In other words, your devices will communicate with one another using VMW’s virtual switches, called vmnets. According to VMware, each vmnet is a “virtual switch”, but it’s conceptually more like a virtual hub. When a networking person thinks of a switch they think of a device with ports where each port belongs to certain vlans and that the switch learns the location of MAC addresses connected to other ports that belong to the same vlan, but this doesn’t seem to be how a vmnet work. Instead, it appears that frames are simply copied to all other adapters connected to the same vmnet, irrespective of what vlan-ids you add the the frames.

Normally, a switch would drop frames tagged with a vlan-id if the port expects untagged frames, but a vmnet forwards tagged frames just fine. Another way of thinking about it is that the vmnet is a switch where all ports are trunks with an allowed list of 1-4095. Ultimately, it’s hard to verify any of this beyond simply observing how connected devices behave since you don’t have any visibility into the vmnets. At first glance, this might seem like a bad thing, but it’s actually not since it allows us to create arbitrary topologies with just one vmnet. More on that later.

3.1 Configuring VMW For XRv

3.1.1 Creating the VM

Creating an XRv VM just involves adding a new VM with the XRv .vmdk as the harddrive. It’s supposed to have 3 GB of RAM, but I’ve heard that you can get away with less. Downloading the XRv files through Cisco’s normal software channels requires an account with certain credentials, however, using this link: allows a normal user like me to download it. Presumably, this discrepancy is a mistake, but who knows.

3.1.2 Getting Console Access

After successfully creating your VM and booting it, you’ll eventually end up with a blank screen. It’s easy to think that you’ve broken something, but that’s not the case. The router console output is just not displayed in the standard VM display output. To fix this you need to use something called a serial named pipe. To get console access you need to add a serial port to the VM and set it as named pipe:

If you are like me, you’ve never heard of a named pipe before. What is it? It’s basically a way to copy (or “pipe”) any input/output to and from the virtual machine’s serial port from the host system.

Gns3 vmware workstation 16

To interface with the named pipe via telnet, we need to use a tool called Named Pipe TCP Proxy found here: After installation it should be self-explanatory how to add a named pipe and map it to a port on the localhost. Just note that you need to start the program as administrator for it to be able to save settings.

At this point you should have console access to your XRv VMs,

3.1.3 Network Adapters

At this point your XRv VM will not have any external facing interfaces because you haven’t properly enabled any vNICs for it. The first network adapter added to the VM will always be the management interface, and any subsequent adapters will map to Ethernet interfaces on the XRv. This image, which I’ve borrowed from Cisco’s XRv configuration guide, illustrates this:

We will not be using the mgmt interface since we have our named pipes for console, but we do need at least 1 Ethernet interface. The minimum is thus 2 network adapters on the VM to get access to the first gig0/0/0/0 interface. According to the configuration guide, XRv supports up to 128 interfaces.

3.1.4 Editing the .vmx file

Just adding the network adapters to the VM will not work since they, by default, will be of the wrong “type”. XRv wants the “e1000” type, and this must be manually edited in the VM configuration file since there’s no option in the Workstation GUI. Find the .vmx file and open it with a text editor. You should see something similar to this:

ethernet0.present = “TRUE”
ethernet0.connectionType = “custom”

Add the line ethernet0.virtualDev = “e1000” after ethernet0.present:

ethernet0.present = “TRUE”
ethernet0.virtualDev = “e1000”
ethernet0.connectionType = “custom”

Do this for all adapters that you’ve added to the VM and they should show up as external facing interfaces in XRv.

4. Networking

You could create a network by adding several interfaces to each VM and connect them to different vmnets to create a topology. This is quite inefficient however since creating a new logical topology would involve reconfiguration of the vmnets. It’s easier to connect one interface from each XRv to the same vmnet and rely on dot1q subinterfaces to create the logical topology.

Creating any arbitrary connection now just involves adding a dot1q subinterface on the two devices in question.

5. Conclusions

I hope that this post has been helpful and that I haven’t left out any key piece of information. Good luck!

Want to know how to install, configure and setup GNS3 2.2? Well, these videos show you how. In this video, I show you how to integrate the GNS3 VM with the GNS3 GUI, setup Intel VTX in your computer’s BIOS and make sure nested virtualization is enabled. Follow these steps to make sure you can get your GNS3 network working in preparation to run Cisco devices such as Cisco VIRL appliances on GNS3.

In subsequent videos I’ll show you how to download Cisco IOS images and use them in GNS3.

Download Gns3 Vmware Workstation

Previous Video:

Overview: 0:00
Download GNS3 VM: 2:19
Download VMware Workstation: 4:10
Install VMware Workstation: 5:03
Import GNS3 VM into VMware: 7:50
GNS3 GUI and GNS3 VM integration: 8:32
KVM support available: True: 10:30
Configure VTx in Computer BIOS: 11:04
Enable GNS3 KVM Support: 13:45
GNS3 RAM and CPU: 14:12
New Project: 16:25
Save project and restore project: 18:45

VIRL Resource Calculator:
GNS3 Calculator

GNS3 links:
GNS3 website:
GNS3 GitHub page:
Free Solar-PuTTY:
Free Engineers Toolset:
What is VTX / x86 virtualization?

Free Software:
SolarWinds TFTP Server:
WAN Killer:
Engineers Toolset:
IP Address Scanner:
Network Device Scanner:
Wifi Heat Map:
Wifi Analyzer:
SolarWinds NPM:

The Autotools files are at cryptopp-autotools, and the Cmake files are at cryptopp-cmake. The repositories are in my GiHub because this is the sort of administrivia that Wei Dai, who wrote the library and provides the Crypto GitHub, prefers to avoid. Bitcoin Core uses the autotools build system, but CLion only supports projects using CMake, so you can't use Core with CLion. You should be able to use Core with Eclipse CDT and NetBeans as those support Autotools. You may need to do some special configuring for it to work properly. Autotools projects (CPP-193) Also, consider working with the unsupported or custom project models via Compilation Database. (Maintenance Mode) and the latest version is only compatible up to CLion 2020.1 and even then only on Linux. Our company is looking at moving to Bazel and first-class support on all platforms for this would be. Clion autotools

Cisco Press Book:
Good O’Reilly Book:

Packet Tracer

10x Engineer
Cisco Devnet Associate

Gns3 Vmware Workstation Player

CCNP Enterprise
CCNP Security
CCNP Data Center
CCNP Service Provider
CCNP Collaboration
Cisco Certified Devnet Professional
Cisco Certified Network Professional

Linux Professional Institute

Gns3 Vmware Workstation Pro 15

#gns3 #eveng #virl .