Vyatta OS under VirtualBox in GNS3

https://rbgeek.wordpress.com/2013/05/06/vyatta-basic-configuration-after-installation/

http://vyos.net/wiki/User_Guide

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]
$poweroff
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
Image
Configure R1
Login: vyos
Password: vyos
$conf
#set system host-name r1
#set interfaces ethernet eth1 address 10.0.1.1/24
#set protocols static route 0.0.0.0/0 next-hop 10.0.1.254 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
#commit
#save
NOTE:
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 10.0.1.2
PING 10.0.1.2 (10.0.1.2) 56(84) bytes of data.
64 bytes from 10.0.1.2: icmp_req=1 ttl=64 time=0.038 ms
64 bytes from 10.0.1.2: icmp_req=2 ttl=64 time=0.038 ms
Advertisements