One Bad Pixel
All your pixel are belong to us.

Part 2: Installing Vyatta Community 6.5R1

Previous: Part 1: Introducing Vyatta

EDIT: It is worth noting that Vyatta VC6.6R1 is the current stable on their website. All of the following articles should apply with little or no difference. Use the newer version.

In the previous part, I introduced Vyatta Community VC6.5R1 Open-Source Router. If you are reading on, then it probably means you are interested in learning a little more about it, or giving it a try for yourself. I will take a brief moment to let you know that, being a CLI based router without a GUI, you should have a basic understanding of routing, networking, and firewalls. The configurations are relatively easy to read, and you can get most of what you need to do using only the context sensitive help.

Without wasting any more time, lets get your router installed. For my setup, I will be using VMWare ESXi 5.1, but Vyatta is optimized to run in VMWare, XenServer, Xen, KVM, and HyperV (However, as of VC6.5R1, support in HyperV 2012 is not quite right. Legacy NICs only are working, and the performance on these is horrible, so says the Interwebs.) EDIT: I have been running VC6.5R3 in HyperV 2012 for almost a year. I have found no major issues, barring the lack of properly hyper-v tools built into the kernel.

Start by heading out to the Vyatta Community website for lots of information, and most importantly, the downloads. EDIT: Start by heading out to the VyOS website for lots of information and most importantly, the downloads for the current and development versions. If you are setting your test router up in a VM, download the Virtualization ISO (213MB 223MB). I have not tested the 64 Bit installer. If you want to get your hands on their amazing documentation, you will need to head over to the Vyatta Subscription website, fill out a contact form, at which point you will be provided either a link or an email to a HUGE zip file containing documentation on every topic under the sun, complete with configuration examples and explanations. Their documentation is some of the best I have ever seen. EDIT: I now exclusively use the 64-bit version. It is considerably faster for a lot of things.

I am not going to go through the motions of creating a Virtual Machine, as it is outside the scope of this series, but the machine I created had 2 NICs (1 attached to my outside network, 1 attached to my private inside network), 1GB of RAM, and 2GB of hard drive. If you intend to run full BGP tables or LOTS of firewall rules, you may allocate 2GB or 4GB of RAM, but for your lab, this shouldn’t be required. I am running a Vyatta Community router in production as a VPN concentrator and it never goes over 512Mb of RAM. Attach your ISO to the CDROM drive and mark it as connected on startup.
Start your Virtual Machine, and you should quickly begin to see the LiveCD starting to boot. You can actually run your router off the liveCD, however any changes you make will not persist across reboots.
After about a minute or so, you should be presented with a “vyatta login:” prompt. The default username is vyatta, and the default password is vyatta.

Welcome to Vyatta
vyatta@'s password:
Linux vyatta 3.3.8-1-586-vyatta-virt #1 SMP Mon Nov 12 12:23:24 PST 2012 i686
Welcome to Vyatta.
This system is open-source software. The exact distribution terms for
each module comprising the full system are described in the individual
files in /usr/share/doc/*/copyright.
Last login: Tue Feb  5 02:12:18 2013

To get started installing to your disk, run “install image”. With the exception of very few questions, the defaults are likely to be acceptable.

vyatta@vyatta:~$ install image
Welcome to the Vyatta install program.  This script
will walk you through the process of installing the
Vyatta image to a local hard drive.
Would you like to continue? (Yes/No) [Yes]:
Probing drives: OK
Looking for pre-existing RAID groups...none found.
The Vyatta image will require a minimum 1000MB root.
Would you like me to try to partition a drive automatically
or would you rather partition it manually with parted?  If
you have already setup your partitions, you may skip this step

Partition (Auto/Parted/Skip) [Auto]:

I found the following drives on your system:
 sda    2147MB

Install the image on? [sda]:

This will destroy all data on /dev/sda.
Continue? (Yes/No) [No]: Yes

How big of a root partition should I create? (1000MB - 2147MB) [2147]MB:

Creating filesystem on /dev/sda1: OK
Mounting /dev/sda1...
What would you like to name this image? [VC6.5R1]:
OK.  This image will be named: VC6.5R1
Copying squashfs image...
Copying kernel and initrd images...
I found the following configuration files:
Which one should I copy to sda? [/config/config.boot]:

Copying /config/config.boot to sda.
Enter password for administrator account
Enter password for user 'vyatta':
Retype password for user 'vyatta':
I need to install the GRUB boot loader.
I found the following drives on your system:
 sda    2147MB

Which drive should GRUB modify the boot partition on? [sda]:

Setting up grub: OK

Now that you have invested a whopping 5 minutes or less, your system is installed. Lets shut it down, then disconnect the ISO and restart it.

vyatta@vyatta:~$ sudo shutdown -h now

At this point, you should have a vyatta router, ready to be configured. In the next article, I will run through a short and sweet basic configuration to get your system up and running so that we can explore some of the additional features.

Next: Part 3: Vyatta Basic Setup.


3 Responses for “Part 2: Installing Vyatta Community 6.5R1”

  1. Part 1: Introducing Vyatta | One Bad Pixel Says:

    […] Part 2: Installing Vyatta Community 6.5R1 […]

  2. Part 3: Vyatta Basic Setup | One Bad Pixel Says:

    […] Newest CommentsPart 1: Introducing Vyatta | One Bad Pixel on Part 2: Installing Vyatta Community 6.5R1Part 4: Adding Stateful Firewall to Vyatta | One Bad Pixel on Part 3: Vyatta Basic SetupJim on Part […]

  3. kishore Says:

    I’m having “network is unreachable” problem when i access the IP of Gateway or the IP of Vyatta from CMD.
    Can you please help me to solve the issue?

Leave a comment!