Difference between revisions of "Setup OpenStack with Virtuozzo 7"
m |
m |
||
Line 3: | Line 3: | ||
<!--T:1--> | <!--T:1--> | ||
This article describes how to install OpenStack on [[Virtuozzo]] 7. | This article describes how to install OpenStack 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. | ||
+ | Current limitations (bugs, not implemented or by design): | ||
+ | #HA does not work. | ||
+ | #Virtuozzo Storage is not supported for containers and VMs in cinder. | ||
+ | |||
+ | This guide allows you to install OpenStack with Virtuozzo nodes with a help of Devstack tools. Devstack allows you to install stateless OpenStack for demo purpose that means it will be reset after host reboot. So, the best platform to setup OpenStack in this case is virtual machines. | ||
+ | |||
+ | 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 == | == Prerequisites == | ||
− | You need to install and update your Virtuozzo | + | 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 | ||
IP connection tracking should be enabled for CT0. Please do the following: | IP connection tracking should be enabled for CT0. Please do the following: | ||
Line 28: | Line 42: | ||
$ cd virtuozzo-openstack-scripts | $ cd virtuozzo-openstack-scripts | ||
− | + | ||
+ | |||
+ | |||
Run the script and follow instructions (if any): | Run the script and follow instructions (if any): | ||
Revision as of 11:29, 15 July 2016
<translate> This article describes how to install OpenStack on Virtuozzo 7.
Contents
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. Current limitations (bugs, not implemented or by design):
- HA does not work.
- Virtuozzo Storage is not supported for containers and VMs in cinder.
This guide allows you to install OpenStack with Virtuozzo nodes with a help of Devstack tools. Devstack allows you to install stateless OpenStack for demo purpose that means it will be reset after host reboot. So, the best platform to setup OpenStack in this case is virtual machines.
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
IP connection tracking should be enabled for CT0. Please do the following:
- Open the file /etc/modprobe.d/vz.conf
- Change the line
options nf_conntrack ip_conntrack_disable_ve0=1
tooptions nf_conntrack ip_conntrack_disable_ve0=0
- Reboot the system
Git must be installed on all your Virtuozzo nodes:
yum install git
Devstack all-in-one installation
You are able to setup OpenStack controller node together with compute node on the same server for demo or test purpose. In this case compute node with Virtuozzo Containers supported will be deployed. You can add another compute node with containers or VMs anytime you want as described in Devstack Multi-node Installation section.
Please note that OpenStack now does not support containers and virtual machines on the same node.
Clone virtuozzo scripts:
$ cd /vz $ git clone https://github.com/virtuozzo/virtuozzo-openstack-scripts $ cd virtuozzo-openstack-scripts
Run the script and follow instructions (if any):
$ ./setup_devstack_vz7.sh YOUR_HOST_IP YOUR_PASSWORD
Devstack multi node installation
Clone virtuozzo scripts on your CONTROLLER node:
$ cd /vz $ git clone https://github.com/virtuozzo/virtuozzo-openstack-scripts $ cd virtuozzo-openstack-scripts
Run the script on your CONTROLLER node and follow instructions (if any):
$ ./setup_devstack_vz7.sh YOUR_HOST_IP YOUR_PASSWORD CONTROLLER
Clone virtuozzo scripts on your COMPUTE node:
$ cd /vz $ git clone https://github.com/virtuozzo/virtuozzo-openstack-scripts $ cd virtuozzo-openstack-scripts
Run the script on your COMPUTE node and follow instructions (if any):
$ ./setup_devstack_vz7.sh YOUR_COMPUTE_HOST_IP YOUR_PASSWORD COMPUTE YOUR_CONTROLLER_HOST_IP
How to redeploy OpenStack on the same nodes
Your OpenStack setup will be reset after node restart. To redeploy OpenStack on the same nodes do the following:
cd /vz/virtuozzo-openstack-scripts
git pull
- Run ./setup_devstack_vz7.sh with options you need.
Install and configure a nova controller node on Virtuozzo 7
- Follow instructions on OpenStack.org
- In addition to above instructions change /etc/nova/nova.conf:
[DEFAULT] ... vnc_keymap =
[libvirt] ... virt_type = parallels images_type = ploop
- Change disk_formats string in /etc/glance/glance-api.conf so that it contains 'ploop'. Like this:
disk_formats = ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso,ploop
- Restart glance-api service:
systemctl restart openstack-glance-api.service
- Download the container image
- Unpack it
$ tar -xzvf centos7-exe.hds.tar.gz
- Upload the image to glance:
NOTE: this image was created for testing purposes only. Don't use it in production as is!
glance image-create --name centos7-exe --disk-format ploop --container-format bare --property vm_mode=exe --file centos7-exe.hds
- Restart nova services:
systemctl restart openstack-nova-api.service \ openstack-nova-cert.service openstack-nova-consoleauth.service \ openstack-nova-scheduler.service openstack-nova-conductor.service \ openstack-nova-novncproxy.service
Install and configure a compute node on Virtuozzo 7
- Follow instructions on OpenStack.org
- In addition to above instructions change /etc/nova/nova.conf:
[DEFAULT] ... vnc_keymap = force_raw_images = False
[libvirt] ... virt_type = parallels images_type = ploop connection_uri = parallels+unix:///system inject_partition = -2
- Then restart nova-compute service:
systemctl restart openstack-nova-compute.service
See also
</translate>