OpenFlow, OpenvSwitch and KVM SDN Lab Installation App

[fancy_header3 variation=”orange”]OpenFlow, OpenvSwitch and KVM SDN Lab Installation App[/fancy_header3] This OpenFlow, Open vSwitch and KVM SDN Lab Installation App is a python app that will install a few different options at an SDN lab. There are some really nice SDN applications that are coming along that have been open sourced from vendors or the community. Lots… Continue reading OpenFlow, OpenvSwitch and KVM SDN Lab Installation App

Nested KVM Hypervisor Support

[fancy_header3 variation=”orange”]Nested KVM Hypervisor Support[/fancy_header3] Adding Hardware Virtualization Support to a VM in KVM with Nested Hypervisor support is pretty important for folks wanting to do proofs for VMs, IaaS, OpenStack etc. It is fairly well supported now under both KVM and Xen. Not to mention, who wants to lab up bare metal when they… Continue reading Nested KVM Hypervisor Support

Getting Started OpenFlow OpenvSwitch Tutorial Lab : Setup

[fancy_header3 variation=”orange”]Getting Started OpenFlow OpenvSwitch Tutorial Lab : Setup[/fancy_header3] [info_box]For a more up to date tutorial as anything more then 6 months old is outdated in the world of SDN Please see: [download_link link=”http://networkstatic.net/opendaylight-openstack-integration-devstack-fedora-20/” variation=”red”]OpenDaylight OpenStack Integration with DevStack on Fedora 20[/download_link][/info_box] I wrote a Python OpenFlow installation app to automate an OpenFlow KVM and… Continue reading Getting Started OpenFlow OpenvSwitch Tutorial Lab : Setup

OpenVswitch and GRE tunnel notes

Here is a quick post for setting up GRE tunnels on OpenVswitch. Both Vswitch boxes are attached to an OpenFlow Beacon controller. More up to date how-to can be found here: Configuring VXLan and GRE tunnels on OpenvSwitch KVM live storage migration makes an interesting story and run at VMware tools. The dreaded layer2 data… Continue reading OpenVswitch and GRE tunnel notes

Installing Open vSwitch with KVM

[fancy_header3 variation=”orange”]Installing Open vSwitch with KVM[/fancy_header3] This tutorial is for installing Open vSwitch with KVM in order to replace traditional hypervisor Ethernet switching using Linux bridging with Open vSwitch. [titled_box title=”Updates” variation=”steelblue”] For installing Open vSwitch on Ubuntu from package head to Open vSwitch Configure from Packages and Attaching to a Floodlight OpenFlow Controller To… Continue reading Installing Open vSwitch with KVM

[titled_box title=”Update:” variation=”slategrey”] My latest installation document for Folsom can be found at the post OpenStack Folsom Quantum Devstack Installation Tutorial and Screencast. It’s too tough to try and keep up with debugging installers myself so I am just using DevStack in that tutorial. Thanks![/titled_box]

My notes from an OpenStack & Ubuntu 11.10. These are only my notes. Lots of errors. It was a fairly painless install. I didnt have the lab gear setup with two Nics so I got a bit kludgy at the end. I think the interesting component will be to replace the Openstack bridging with OpenVswitch.

sudo apt-get install rabbitmq-server

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:nova-core/trunk

sudo apt-get update

or

apt-get install python-software-properties

sudo apt-get install python-nova

add-apt-repository ppa:openstack-release/2011.3

apt-get update

apt-get upgrade

sudo apt-get install python-nova

sudo apt-get install nova-common nova-doc nova-api nova-network nova-objectstore nova-scheduler nova-compute euca2ools unzip

apt-get install bridge-utils

apt-get install -y ntp

sudo visudu

nii ALL=(ALL) NOPASSWD:ALL

nova ALL=(ALL) NOPASSWD:ALL

sudo nova-manage network create novanetwork 192.168.1.0/24 1 64

apt-get install -y python-greenlet python-mysqldb

apt-get install -y mysql-server

passwd=spam99

sed -i ‘s/127.0.0.1/0.0.0.0/g’ /etc/mysql/my.cnf

mysql -u root -p(passwd) -e ‘CREATE DATABASE nova;’

mysql -u root -pspam99 -e “GRANT ALL PRIVILEGES ON nova.* TO ‘novadbadmin’@’%’ ;”

mysql -u root -pspam99 -e “SET PASSWORD FOR ‘novadbadmin’@’%’ = PASSWORD(‘0815’);”

mysql -u root -pspam99 -e “SET PASSWORD FOR ‘novadbadmin’@’%’ = PASSWORD(‘spam99’);”

Test connection

mysql -u novadbadmin -pspam99 nova

mysql -u root -pspam99 -e ‘CREATE DATABASE glance’;

mysql -u root -pspam99 -e ‘CREATE USER glancedbadmin’;

mysql -u root -pspam99 -e “GRANT ALL PRIVILEGES ON glance.* TO ‘glancedbadmin’@’%’;”

mysql -u root -pspam99 -e “SET PASSWORD FOR ‘glancedbadmin’@’%’ = PASSWORD(‘spam99’);”

Install Glance image manager

Install Nova-Core

apt-get install nova-volume nova-vncproxy nova-api nova-ajax-console-proxy

apt-get install nova-doc nova-scheduler

apt-get install nova-network nova-compute

Euca Tools rather than Opstack cli

apt-get install -y euca2ools unzip

/home/brent/openflow# cat /etc/nova/nova.conf

–dhcpbridge_flagfile=/etc/nova/nova.conf

–dhcpbridge=/usr/bin/nova-dhcpbridge

–logdir=/var/log/nova

–state_path=/var/lib/nova

–lock_path=/var/lock/nova

–use_deprecated_auth

–force_dhcp_release

–libvirt_use_virtio_for_bridges

–connection_type=libvirt

–root_helper=sudo nova-rootwrap

#Block of IP addresses that are fixed IPs

–fixed_range=192.168.0.0/16

# Set network type: FlatDHCPManager

–network_manager=nova.network.manager.FlatDHCPManager

# Sets whether to user IPV6 Addresses

–use_ipv6=false

# Network Configuration

–dhcpbridge_flagfile=/etc/nova/nova.conf

–dhcpbridge=/usr/bin/nova-dhcpbridge

–flat_network_bridge=br100

#Backend Interface

–flat_interface=wlan0

–flat_injected=False

–public_interface=eth0

# Outgoing IP for Instances with fixed IP Range

–routing_source_ip=192.168.1.80

# Top-Level Directory for Maintaining nova’s state

–state_path=/var/lib/nova

# These indicates where nova-api services are installed

–rabbit_host=192.168.1.80

–glance_api_servers=192.168.1.80:9292

–s3_host=192.168.1.80

–ec2_host=192.168.1.80

–osapi_host=192.168.1.80

–network_host=192.168.1.80

#Debug out

–verbose

#MySql conn

–sql_connection=mysql://novadbadmin:spam99@192.168.1.80/nova

# Imageservice: Glance default

–image_service=nova.image.glance.GlanceImageService

# Other

–logdir=/var/log/nova

–lock_path=/var/lock/nova

–force_dhcp_release=True

–use_deprecated_auth

–verbose #ISCSI

–iscsi_helper=ietadm

–iscsi_ip_prefix=192.168.1.80

apt-get install lvm2 iscsitarget

Add iSCSI DKMS support

apt-get install iscsitarget-dkms

create but dont mount

pvcreate /dev/sda4

make 10G container

dd if=/dev/null of=diskfile bs=1G count=10

grab a loop

losetup -f

losetup /dev/loop0 diskfile

enable iSCSI target

ISCSITARGET_ENABLE=true

service iscsitarget start

Check for a socket

/home/brent/openflow# lsof -i -a | grep 3260

ietd      11777     root    7u  IPv4 406342      0t0  TCP *:3260 (LISTEN)

ietd      11777     root    8u  IPv6 406343      0t0  TCP *:3260 (LISTEN)

service nova-volume start

service nova-vncproxy restart

service nova-api restart

service nova-ajax-console-proxy restart

service nova-scheduler restart

service nova-network start

service nova-compute restart

sudo lsof -i

sudo netstat -lptu

Installing the OpenStack Dashboard

Here are the overall steps for creating the OpenStack dashboard.

Install the OpenStack Dashboard framework including Apache and related modules.

Configure the Dashboard.

Restart and run the Apache server.

Install the OpenStack Dashboard.

sudo apt-get install openstack-dashboard openstackx python-sqlite

Enable the rewrite module for apache: sudo a2enmod rewrite

sudo a2enmod rewrite

Next, create a symbolic link to “dash” with the Apache2 Enable site utility (a2ensite).

sudo a2ensite dash

Disable the “default” site so that the Dashboard can come up as the Apache site’s default.

sudo a2dissite default

Installing Openvswitch and KVM on CentOS 6.2

[fancy_header3] Installing Openvswitch and KVM on CentOS 6.2 [/fancy_header3] [info_box]Please see the updated how-to on Installing OpenvSwitch on CentOS.[/info_box] This is all (mostly) covered in the INSTALL.Linux inside the tar. This might help folks with some of the graph [fancy_header3] Download and Install Open vSwitch[/fancy_header3]

add yum -y install openssl-devel this package is necessary… Continue reading Installing Openvswitch and KVM on CentOS 6.2