Professional Documents
Culture Documents
04 LTS
Single machine setup
The Single machine setup has all the services running. Cinder part is to be added in the future.
Install Ubuntu 12.04 with partitioning scheme as per your requirements.
Note: Run all the commands as super-user. We assume that the IP of the Single machine is 10.0.0.1.
Support packages
RaabitMQ server
apt-get install rabbitmq-server
rabbitmqctl change_password guest rabbit_pass
MySQL server
Install MySQL server and related software
apt-get install -y mysql-server python-mysqldb
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
service mysql restart
Keystone
Install keystone
apt-get install -y keystone
Edit the file /etc/keystone/keystone.conf and edit the following line, so it looks like this
connection = mysql://keystoneUser:keystonePass@10.0.0.1/keystone
Create admin user, admin tenant, admin role and service tenant. Also add admin user to admin tenant
and admin role.
keystone
keystone
keystone
keystone
keystone
OS_USERNAME=admin
OS_PASSWORD=ADMIN
OS_TENANT_NAME=admin
OS_AUTH_URL=http://10.0.0.1:35357/v2.0
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = glance_pass
[paste_deploy]
flavor = keystone
Nova(Compute)
Install the Nova services
apt-get install nova-compute nova-novncproxy novnc nova-api nova-ajax-console-proxy
nova-cert nova-conductor nova-consoleauth nova-doc nova-scheduler nova-volume
python-novaclient
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = nova.rpc.impl_kombu
rabbit_host = 10.0.0.1
rabbit_password = rabbit_pass
my_ip=10.0.0.1
vncserver_listen=10.0.0.1
novncproxy_base_url=http://10.0.0.1:6080/vnc_auto.html
vncserver_proxyclient_address=10.0.0.1
auth_strategy=keystone
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.0.0.1:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=neutron_pass
neutron_admin_auth_url=http://10.0.0.1:35357/v2.0
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
[database]
connection = mysql://novaUser:novaPass@10.0.0.1/nova
[keystone_authtoken]
auth_host = 10.0.0.1
auth_port = 5000
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = nova_pass
Host
Zone
Status
State
openstack
internal
enabled
:-)
2014-
openstack
internal
enabled
:-)
2014-
openstack
internal
enabled
:-)
2014-
openstack
internal
enabled
:-)
2014-
openstack
nova
enabled
:-)
2014-
openstack
internal
enabled
:-)
2014-
Also run the following command to check if nova is able to authenticate with keystone server
nova list
Neutron(Networking service)
Install the Neutron services
apt-get install neutron-server neutron-dhcp-agent neutron-plugin-openvswitch-agent
openvswitch-switch neutron-l3-agent
Save the file and run the following command to make sure the changes take effect immediately
sysctl -p
Edit /etc/neutron/neutron.conf
[default]
rpc_backend = neutron.openstack.common.rpc.impl_kombu
rabbit_host = 10.0.0.1
rabbit_port = 5672
rabbit_userid = guest
rabbit_password = rabbit_pass
[keystone_authtoken]
auth_host = 10.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = neutron_pass
signing_dir = $state_path/keystone-signing
[database]
connection = mysql://neutronUser:neutronPass@10.0.0.1/neutron
Create bridges
ovs-vsctl
ovs-vsctl
ovs-vsctl
# x=1,2,3
add-br br-int
add-br br-eth1
add-port br-eth1 ethx
etc as per the ethernet interface
neutron-server restart
neutron-plugin-openvswitch-agent restart
neutron-metadata-agent restart
neutron-dhcp-agent restart
neutron-l3-agent restart