GNS3 Virtualbox : How to use Virtual Box Virtual Machine in GNS3 as Virtual Host
This article is about Gns3 Virtualbox and I will show you how to connect virtualbox with gns3. Virtualbox is free software used for creating virtual machine. Now what is a virtual machine? A Virtual machine is virtual operating system that can be run within your operating systems. For example you are running windows 10 on your computer. with the virtualbox you can install windows 8 virtually. In this way you can run the windows 10 and windows 8 at a time under the same computer. You can run multiple VM on single computer, multiple VMs can be used on single computer for following purposes:
- You can create different networking labs.
- If you can have a powerful server, with multiple VMs you can install different application server on same server which is very economical.
- It can be used for practice, suppose you have windows OS and with virtualbox you can install Linux OS on your computer virtually.
In GNS3 you can connect PC to your networking devices with following ways:
Advantage of using virtualbox VM over other options is that you have the real real PC with OS of your choice with full control. Which is much more comfortable for some people. Following are the steps for connecting virtualbox with GNS3:
- Create a Virtual Machine with Virtualbox
For connecting GNS3 with virtualbox first you have a VM, so first create a virtual machine. If you don’t have any idea of creating virtual machine following video is very helpful for you:
Once VM is created it will appears in list of OS of your virtualbox.
- Now open the GNS3 and click on Edit\Preferencesand then from VirtualBox VMsmenu clicking on new button for creating virtual host in gns3.
- Select your VM from list, in my case it is windows 8 which I have create with above define process.
- Now finish the wizard a new VM will appear in GNS3 virtual PCs list as shown in figure. Insert the win 10 and router on gns3-Dashboard and connect the virtual machine with that router.
- For customizing the NIC of virtual host, start your VM, now for configuring IP address. Open network and sharing center and from adapter setting assign the IP address and gateway to your VM. In order to communicate it with your router you must have to assign the IP to both devices from same subnet. For example I have assigned the 22.214.171.124 and 126.96.36.199 with subnet mask 255.0.0.0.
For assigning the IP address to router use the following commands
Interface e0 (select the interface which is connected to your VM)
ip address 188.8.131.52 255.255.255.0
For testing and verification connection you can ping your router from your VM command prompt, for this go to VM and type the cmd in Run and ping your router IP.