[fancy_header3 variation=”slategrey”]Configuring the NOX GUI[/fancy_header3] [titled_box title=”Configuring the NOX GUI Update: ” variation=”slategrey”]The NOX libraries are not maintained for most distros at the moment. Everything has been stripped out of NOX except for the core implementation as a C++ base for development. I recommend trying either FloodLight or POX.[/titled_box] Configuring the NOX GUI To install NOX… Continue reading Configuring the NOX GUI
Tag: Software Defined Networking
NOX OpenFlow Controller Installation Screencast Ubuntu 11.10
[fancy_header3 variation=”orange”] NOX OpenFlow Controller Installation Screencast Ubuntu 11.10 [/fancy_header3] This post is on the NOX OpenFlow Controller Installation Screencast Ubuntu 11.10. When compiling NOX If you get the error “configure: error: openssl/md5.h not found. NOX requires OpenSSL” You just need to switch to the ‘destiny’ branch from the default ‘zaku’ branch. Setup dependency repo: cd… Continue reading NOX OpenFlow Controller Installation Screencast Ubuntu 11.10
POX Openflow Controller Installation Screencast
[fancy_header3 variation=”steelblue”]POX Openflow Controller Installation Screencast[/fancy_header3] POX Openflow Controller Installation: POX is a lightweight OpenFlow controller that is written completely in Python that is targeted for developers to spin up their own controllers. The nice thing about POX is if you want an OF controller spun up in as fast as you can type git clone… Continue reading POX Openflow Controller Installation Screencast
Installing and Configuring OpenvSwitch on Ubuntu 12.04 (Precise Pangolin)
[fancy_header3 variation=”orange”]Installing and Configuring OpenvSwitch on Ubuntu 12.04 (Precise Pangolin)[/fancy_header3] [titled_box title=”Updates” variation=”steelblue”] For installing OpenvSwitch on Ubuntu from package head to OpenvSwitch Configure from Packages and Attaching to a Floodlight OpenFlow Controller To install Open vSwitch from source head to Configuring VXLan and GRE tunnels on OpenvSwitch Or use this Python App I wrote… Continue reading Installing and Configuring OpenvSwitch on Ubuntu 12.04 (Precise Pangolin)
Why the NOS will decouple
Over the next couple of years some of us expect the networking industry to have some fairly significant changes. There are really two options: A distributed approach we have today or a controller based centralized model. We have today just that, autonomous devices building adjacencies to one another, exchanging what it hopes are the best healthy paths… Continue reading Why the NOS will decouple
February 2012 SDN Thoughts
I commented on a blog post earlier and I am recording my updated thoughts to review over the next few years to see how wrong I was. My initial business cases still have not changed much from 4 months ago. It has always been and will be about money. What will drive this is the ability to… Continue reading February 2012 SDN Thoughts
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
[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