OpenStack Mitaka - LXC

Instalación y configuración de OpenStack Mitaka sobre LXC en Ubuntu 14.04

Neutron - En el nodo computador

Instalamos el paquete neutron-linuxbridge-agent.

      root@nova-computer:~# apt install neutron-linuxbridge-agent
    
Editamos el fichero /etc/neutron/neutron.conf y añadimos las siguientes líneas.
      root@nova-computer:~# emacs /etc/neutron/neutron.conf
      [DEFAULT]
      auth_strategy = keystone
      core_plugin = ml2
      rpc_backend = rabbit

      [agent]
      root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
      
      [database]
      connection = sqlite:////var/lib/neutron/neutron.sqlite

      [keystone_authtoken]
      auth_uri = http://KEYSTONE_INTERNAL_IP:5000
      auth_url = http://KEYSTONE_INTERNAL_IP:35357
      memcached_servers = NOVA_CONTROLLER_INTERNAL_IP:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = neutron
      password = NEUTRON_PASS
      
      [oslo_messaging_rabbit]
      rabbit_host = NOVA_CONTROLLER_INTERNAL_IP
      rabbit_userid = openstack
      rabbit_password= RABBIT_PASS
    
Editamos el fichero /etc/neutron/plugins/ml2/linuxbridge_agent.ini.
      root@nova-computer:~# emacs /etc/neutron/plugins/ml2/linuxbridge_agent.ini
      [DEFAULT]

      [linux_bridge]
      physical_interface_mappings = provider:br0

      [securitygroup]
      firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
      enable_security_group = True

      [vxlan]
      enable_vxlan = True
      local_ip = NOVA_COMPUTE_INTERNAL_IP
      l2_population = True
    
Añadimos las siguientes líneas al fichero /etc/nova/nova.conf.
      root@nova-computer:~# emacs /etc/nova/nova.conf
      ...
      [neutron]
      url = http://HOST_CONTROLLER_INTERNAL_IP:9696
      auth_url = http://KEYSTONE_INTERNAL_IP:35357
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = NEUTRON_PASS
    
Reiniciamos los servicios.
      root@nova-computer:~# service nova-compute restart
      root@nova-computer:~# service neutron-linuxbridge-agent restart
    

Para crear las redes virtuales podemos seguir la guía de OpenStack.