How to install Vyatta router on Hyper-V – Part 1: Setup and Install

//
//

 

NOTE: Recommend you to replace Vyatta by VyOS, for that follow these links:
How to install VyOS Router/Appliance on Hyper-V – Part 1: Setup and Install
How to install VyOS Router/Appliance on Hyper-V – Part 2: Configuration

Greetings folks,

Vyatta is an open-source networking company with a set of Routing and Security products provided on their own Hardware or on your own hardware or virtualization technology. Opting for your own installation on Physical or Virtual Servers you’ll have a commercial and a free version, the last one has only a few features limitations and obviously lacks support.

I’m a long runner on the Virtualization technology and apart from production environments I run my own virtualized labs. A few years ago I came up with the idea that to simulate a production environment I would need something that would replicate as much as possible a real network environment, this was when I found Vyatta.

Vyatta supported VMware since their early days, at that time I had to convert the vmdk to vhd and run the VM on Hyper-V with Legacy Network adapters or I had to import the vmdk to VBOX. Thankfully some time ago Vyatta updated their Kernel with Hyper-V synthetic drivers and it became fully and natively supported on Hyper-V. :)

I will provide you the details about how to setup and configure a Vyatta router on Hyper-V on two separate posts.

On the first post “How to install Vyatta router on Hyper-V – Part 1: Setup and Install” I will share with you a brief introduction of my Lab setup and show you how to setup and install Vyatta Router on a Virtualized environment.

– Introduction: My LAB environment
– Phase 1: Download Vyatta and prepare a VM to run Vyatta router
– Phase 2: Install Vyatta on a VM

On the second post “How to install Vyatta router on Hyper-V – Part 2: Configuration” I will help you understand how to configure your network and provide some network services (NAT, DNS, Proxy).

– Phase 3: Configure Vyatta Router
– Phase 4: Configure Vyatta Network Services

 

[Introduction: My LAB environment]

Brief introduction of my lab environment:

– Running Windows 8.1 RTM Hyper-V Host;
– Running several Windows and Linux VM’s;
– Vyatta router is:

  • Running on a VM;
  • Has 3 network interfaces;
  • Configured for 3 network segments (internal, extranet, external);
  • Provides NAT for Internal network, Proxy Server for Extranet network and Public DNS Service and resolver on the External network;

– Vyatta Router configuration details:

Intranet interface: eht0
IP/mask: 10.0.0.254/24
NAT: Mask the address range 10.0.0.0/24 through eth1

External interface: eth1
IP/mask: 192.168.0.254/24
DNS Server: Public zone “labdom.com” | lookup zone “x.0.168.192″ | DNS forward “192.168.0.1″ (3G ISP Router DNS for public name resolution)

Extranet interface: eth2
IP/mask: 172.0.0.0/24

Default gateway: 192.168.0.1 (3G ISP Router IP Address)

– Hyper-V Virtual Switch are configured as follow:

  • V-Switch 1: Name: Internal Network –> Internal Only
  • V-Switch 2: Name: External Network –> External –> Intel Wifi Ntwk Adapter –> Allow Mgmt OS to share the network adapter
  • V-Switch 3: Name: Extranet – DMZ –> Internal Only

Here is a print screen of the Hyper-V Virtual Switch configuration

hyper-v_virtual_switch

Here is a Visio Diagram of my Lab Setup:

vyatta

[Phase 1: Download Vyatta and prepare a VM to run Vyatta router]

1. Download Virtualization ISO: http://www.vyatta.org/downloads
//
//

e.g. for the version – “vyatta-livecd-virt_VC6.5R1_i386.iso”:
VC6.5 – Virtualization ISO
Size: 213MB
MD5: b9f731fbcfe757bd0cc92c77783fe4ce

2. On the Hyper-V Manager we will create 3 Virtual Switchs (“Internal Network”, “External Network” and “Extranet – DMZ”)

On the right-pane “Actions” menu click “Virtual Switch Manager”

Select the Virtual Switch type “Internal” and click the button “Create Virtual Switch”

Type the name “Internal Network” (or any other you prefer) and click “OK”

Click again on the “Virtual Switch Manager”

Select the Virtual Switch type “External” and click the button “Create Virtual Switch”

Type the name “External Network”, on the External Network option select your appropriate Network interface (LAN or WIFI), leave the rest with the defaults and click “OK”

