Poor Man’s VIRL How to run VIRL 1.0.0 as Bare Metal on resource-constrained PC (works on 1.0.11 as well) Dec 30, 2015 Kaoru Yamashita.

Slides:



Advertisements
Similar presentations
Installation of Ubuntu on a Virtual machine. VirtualBox allows you to run an entire operating system inside another operating system. Please be aware.
Advertisements

Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
Introduction To The Course Network Architecture Hervey Allen Chris Evans Phil Regnauld September 3 - 4, 2009 Santiago, Chile.
Boot Mode. Agenda 1.What can I do if I forget my password? 2.What to do if My Gateway can’t enter into [usr/config] mode?
Linux network troubleshooting If your network connection is not working..
ITE PC v4.0 Chapter 1 1 Operating Systems Computer Networks– 2.
Introduction to Applied Network Security By Prof. Herzberg Man in the Middle lab #1 Aharon Brodie.
hotEx RADIUS Manager Installation
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
DataStax Enterprise on Microsoft Azure. BrightView Analytics provides a robust Software-as-a-Service (SaaS) business solution, which delivers critical.
Linux Networking Commands
Remote Accessing Your Home Computer Using VNC and a Dynamic DNS Name.
Installing VMware & the Data ONTAP Simulator SE Technical Academy.
System Administration: Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Installing a DHCP Server role on Windows Server 2008 R2 in a home network. This is intended as a guide to install the DHCP role on a Domain Controller.
SINGLE BOARD COMPUTERS -KEVIN JOSE. WHY DO WE USE THEM? Good performance at low price GPIO capability to interact with the outside world Small form factor,
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Copyright© 2003 Avaya Inc. All rights reserved Upgrade to Communication Manager 2.0 with Migration to Linux 8.0 Purpose: This presentation was prepared.
Pc Naming Configuration 1.WEB REGISTER 2.FIXNAME 3.MCAFEE AGENT SETUP ITC Training: Session 2.
Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel.
DIY: Your First VMware Server. Introduction to ESXi, VMWare's free virtualization Operating System.
Hands-On Virtual Computing
Citrix Virtualization Last Update Copyright 2011 Kenneth M. Chipps Ph.D.
1 Web Server Administration Chapter 3 Installing the Server.
Microsoft DirectAccess & Work Folders NICHOLAS A. HAY MONROE COUNTY ISD
Setting Up a Local WordPress Development Environment By Gregory Young Alternative Hosting
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Installing SME Version 5 –1)Set the computer to boot from the CDRom by changing the BIOS setting. –2)Startup the computer with the CD in the CD drive –3)Type.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
O.S.C.A.R. Cluster Installation. O.S.C.A.R O.S.C.A.R. Open Source Cluster Application Resource Latest Version: 2.2 ( March, 2003 )
Itty Bitty Computer Directions on how to install Linux on your flash drive and have the smallest computer you can afford right now!
HotEx Radius Manager Installation. hotEx RADIUS Manager Network Diagram.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
7200 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. 1/16 OfficeServ 7200 Enterprise IP Solutions Data Server S/W Upgrade.
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
1 Copyright © 2015 Pexus LLC Patriot PS Personal Server Installing Patriot PS ISO Image on.
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
VirtualBox: How to create a Linux Virtual Machine.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Installing the ALSMS Software on a Windows Platform Configuration Example Alcatel-Lucent Security Products Configuration Example Series.
Virtualisation Exercise Installing VirtualBox Installing FreeBSD in a virtual machine Chris Wilson Joel Jaeggli AfNOG 2012.
Using Grsync with Ubuntu Presented by Dave Mawdsley, DACS Member, Linux SIG August 20, 2008 (making rsync easy with a memory key or a server)
Ganeti Instance Creation
LINUX Network Concepts M.S.Dibay Moghaddam Second Linux Festival Amir Kabir University of Technology Computer & IT Department.
Using Linux Kaya Oğuz Room: 310.
Home Networking CCCC Linux Desktop SIG August 20, 2007.
TIZEN STUDIO INSTALLATION & ENVIRONMENT SETUP FOR DEVLAB
Linux network troubleshooting
Network Configuration
Installation and Configuration
Data Server S/W Upgrade Samsung Electronics Co., Ltd.
IPv6 Hands-on pre-GDB IPv6 workshop 7th of June 2016 edoardo
DHCP server & Client Objectives Contents
Creating a Windows Server 2012 R2 Datacenter Virtual machine
Creating a Windows Server 2016 Datacenter Virtual machine
Creating a Windows 7 Professional SP1 Virtual machine
Advanced Network Training
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Networking for Home and Small Businesses – Chapter 2
Linux as a Virtual Machines
Networking for Home and Small Businesses – Chapter 2
Module 12 Network Configuration
Presentation transcript:

Poor Man’s VIRL How to run VIRL 1.0.0 as Bare Metal on resource-constrained PC (works on 1.0.11 as well) Dec 30, 2015 Kaoru Yamashita

20 nodes topology runs on Intel Core i5 (Dual Core), 16GB DRAM, 128GB SSD

My tiny VIRL Server : about 400 – 500 USD Lenovo ThinkPad T520 Core i5-2540M 16GB DRAM Note: Hyper-Threading (HT) is disabled. USB NIC SSD

