Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Setup OpenStack with Virtuozzo 7

1,215 bytes added, 14:13, 19 January 2016
no edit summary
<!--T:18-->
As soon as we switched to a new linux distribution, which is not supported in upstream devstack yet, apply the following patch:
diff --git a/functions-common b/functions-common
index 47276f0..c0cdd3b 100644
--- a/functions-common
+++ b/functions-common
@@ -338,8 +338,9 @@ function GetOSVersion {
# XenServer release 6.2.0-70446c (xenenterprise)
# Oracle Linux release 7
# CloudLinux release 7.1
+ # VirtuozzoLinux release 7.0
os_CODENAME=""
- for r in "Red Hat" CentOS Fedora XenServer CloudLinux; do
+ for r in "Red Hat" CentOS Fedora XenServer CloudLinux VirtuozzoLinux; do
os_VENDOR=$r
if [[ -n "`grep \"$r\" /etc/redhat-release`" ]]; then
ver=`sed -e 's/^.* \([0-9].*\) (\(.*\)).*$/\1\|\2/' /etc/redhat-release`
@@ -446,7 +447,8 @@ function is_fedora {
 
[ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || \
[ "$os_VENDOR" = "CentOS" ] || [ "$os_VENDOR" = "OracleLinux" ] || \
- [ "$os_VENDOR" = "CloudLinux" ] || [ "$os_VENDOR" = "kvmibm" ]
+ [ "$os_VENDOR" = "CloudLinux" ] || [ "$os_VENDOR" = "kvmibm" ] ||
+ [ "$os_VENDOR" = "VirtuozzoLinux" ]
}
 
<!--T:19-->
Create local.conf file:
<!--T:1920-->
$ cat > ~stack/devstack/local.conf << _EOF
<nowiki>[[local|localrc]]</nowiki>
_EOF
<!--T:2021-->
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:2122-->
$ 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/"#auth_unix_rw = \"none\""/"auth_unix_rw = \"none\""/ /etc/libvirt/libvirtd.conf
<!--T:2223-->
Clone nova repository:
<!--T:2324-->
$ su stack -c "cd ~ && git clone git://git.openstack.org/openstack/nova"
<!--T:2625-->
Start devstack:
<!--T:2726-->
$ su stack -c "~/devstack/stack.sh"
<!--T:2827-->
After script finishes, setup your iptables rules to allow incoming http trafic if you want to use OpenStack dashboard. For instance:
<!--T:2928-->
$ iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
$ iptables -A INPUT -p tcp --dport http -j ACCEPT
$ iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
<!--T:3039-->
Here you are!
</translate>
[[Category: HOWTO]]
74
edits