At last Click on the “Virtual Switch Manager”

Select the Virtual Switch type “Internal” and click the button “Create Virtual Switch”

Type the name “Extranet – DMZ” and click the button “Create Virtual Switch”

3. On the Hyper-V Manager we will create the Vyatta VM

On the right-pane Actions menu Click “New” –>Virtual Machine

On the New Virtual Machine Wizard –> Next

Define the Machine Machine Name “Vyatta” and the desired location of the Virtual Machine configuration files

If your are running a Windows 8.1 or Windows Server 2012 R2 host Select the Virtual Machine “Generation 1

Set the Memory size “512” MB (should be enough, if you need intensive network usage consider more memory)

Select the “Internal Network” Virtual Switch Network, we will add the other Network interfaces later

Create a Virtual Hard Disk (default: differential) with no more than “5GB” (depending on your needs, such as logging)

Select “Install Operating System from a Boot CD/DVD” and Select the vyatta “image file (ISO)”

Review the VM configuration ao click “Finish” to complete the VM creation

Right-click on the new vyatta VM and select “Settings

On the Vyatta VM properties on the “Add Hardware” section select “Network adapter” and click “Add

Select the Virtual Switch “External Network“, keep the defaults and select “OK

Repeat the process and right-click on the new vyatta VM and select “Settings

On the Vyatta VM properties on the “Add Hardware” section select “Network adapter” and click “Add

Select the Virtual Switch “Extranet – DMZ“, keep the defaults and select “OK”

You should end up with this configuration:

vyatta_vm_cfg

[Phase 2: Install Vyatta on a VM]

1. Start the VM

2. Login to vyatta

Vyatta login: vyatta
Vyatta password: vyatta

3. Start the the vyatta image installation

Install image

4. Define the following installation settings:

Would you like to continue? Yes
Mirror Raid-1 (sda and sdb)? No
Partition (Auto/Parted/Skip): Auto
Install the image on? Sda
Continue? Yes
How big of a root partition should I create? 2000MB
What would you like to name this image? VC6.5R1
Which one should I create to sda? /config/config.boot
Enter password for user ‘vyatta’: define a new password
Which drive should GRUB modify the boot partition on? Sda

5. When finished validate your installation by running:

show version

Confirm the following details on the output:

Boot via: Livecd
(next boot without the Live CD it will show ‘image’)
Hypervisor: Microsoft HyperV
HW model: Virtual machine

6. Shutdown the Vyatta Live installation process:

poweroff

This completes the first part of “How to install Vyatta router on Hyper-V with Setup and installation process. You can access the Part 2 for the configuration process on “How to install Vyatta router on Hyper-V – Part 2: Configuration”.

R-Tape Loading error,
Luís Rato
//
//

Anúncios

~ por Luis Rato em 20 de Setembro de 2013.

4 Respostas to “How to install Vyatta router on Hyper-V – Part 1: Setup and Install”

  1. Hi Luis,
    Nice post, I followed the steps and got my first Vyatta router up & running in a couple of minutes. Is there any reason why you decided to go for a x86 image instead of x64? Do you think x86 is somehow lighter on the host system? Less resources needed perhaps? (I’m running this on my company’s laptop with 6GB of RAM to have a lab on the go)
    Obrigado,
    A.

    • Hi Alberto,

      from my side there is no reason for picking x86 or x64, to be honest I don’t even know why I did it because I always attempt to install x64 OS/Apps. Unless your Host does not Support x64 virtualization, like you I agree that you should install x64.

      Cheers,
      Luís

  2. Hi Luis, I have a Server Windows 2008 R2 x64, which is the better issue to install Vyatta under Hyper-V, x86 or x64?

Deixe uma Resposta

Preencha os seus detalhes abaixo ou clique num ícone para iniciar sessão:

Logótipo da WordPress.com

Está a comentar usando a sua conta WordPress.com Terminar Sessão / Alterar )

Imagem do Twitter

Está a comentar usando a sua conta Twitter Terminar Sessão / Alterar )

Facebook photo

Está a comentar usando a sua conta Facebook Terminar Sessão / Alterar )

Google+ photo

Está a comentar usando a sua conta Google+ Terminar Sessão / Alterar )

Connecting to %s

 
%d bloggers like this: