74
edits
Changes
→Installing OpenStack with help of packstack on Virtuozzo 7 (*Production Setup*)
{{Virtuozzo}}
<translate>
<!--T:1-->
This howto article describes steps by step installation of how to install OpenStack devstack with on [[Virtuozzo]] 7.== Introduction == Virtuozzo 7 supports OpenStack as cloud management solution since version 6. With Virtuozzo 7 we are going to add a lot of new capabilities to OpenStack integration. This guide describes two ways of installing OpenStack on Virtuozzo nodes. The first is for quick/development/POC needs. The second is for production. Please keep in mind that devstack allows you to install OpenStack for demo/POC/development purposes only. That means it will be reset after host reboot. You need the following infrastructure to setup OpenStack with Virtuozzo 7:#controller host: physical host or virtual machine with at least 4CPU, 8GB RAM, 150GB disk. This host will act as a controller and Virtuozzo containers host.#compute host: physical host or virtual machine with at least 4CPU, 8GB RAM, 150GB disk. This host will act as a virtual machines host. == Prerequisites == You need to install and update your Virtuozzo nodes first. Install Virtuozzo 7 on your controller and compute hosts as usual. You can use basic (local) or Virtuozzo Storage. Update Virtuozzo hosts $ yum update -y If you have br0 bridge configured as an IP interface, then you should move an IP address assigned to it to the physical ethernet interface bridged to br0.You can check you configuration with the following command: $ if=$(brctl show | grep '^br0' | awk ' { print $4 }') && addr=$(ip addr | grep -w 'br0' | grep inet | awk ' {print $2} ') && gw=$(ip route | grep default | awk ' { print $3 } ') && echo "My interface is '$if', gateway is '$gw', IP address '$addr'" For instance you have the following output after execution the above script: My interface is 'en33', gateway is '192.168.190.2', IP address '192.168.190.134/24'. Then edit your /etc/sysconfig/network-scripts/ifcfg-ens33 to have the following content and remove BRIDGE="br0" string from it: ... ONBOOT=yes IPADDR=192.168.190.134 GATEWAY=192.168.190.2 PREFIX=24 ... Remove /etc/sysconfig/network-scripts/ifcfg-br0 file. $ rm /etc/sysconfig/network-scripts/ifcfg-br0 Then restart network service: $ systemctl restart network
== Setup OpenStack Controller Node with Virtuozzo Containers Support (*Developer/POC Setup*) == <!--T:21-->Execute the following commands within you Virtuozzo 7 host as root:
<!--T:3-->
== Install and configure a compute node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:616-->Install required packages: $ yum install -y git patch redhat-lsb-core euca2ools mysql-connector-python scsi-target-utils
<!--T:717-->Reinstall http Please use this chapter if you are going to run containers OR virtual machines on your compute node, but not containers AND virtual machines simultaneously. If you need to run containers and mod_wsgi:VMs simultaneously, please use next chapter.
<!--T:17-->
_EOF
</translate>
[[Category: HOWTO]]