6 Adding a Virtual Machine to GNS3

Mathew J. Heath Van Horn, PhD

GNS3 is unique from other simulators such as Cisco’s Packet Tracer. With GNS3, you can add any VM you create in VirtualBox and use it within the GNS3 environment. The purpose of this lab is to give you experience in creating GNS3 appliances using VMs

Learning Objectives

  • Create GNS3 appliances using VirtualBox VMs

Prerequisites

Deliverables

  • None – this is a preparatory lab for other labs

Resources

Contributors and testers

  • Jacob M. Christensen, C.I.S. Student, ERAU-Prescott
  • Cody Shinkyu Park, Honeywell Software Engineer, ERAU-Prescott Alumni
  • Evan Paddock, Cybersecurity Student, ERAU-Prescott
  • Dante Rocca, Cybersecurity Student, ERAU-Prescott
  • Sawyer Hansen, Cybersecurity Student, ERAU-Prescott

Phase I – All the steps required

This is pretty straightforward. In this lab, we are using Windows server VM as the example, but any VM in VirtualBox can be used.

Screenshot of command
Figure 5 – Screenshot of the VM showing in GNS3 Workspace
  1. Open Virtual Box and choose a VM you want to import into GNS3
  2. Start GNS3
  3. Create a new lab
  4. On the GNS3 menu, navigate to Edit and then Preferences (Figure 1)
  5. Select VirtualBox VMs and you will see the VirtualBox VMs already added to GNS3
  6. Select new at the bottom of the window (Figure 2)
  7. Make sure the radio button for running the VM on my local computer is selected and click on Next (Figure 3)
  8. You will now see a window with a drop-down box to select any of the VMs that are loaded in VirtualBox; in this example, we will select Windows Server 2022 for GNS3 (Figure 4)
  9. Click Finish
  10. To edit the properties of the VM, click edit on the bottom left of the window
    1. Here you can change things such as the default symbol, device name, RAM, etc
    2. In the Network tab, make sure to check the Allow GNS3 to use any configured VirtualBox adapter option box
    3. When you are finished, make sure you click Apply or risk the VM not being added
  11. Click OK
  12. Click on the all devices button and you can now see our VM added to the appliance list (Figure 5)
  13. You can drag the recently added VM to the GNS3 Workspace and start it (Figure 6)
  14. When the VM starts it will run outside of GNS3, so look for it on your toolbar as a VM (Figure 7)
  15. That’s it.  Remember you can do this for any functional VM in VirtualBox. However, VMs use much more resources than the emulated devices within GNS3. So if you add 10, Windows 11 VMs, you will overload your host machine’s processor pretty fast
End of Lab
List of Figures
Screenshot of command
Figure 1 – Adding VirtualBox VMs to GNS3

 

Screenshot of command
Figure 2 – Adding new VirtualBox VMs to GNS3

 

Screenshot of command
Figure 3 – Radio button selected

 

Screenshot of command
Figure 4 – Adding Windows Server 2022

 

Screenshot of command
Figure 5 – Screenshot of the VM showing in GNS3 Workspace

 

Screenshot of command
Figure 6 – Drag the new VirtualBox object to the GNS3 Workspace

 

Screenshot of command
Figure 7 – Looking at the toolbar for the VM

 

License

Icon for the Creative Commons Attribution 4.0 International License

Mastering Enterprise Networks Copyright © 2024 by Mathew J. Heath Van Horn is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book