Openstack icehouse series computing node Construction

Source: Internet
Author: User
Tags openvswitch

Openstack icehouse series computing node Construction

Next we will continue to build the network nodes of the openstack icehouse series in the previous blog post. The following is the environment introduction.

Network nodes: ml2, openvswitch, DHCP, L3, and metadata

Control nodes: MySQL, Keystone, glance, Nova, neutron, dashboard, Cinder

Computing nodes: Nova-compute, qemu-KVM, openvswitch, and ml2

Compute setup (computing node installation)

1. Check whether the CPU supports KVM

Apt-Get install-y CPU-checker

KVM-OK

2. Install qemu-KVM

Apt-Get install-y KVM libvirt-bin pm-utils

3. Install the Nova Service

Apt-Get install-y Nova-compute-KVM Python-guestfs

4. Make the current kernel readable:

Dpkg-statoverride -- update -- add Root 0644/boot/vmlinuz-$ (uname-R)

5. overwrite the new kernel and create/etc/kernel/postinst. d/statoverride.

VI/etc/kernel/postinst. d/statoverride #! /Bin/shversion = "$1" # Passing the kernel version is required [-z "$ {version}"] & Exit 0dpkg-statoverride -- update -- add Root 0644/boot/ vmlinuz-$ {version}

6. grant permissions to files

Chmod + x/etc/kernel/postinst. d/statoverride

7. edit/etc/NOVA. conf.

VI/etc/NOVA/Nova. conf [Default] auth_strategy = strategy = rabbitrabbit_host = controllermy_ip = 10.0.0.31vnc _ enabled = truevncserver_listen = route _ proxyclient_address = 10.0.0.31novncproxy _ base_url = http:/controller: 6080/vnc_auto.htmlglance_host = login = falsevif_plugging_timeout = 0 [database] connection = MYSQL: // NOVA: [email protected]/NOVA [keystone_authtoken] auth_uri = http: // controller: 5000auth_host = controllerauth_port = 35357auth_protocol = httpadmin_tenant_name = serviceadmin_user = novaadmin_password = service_pass

8. Delete the original Nova Database

Rm/var/lib/NOVA. SQLite

9. Restart the NOVA-compute service.

Service Nova-compute restart

10. edit/etc/sysctl. conf.

VI/etc/sysctl. confnet. ipv4.ip _ forward = 1net. ipv4.conf. All. rp_filter = 0net. ipv4.conf. Default. rp_filter = 0

11. Update sysctl

Sysctl-P

12. Install Network Services

Apt-Get install-y neutron-common neutron-plugin-ml2 neutron-plugin-openvswitch-agent

13. edit/etc/neutron/Neutron. conf.

VI/etc/neutron. conf [Default] auth_strategy = keystonecore_plugin = ml2service_plugins = routerallow_overlapping_ips = true rpc_backend = neutron. openstack. common. RPC. token = controller [keystone_authtoken] auth_uri = http: // Controller: 5000auth_host = controllerauth_port = 35357auth_protocol = httpadmin_tenant_name = serviceadmin_user = neutronadmin_password = service_pass

14. edit/etc/neutron/plugins/ml2/ml2_conf.ini

VI/etc/neutron/plugins/ml2/ml2_conf.ini [ml2] type_drivers = protocol = openvswitch [Protocol] Protocol = [ovs] local_ip = 10.0.1.31tunnel _ type = greenable_tunneling = [true [securitygroup] firewall_driver = neutron. agent. linux. iptables_firewall.ovshybridiptablesfirewalldriverenable_security_group = true

15. Restart the ovs service.

Service openvswitch-switch restart

16. Create a bridge

Ovs-vsctl add-BR-int

17. edit/etc/NOVA. conf.

VI/etc/NOVA/Nova. conf [Default] network_api_class = Nova. network. neutronv2.api. apineutron_url = http: // Controller: region = serviceneutron_admin_username = neutronneutron_admin_password = region = http: // Controller: 35357/v2.0linuxnet _ interface_driver = Nova. network. linux_net.linuxovsinterfacedriverfirewall_driver = Nova. virt. firewall. noopfirewalldriversecurity_group_api = neutron

18. edit/etc/NOVA/nova-compute.conf

VI/etc/NOVA/nova-compute.conf [Default] compute_driver = libvirt. lib1_driver [libvirt] 1__type = qemu

19. Restart Nova-compute.

Service Nova-compute restart

20. Restart the ovs agent service.

Service neutron-plugin-openvswitch-Agent restart

21. view the Nova service status

Nova-manage Service list

This article from "life is an attitude" blog, please be sure to keep this source http://sangh.blog.51cto.com/6892345/1564429

Openstack icehouse series computing node Construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.