Changes

Jump to: navigation, search

Setup OpenStack with Virtuozzo 7

351 bytes added, 22:28, 25 December 2015
Marked this version for translation
<translate>
<!--T:1-->
This howto describes steps by step installation of OpenStack devstack with [[Virtuozzo]] 7.
<!--T:2-->
Execute the following commands within you Virtuozzo 7 host as root:
<!--T:3-->
Install RDO repo:
<!--T:4-->$ yum install -y https://rdoproject.org/repos/rdo-release.rpm
<!--T:5-->
Install EPEL repo:
$ yum install -y http://fedora-mirror01.rbc.ru/pub/epel//epel-release-latest-7.noarch.rpm
<!--T:6-->
Install required packages:
$ yum install -y git patch redhat-lsb-core euca2ools mysql-connector-python scsi-target-utils
<!--T:7-->
Reinstall http and mod_wsgi:
<!--T:8-->$ yum remove -y httpd httpd-tools mod_wsgi
$ yum install -y httpd
<!--T:9-->
Enable IP connection tracking for CT0:
<!--T:10-->$ echo -ne "options nf_conntrack ip_conntrack_disable_ve0=0\n" > /etc/modprobe.d/vz.conf
$ echo -ne "options nf_conntrack ip_conntrack_disable_ve0=0\n" > /etc/modprobe.d/parallels.conf
<!--T:11-->
Then reboot your system:
<!--T:12-->$ reboot
<!--T:13-->
Create user "stack" and add him to sudoers:
<!--T:14-->$ adduser stack -d /vz/stack
$ chmod 755 /vz/stack
$ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
<!--T:15-->
Download and unpack container image:
<!--T:16-->$ su stack -c "cd ~ && wget http://updates.virtuozzo.com/server/virtuozzo/en_us/odin/7/techpreview-ct/centos7-exe.hds.tar.gz"
$ su stack -c "cd ~ && tar -xzvf centos7-exe.hds.tar.gz"
<!--T:17-->
Clone devstack:
$ su stack -c "cd ~ && git clone git://git.openstack.org/openstack-dev/devstack"
<!--T:18-->
Create local.conf file:
<!--T:19-->$ cat > ~stack/devstack/local.conf << _EOF
<nowiki>[[local|localrc]]</nowiki>
FORCE=yes
_EOF
<!--T:20-->
Change HOST_IP within created ~stack/devstack/local.conf to a valid IP address of your Virtuozzo 7 host.
Change password for OpenStack services to whatever you prefer in ~stack/devstack/local.conf.
Make libvirt daemon accessible via socket for stack user:
<!--T:21-->$ sed -i s/"#unix_sock_group = \"libvirt\""/"unix_sock_group = \"stack\""/ /etc/libvirt/libvirtd.conf
$ sed -i s/"#unix_sock_ro_perms = \"0777\""/"unix_sock_ro_perms = \"0777\""/ /etc/libvirt/libvirtd.conf
$ sed -i s/"#unix_sock_rw_perms = \"0770\""/"unix_sock_rw_perms = \"0770\""/ /etc/libvirt/libvirtd.conf
$ sed -i s/"#auth_unix_rw = \"none\""/"auth_unix_rw = \"none\""/ /etc/libvirt/libvirtd.conf
<!--T:22-->
Clone nova repository:
<!--T:23-->$ su stack -c "cd ~ && git clone git://git.openstack.org/openstack/nova"
<!--T:24-->
Make libvirt 1.2.8 be minimum required version to run with Virtuozzo:
<!--T:25-->$ sed -i -e "s/MIN_LIBVIRT_PARALLELS_VERSION = (1, 2, 12)/MIN_LIBVIRT_PARALLELS_VERSION = (1, 2, 8)/" ~stack/nova/nova/virt/libvirt/driver.py
<!--T:26-->
Start devstack:
<!--T:27-->$ su stack -c "~/devstack/stack.sh"
<!--T:28-->
After script finishes, setup your iptables rules to allow incoming http trafic if you want to use OpenStack dashboard. For instance:
<!--T:29-->$ iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
$ iptables -A INPUT -p tcp --dport http -j ACCEPT
$ iptables -A INPUT -j REJECT
<!--T:30-->
Here you are!
</translate>
[[Category: HOWTO]]

Navigation menu