Vyatta OS under VirtualBox in GNS3



1. Download VyOS and VirtualBox Extention from
2. Install VirtualBox Extention
click menu File/Preferences/Extentions
click triangular icon on the right and point to downloaded VirtualBox Extention
3. Open VirtualBox
click New
4. Welcome to the New Virtual Machine Wizard
click Next
5. VM Name and OS Type
Name: VyOS
Operating System: Linux
Version: Debian (64 bit)
click Next
6. Memory
   512 MB
   click Next
Virtual Hard Disk
   tick Boot Hard Disk
   clck Create new hard disk
7. Welcome to the Create New Virtual Disk Wizard
   click Next
8. Hard Disk Storage Type
   click Dynamically expanding storage
   Hard drive file type: VMDK
   click Next
9. Virtual Disk Location and Size
Location: VyOS
Size: 2 GB
click Next
10. Summary
click Finish
11. click VyOS
click Settings
click System
   untick Floppy Drive
   untick Enable absolute pointing device
click Display
   Video Memory: 1MB
click Audio
   untick Enable Audio
click Network
   click Adapter 1
      tick Enable Network Adapter
      Attached to: Bridged Adapter
      Name: Realtek PCIe FE Family Controller
click USB
   untick Enable USB Controller
click Storage
   click IDE Controller/CD-ROM boot from VyOS iso
click Serial Ports
   tick Enable Serial Port
   Port Number: COM1
   Port Mode: Host Pipe
   tick Create Pipe
   Port File Path: \\.\pipe\VyOS
click OK
click Start
12. Configure VyOS
Login: vyos
Password: vyos
$install system
Would you like to continue? [Yes]
Partition [Auto]:
Install the image os? [sda]
This will destroy all dta on dev/sda
Continue? (Yes/No) [No}: yes
How big a root partition should I create? [2147 MB]:
Which one should I copy to sda? [/opt/vyatta/etc/config/config.boot]:
Enter vyatta password: vyos
Retype vyatta password: vyos
Which drive should GRUB modify the boot partition on? [sda]
Eject VyOS iso CD-ROM
   click Settings/Storage
   click icon on CD/DVD Drive and click “Remove disk from virtual drive”
13. clone VyOS
right click VyOS/Clone
New machine name: VyOS1
   tick Reinitialize the MAC addrress of all network cards
   click Next
Clone type
   click Full clone
   click Clone
right click VyOS/Clone
New machine name: VyOS2
   tick Reinitialize the MAC addrress of all network cards
   click Next
Clone type
   click Full clone
   click Clone
14. Open GNS3
Click Edit/Preferences/VirtualBox VMs
click New
   VM list: VyOS1
   click Finish
click New
   VM list: VyOS2
   click Finish
Configure R1
Login: vyos
Password: vyos
#set system host-name r1
#set interfaces ethernet eth1 address
#set protocols static route next-hop distance ‘1’
#set system domain-name poc.com
#set service ssh port 22
#set system ntp server 0.pool.ntp.org
#set system login user user1 full-name “user1”
#set system login user user1 authentication plaintext-password mypassword
#set system login user user1 level admin
You need to exit and login back to reflect hostname changing
Do similar thing above for R2
Test ping r1 from r2
vyos@r2:~$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=64 time=0.038 ms
64 bytes from icmp_req=2 ttl=64 time=0.038 ms

3 thoughts on “Vyatta OS under VirtualBox in GNS3

  1. Pak,

    Untuk point 11 (network adapter) disitu yg digunakan cuma 1 adapter, artinya ketika digunakan di GNS3 cuma 1 adapter yg aktif??

    Jika ingin menggunakan 4 adapter di GNS3 apakah di virtualbox harus diaktifkan 4 adapter juga??


      • Thanks Pak,

        Saya pernah coba, tapi menggunakan mikrotik bukan VyOS, walaupun di vbox dan GNS3 sama-sama menggunakan 4 adapter, yang active cuma bisa 2 aja…

        btw, unetlab support mikrotik kah??


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s