title | description | ms.topic | ms.date |
---|---|---|---|
Set up a networking lab with GNS3 |
Learn how to set up a lab using Azure Lab Services to teach networking with GNS3. |
how-to |
04/19/2022 |
[!INCLUDE preview note]
This article shows you how to set up a class that focuses on allowing students to emulate, configure, test, and troubleshoot virtual and real networks using GNS3 software.
This article has two main sections. The first section covers how to create the lab. The second section covers how to create the template machine with nested virtualization enabled and with GNS3 installed and configured.
[!INCLUDE must have subscription]
[!INCLUDE must have lab plan]
[!INCLUDE create lab] Use the following settings when creating the lab.
Lab settings | Value |
---|---|
Virtual machine (VM) size | Medium (Nested Virtualization) |
VM image | Windows 10 Pro, Version 1909 |
[!INCLUDE configure template vm]
To configure the template VM, we'll complete the following major tasks.
- Prepare the template machine for nested virtualization.
- Install GNS3.
- Create nested GNS3 VM in Hyper-V.
- Configure GNS3 to use Windows Hyper-V VM.
- Add appropriate appliances.
- Publish template.
Follow instructions to enable nested virtualization to prepare your template virtual machine for nested virtualization.
- Follow the instructions for installing GNS3 on Windows. Make sure to include installing the GNS3 VM in the component dialog, see below.
Eventually you'll reach the GNS3 VM selection. Make sure to select the Hyper-V option.
This option will download the PowerShell script and VHD files to create the GNS3 VM in the Hyper-V manager. Continue installation using the default values.
Important
Once the setup is complete, don't start GNS3.
Once the setup has completed, a zip file "GNS3.VM.Hyper-V.2.2.17.zip" is downloaded to the same folder as the installation file, containing the drives and the PowerShell script to create the Hyper-V vm.
- Extract all on the GNS3.VM.Hyper-V.2.2.17.zip. This action will extract out the drives and the PowerShell script to create the VM.
- Run with PowerShell on the "create-vm.ps1" PowerShell script by right-clicking on the file.
- An Execution Policy Change request may show up. Enter "Y" to execute the script.
- Once the script has completed, you can confirm the VM "GNS3 VM" has been created in the Hyper-V Manager.
Now that GNS3 is installed and the GNS3 VM is added, start up GNS3 to link the two together. The GNS3 Setup wizard will start automatically..
- Use the Run appliances from virtual machine option. Use the defaults for the rest of the wizard until you hit the VMware vmrun tool cannot be found error.
- Choose Ok, and Cancel out of the wizard.
- To complete the connection to the Hyper-V vm, open the Edit -> Preferences -> GNS3 VM and select Enable the GNS3 VM and select the Hyper-V option.
At this point, you'll want to add the appropriate appliances for the class.
Now that the template VM is set up properly, and ready for publishing there are a few key points to check.
- Make sure that the GNS3 VM is shut down or turned off. Publishing while the VM is still running will corrupt the VM.
- Close down GNS3, publishing while and running can lead to unintended side effects.
- Clean up any installation files or other unnecessary files.
Important
Publishing while the VM is still running will corrupt the template VMs and create unusable lab VMs.
If you would like to estimate the cost of this lab, you can use the following example:
For a class of 25 students with 20 hours of scheduled class time and 10 hours of quota for homework or assignments, the price for the lab would be:
25 students * (20 + 10) hours * 84 Lab Units * 0.01 USD per hour = 630 USD.
Important
Cost estimate is for example purposes only. For current details on pricing, see Azure Lab Services Pricing.
This article walked you through the steps to create a lab for network configuration using GNS3.
[!INCLUDE next steps for class types]