Limitations IPv4 address for eth0 should be static. (i.e. DHCP does not work) To save CPU power and DRAM, please start nodes one by one. (As far as I know) Hostname of Ubuntu should be “virl”.

Solution (maybe Tricky and Dirty) Save CPU Power Launch each instance on by one --- check “Exclude node from simulation launch” Rename “dummy” Linux virtual NICs to “eth<n>” Run UKSM-enabled kernel to save DRAM UKSM (Ultra KSM) is a kernel patch to perform memory de-duplication

What you need Laptop PC (or x86 server) SSD At least one physical NIC (in this document, two NICs are used) DVD-ROM Drive (Physical or Virtual) DVD-ROM Media of virl.1.0.0.iso (Physical or Virtual) PC or Mac to run ssh client and VMmaestro (Or you can use graphical desktop of Ubuntu) DHCP Server (used during initial installation) Internet connection License of VIRL Don’t use VMware products if you want to achieve maximum performance.

1. Boot from DVD-ROM Select first item, “live”

1. Boot from DVD-ROM (cont.) Wait for a while

2. Login Password: VIRL

2. Login (cont.)

3. Initialize SSD (if it is not new) sudo sgdisk –Z /dev/sda

3. Initialize SSD (cont.)

4. Start Installer

5. Specify Parameters

5. Specify Parameters (cont.) Make sure that primary NIC is connected

5. Specify Parameters (cont.) Check this Item

5. Specify Parameters (cont.)

5. Specify Parameters (cont.)

5. Specify Parameters (cont.)

6. Installer is running

7. Installer ends

Caution! In most cases, VIRL 1.0.0 ISO installer does not ask about hostname. In other word, the installer does not expose below dialog. This is known issue. So we have to fix this by changing hostname manually. (see later slides)

8. Boot from SSD, login and start xterm. Then... sudo hostnamectl set-hostname virl sudo apt-get –y remove openssh-server sudo apt-get –y install openssh-server sudo reboot

9. Reboot and pick IPv4 address of eth0 Now you can ssh from your favorite client

10. Edit configuration files /etc/hosts /etc/network/interfaces /etc/virl.ini /etc/virl/common.cfg /etc/modues (type “sudo –s” before editing but this is somewhat dangerous)

/etc/hosts Modify 127.0.1.1 ubuntu to 127.0.1.1 virl

/etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.0.80/24 gateway 192.168.0.1 dns-nameservers 192.168.0.1 auto lo iface lo inet loopback auto lo:1 iface lo:1 inet loopback address 127.0.1.1 netmask 255.0.0.0 auto eth1 iface eth1 inet static address 172.16.1.254/24 netmask 255.255.255.0 post-up ip link set eth1 promisc on auto dummy0 iface dummy0 inet manual pre-up ip link set dev dummy0 name eth2 pre-up ifconfig eth2 172.16.2.254/24 up post-up ip link set eth2 promisc on auto dummy1 iface dummy1 inet manual pre-up ip link set dev dummy1 name eth3 pre-up ifconfig eth3 172.16.3.254/24 up auto dummy2 iface dummy2 inet manual pre-up ip link set dev dummy2 name eth4 pre-up ifconfig eth4 172.16.10.250/24 pre-up ifconfig eth4 mtu 1500 post-up ip link set eth4 promisc on [Note] eth0 should be static. DHCP will not work.

/etc/virl.ini using_dhcp_on_the_public_port: False salt_master: us-virl-salt.cisco.com (or) salt_master: eu-virl-salt.cisco.com

/etc/virl/common.cfg ram_overcommit = 5 default = 2. 6 or larger will not be allowed.

/etc/modules dummy numdummies=3 default = 5. This is why there are dummy0 to dummy4 by default.

11. reboot and confirm settings In this example, you can ssh to 192.168.0.80 Check five NICs by typing “ifconfig eth0”, “ifconfig eth1”, “ifconfig eth2”, “ifconfig eth3” and “ifconfig eth4”.

12. “vinstall salt” and “vinstall rehost” You don’t have to switch to root. These commands can run as “virl”. “vinstall rehost” takes some minutes to complete. Please reboot when “vinstall rehost” finishes.

13. Almost done! Your VIRL server is almost ready. Run below commands to check status neutron agent-list nova service-list sudo virl_health_status Please perform activation. NTP setting Install VIRL license key Add CSR1000V image Upgrade IOSv image Once you can run small topologies on your VIRL server, proceed to next slide.

14. Introduce UKSM-enabled kernel Visit http://lansw-book.net/VIRL/Poor/ to download kernel files (and latest copy of this document) Then switch to root, put two files under /usr/src, and perform “dpkg –i” twice. dpkg -i linux-headers-3.13.11-ckt27_20151201UKSM_amd64.deb dpkg -i linux-image-3.13.11-ckt27_20151201UKSM_amd64.deb Edit /etc/default/grub as next slide And “update-grub2” reboot

/etc/default/grub GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.13.11-ckt27”

Issues on UKSM-enabled kernel LACP and LLDP do not work between nodes e.g. You can not form dynamic port-channel between vEOS nodes.

If you’re stuck