Académique Documents
Professionnel Documents
Culture Documents
Explore GitHub
Features
Blog
Sign in
mseknibilel / OpenStack-Folsom-Install-guide
Code Network Pull Requests
0
PUBLIC
Star
Issues
2
15
Fork
Graphs
14
branch: master
Files
Commits
Branches
Tags
Downloads
OpenStack-Folsom-Install-guide / OpenStack_Folsom_Install_Guide_WebVersion.rst
mseknibilel 4 hours ago Update OpenStack_Folsom_Install_Guide_WebVersion.rst
2 contributors
file
24.033 kb
Edit
Raw
Blame
History
Authors
open in browser PRO version
Are you a developer? Try out the HTML to PDF API
pdfcrowd.com
Contributors
Marco Consonni <marco_consonni@hp.com> Dennis E Miyoshi <dennis.miyoshi@hp.com> Houssem Medhioub <houssem.medhioub@it-sudparis.eu> Djamal Zeghlache <djamal.zeghlache@telecom-sudparis.eu> Wana contribute ? Read the guide, send your contribution and get your name listed ;)
Table of Contents
0. What is it? 1. Requirements 2. Getting Ready 3. Keystone 4. Glance 5. OpenVSwitch 6. Quantum 7. Nova 8. Cinder 9. Horizon 10. Adding a compute node 11. Start your first VM 12. Licencing 13. Contacts 14. Acknowledgement 15. To do
pdfcrowd.com
0. What is it?
OpenStack Folsom Install Guide is an easy and tested way to create your own OpenStack plateform. Version 2.0 Status: stable
1. Requirements
Node Role: Control Node: Compute Node: NICs eth0 (192.168.100.232), eth1 (192.168.100.234) eth0 (192.168.100.250), eth1 (Your Choice)
Note 1: If you are not interrested in Quantum, you can also use this guide but you must follow the nova section found here instead of the one written in this guide. Note 2: eth1 on compute node doesn't need to be internet connected. Note 3: This is my current network architecture, you can add as many compute node as you wish.
pdfcrowd.com
pdfcrowd.com
2. Getting Ready
2.1. Preparing Ubuntu 12.10
After you install Ubuntu 12.10 Server 64bits, Go to the sudo mode and don't leave it until the end of this guide:
sudo su
2.2.Networking
Both NICs on the controller node need internet access:
#For OpenStack management auto eth0 iface eth0 inet static address 192.168.100.232 netmask 255.255.255.0 gateway 192.168.100.1 dns-nameservers 8.8.8.8 #For internet access auto eth1 iface eth1 inet static address 192.168.100.234 netmask 255.255.255.0
pdfcrowd.com
Install RabbitMQ:
apt-get install rabbitmq-server
Configure the NTP server to synchronize between your compute nodes and the controller node:
sed -i 's/server ntp.ubuntu.com/server ntp.ubuntu.com\nserver 127.127.1.0\nfudge 127.127.1.0 stratum 10/g' /etc service ntp restart
2.5. Others
Install other services:
apt-get install vlan bridge-utils
pdfcrowd.com
Enable IP_Forwarding:
nano /etc/sysctl.conf #Uncomment net.ipv4.ip_forward=1
3. Keystone
This is how we install OpenStack's identity service: Start by the keystone packages:
apt-get install keystone
Fill up the keystone database using the two scripts available in the Scripts folder of this git repository. Beware that you MUST comment every part related to Quantum if you don't intend to install it otherwise you will have trouble with your dashboard later: open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
#Modify the HOST_IP variable before executing the scripts chmod +x keystone_basic.sh chmod +x keystone_endpoints_basic.sh ./keystone_basic.sh ./keystone_endpoints_basic.sh
Create a simple credential file and load it so you won't be bothered later:
nano creds #Paste the following: export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=admin_pass export OS_AUTH_URL="http://192.168.100.232:5000/v2.0/" # Load it: source creds
4. Glance
After installing Keystone, we continue with installing image storage service a.k.a Glance:
apt-get install glance
pdfcrowd.com
mysql -u root -p CREATE DATABASE glance; GRANT ALL ON glance.* TO 'glanceUser'@'%' IDENTIFIED BY 'glancePass'; quit;
And:
pdfcrowd.com
And:
[paste_deploy] flavor = keystone
Restart the services again to take into account the new modifications:
service glance-registry restart; service glance-api restart
To test Glance's well installation, we upload a new image to the store. Start by downloading the cirros cloud image to your node and then uploading it to Glance:
mkdir images cd images wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img glance image-create --name myFirstImage --is-public true --container-format bare --disk-format qcow2 < cirros-0
pdfcrowd.com
Now list the images to see what you have just uploaded:
glance image-list
6. OpenVSwitch
Install the openVSwitch:
apt-get install -y openvswitch-switch
7. Quantum
Quantum literaly eliminated the network overhead i used to deal with during the nova-network era. Install the Quantum server:
apt-get install quantum-server quantum-plugin-openvswitch
Create a database:
mysql -u root -p CREATE DATABASE quantum; GRANT ALL ON quantum.* TO 'quantumUser'@'%' IDENTIFIED BY 'quantumPass'; quit;
pdfcrowd.com
Edit /etc/quantum/api-paste.ini
[filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory auth_host = 192.168.100.232 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = quantum admin_password = service_pass
pdfcrowd.com
8. Nova
Start by installing nova components:
apt-get install -y nova-api nova-cert novnc nova-consoleauth nova-scheduler nova-novncproxy
pdfcrowd.com
pdfcrowd.com
vncserver_proxyclient_address=192.168.100.232 vncserver_listen=0.0.0.0 # Network settings network_api_class=nova.network.quantumv2.api.API quantum_url=http://192.168.100.232:9696 quantum_auth_strategy=keystone quantum_admin_tenant_name=service quantum_admin_username=quantum quantum_admin_password=service_pass quantum_admin_auth_url=http://192.168.100.232:35357/v2.0 libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver # Compute # compute_driver=libvirt.LibvirtDriver # Cinder # volume_api_class=nova.volume.cinder.API osapi_volume_listen_port=5900
Check for the smiling faces on nova-* services to confirm your installation:
nova-manage service list
pdfcrowd.com
9. Cinder
Although Cinder is a replacement of the old nova-volume service, its installation is now a seperated from the nova install process. Install the required packages:
apt-get install cinder-api cinder-scheduler cinder-volume iscsitarget iscsitarget-dkms
pdfcrowd.com
auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = cinder admin_password = service_pass
pdfcrowd.com
t 8e w
Note: Beware that this volume group gets lost after a system reboot. (Click Here to know how to load it after a reboot) Restart the cinder services:
service cinder-volume restart service cinder-api restart
10. Horizon
To install horizon, proceed like this
apt-get install openstack-dashboard memcached
If you don't like the OpenStack ubuntu theme, you can disabled it and go back to the default look:
nano /etc/openstack-dashboard/local_settings.py #Comment these lines #Enable the Ubuntu theme if it is present. #try: # from ubuntu_theme import * #except ImportError: # pass
pdfcrowd.com
You can now access your OpenStack 192.168.100.232/horizon with credentials admin:admin_pass. Note: A reboot might be needed for a successful login
pdfcrowd.com
Enable IP_Forwarding:
nano /etc/sysctl.conf #Uncomment net.ipv4.ip_forward=1
11.2.Networking
It's recommended to have two NICs but only one needs to be internet connected:
# Connected to the internet auto eth0 iface eth0 inet static address 192.168.100.250 netmask 255.255.255.0 gateway 192.168.100.1 dns-nameservers 8.8.8.8 # Not connected to internet auto eth1 iface eth1 inet static address 10.10.0.2 netmask 255.255.255.0
11.3 KVM
KVM is needed as the hypervisor that will be used to create virtual machines. Before you install KVM, make sure that your hardware enables virtualization:
apt-get install cpu-checker kvm-ok
Normally you would get a good response. Now, move to install kvm and configure it:
pdfcrowd.com
pdfcrowd.com
11.4. OpenVSwitch
Install the openVSwitch:
apt-get install -y openvswitch-switch
11.5. Quantum
We don't need to install the hole quantum server here, just the openVSwitch plugin's agent Install the Quantum openvswitch agent:
apt-get -y install quantum-plugin-openvswitch-agent
pdfcrowd.com
Make sure that your rabbitMQ IP in /etc/quantum/quantum.conf is set to the controller node:
rabbit_host = 192.168.100.232
11.6. Nova
Install nova's required components for the compute node:
apt-get install nova-api-metadata nova-compute-kvm
pdfcrowd.com
pdfcrowd.com
novnc_enabled=true novncproxy_base_url=http://192.168.100.232:6080/vnc_auto.html novncproxy_port=6080 vncserver_proxyclient_address=192.168.100.250 vncserver_listen=0.0.0.0 # Network settings network_api_class=nova.network.quantumv2.api.API quantum_url=http://192.168.100.232:9696 quantum_auth_strategy=keystone quantum_admin_tenant_name=service quantum_admin_username=quantum quantum_admin_password=service_pass quantum_admin_auth_url=http://192.168.100.232:35357/v2.0 libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver # Compute # compute_driver=libvirt.LibvirtDriver # Cinder # volume_api_class=nova.volume.cinder.API osapi_volume_listen_port=5900
Check for the smiling faces on nova-* services to confirm your installation: open in browser PRO version Are you a developer? Try out the HTML to PDF API
pdfcrowd.com
Create a new user and assign the member role to it in the new tenant (keystone role-list to get the appropriate id):
keystone user-create --name=user_one --pass=user_one --tenant-id $put_id_of_project_one --email=user_one@domain keystone user-role-add --tenant-id $put_id_of_project_one --user-id $put_id_of_user_one --role-id $put_id_of_m
pdfcrowd.com
You can now start creating VMs but they will not be accessible from the internet. If you like them to be so, perform the following: Create your external network with the tenant id belonging to the service tenant (keystone tenant-list to get the appropriate id)
quantum net-create --tenant-id $put_id_of_service_tenant ext_net_proj_one --router:external=True
This is it !, You can now login to your OpenStack dashboard and start creating internet accessible VMs. I Hope you enjoyed this guide, please if you have any feedbacks, don't hesitate.
13. Licensing
OpenStack Folsom Install Guide by Bilel Msekni is licensed under a Creative Commons Attribution 3.0 Unported License.
14. Contacts
Bilel Msekni: bilel.msekni@telecom-sudparis.eu
pdfcrowd.com
15. Acknowledgment
This work has been based on: Emilien Macchi's Folsom guide [https://github.com/EmilienM/openstack-folsom-guide] OpenStack Documentation [http://docs.openstack.org/trunk/openstack-compute/install/apt/content/] OpenStack Quantum Install [http://docs.openstack.org/trunk/openstack-network/admin/content/ch_install.html]
16. To do
This guide is just a startup. Your suggestions are always welcomed. Some of this guide's needs might be: Define more Quantum configurations to cover all usecases possible see here.
GitHub About Blog Features Contact & Support Training GitHub Enterprise Site Status
Clients GitHub for Mac GitHub for Windows GitHub for Eclipse GitHub Mobile Apps
Tools Gauges: Web analytics Speaker Deck: Presentations Gist: Code snippets Extras Job Board GitHub Shop The Octodex
Documentation GitHub Help Developer API GitHub Flavored Markdown GitHub Pages
pdfcrowd.com
Terms of Service Privacy Security 2012 GitHub Inc. All rights reserved.
pdfcrowd.com