Saturday, April 16, 2016

Adding Hyper-V VM's to your GNS3 topology

 on  with No comments 
In , ,  
In a previous post, I covered using the IOU VM on Hyper-V with GNS3.  This time I'm going to go a little more in depth on using Hyper-V virtual machines in your GNS3 topology.  Since VirtualBox and Hyper-V do not play nicely together, I have to use my Hyper-V VM's on the servers. If you have Hyper-V installed, you'll be in a similar situation.

We'll begin by creating a virtual switch in Hyper-V.   Load the Hyper-V Manager, and then under Actions, select "Virtual Switch Manager."  With New virtual network switch hilighted, choose Internal in the box under "What type of virtual switch do you want to create?"  Click on "Create Virtual Switch."

Give it a name that has some meaning to your usage.  I generally name them with the VLAN that they're going to connect to on the GNS3 switch since I'll tie multiple VMs to that virtual switch at some point, but you can also name it after the hostname of the virtual machine if that's all you're ever going to tie to it.  Again, double check that Internal Network is selected, and then hit OK to create the switch.

Back at the Hyper-V manager, right click on the VM you want to use and select Settings.  On the left side of the settings dialog box, find Network Adapter, and click on it.  On the right side, find the drop down menu under Virtual Switch and select the virtual switch that you just created, and then click OK.  Note that you can tie as many VMs to this virtual switch as you need to.

With all the virtual switches that you will need created and in use, we'll turn our attention to GNS3.  From the devices menu, grab a cloud and drop it into your topology.  A popup asking you to choose a server will appear, the default selected option should work, assuming everything else is already working.  Right click on the cloud and choose configure.  In the dialog box that comes up, hilight the cloud you just dropped into the configuration on the left.  Under General Ethernet NIO, select the virtual switch you created, and then hit OK.  You can right click on this cloud again to change it's hostname or to change it's symbol (the icon used to note the device).

In my configuration, I have to use a GNS3 "Ethernet Switch" in between the cloud device and any IOU device.  I don't know why exactly, but since it's simple enough to work around I don't really care.  In the below screenshot, ACS1 is my cloud interface that the ACS server is connected to.  I'll change the symbol and name if I ever tie other hosts to that virtual switch.



Share:

0 comments:

Post a Comment

Discuss this post!