Editing Setup OpenStack with Virtuozzo 7
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
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. | 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 | + | 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. |
+ | |||
+ | Please note that OpenStack now does not support containers and virtual machines on the same node, thus you need at least two nodes to try containers and VMs management. | ||
You need the following infrastructure to setup OpenStack with Virtuozzo 7: | You need the following infrastructure to setup OpenStack with Virtuozzo 7: | ||
Line 18: | Line 23: | ||
$ yum update -y | $ 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 <code>options nf_conntrack ip_conntrack_disable_ve0=1</code> to <code>options nf_conntrack ip_conntrack_disable_ve0=0</code> | ||
+ | #Reboot the system | ||
− | + | Git must be installed on all your Virtuozzo nodes: | |
− | + | $ yum install git -y | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | $ | ||
− | |||
− | |||
− | |||
− | |||
== Setup OpenStack Controller Node with Virtuozzo Containers Support (*Developer/POC Setup*) == <!--T:1--> | == Setup OpenStack Controller Node with Virtuozzo Containers Support (*Developer/POC Setup*) == <!--T:1--> | ||
Line 47: | Line 35: | ||
<!--T:3--> | <!--T:3--> | ||
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 support will be deployed. You can add another compute node with containers or VMs anytime you want as described in Setup OpenStack Compute Node section. | 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 support will be deployed. You can add another compute node with containers or VMs anytime you want as described in Setup OpenStack Compute Node section. | ||
− | |||
− | |||
− | |||
Clone virtuozzo scripts: | Clone virtuozzo scripts: | ||
Line 65: | Line 50: | ||
Output will show the discovered clusters. | Output will show the discovered clusters. | ||
Now you need to authenticate controller node on the Virtuozzo Storage cluster: | Now you need to authenticate controller node on the Virtuozzo Storage cluster: | ||
− | $ vstorage -c $CLUSTER_NAME auth-node | + | $ vstorage -c $CLUSTER_NAME auth-node -P |
Enter the virtuozzo storage cluster password and press Enter. | Enter the virtuozzo storage cluster password and press Enter. | ||
Check the cluster properties: | Check the cluster properties: | ||
Line 82: | Line 67: | ||
== Setup OpenStack Compute Node (*Developer/POC Setup*) == | == Setup OpenStack Compute Node (*Developer/POC Setup*) == | ||
− | |||
− | |||
− | |||
Clone Virtuozzo scripts to your COMPUTE node: | Clone Virtuozzo scripts to your COMPUTE node: | ||
Line 98: | Line 80: | ||
Output will show the discovered clusters. | Output will show the discovered clusters. | ||
Now you need to authenticate controller node on the Virtuozzo Storage cluster: | Now you need to authenticate controller node on the Virtuozzo Storage cluster: | ||
− | $ vstorage -c $CLUSTER_NAME auth-node | + | $ vstorage -c $CLUSTER_NAME auth-node -P |
Enter the virtuozzo storage cluster password and press Enter. | Enter the virtuozzo storage cluster password and press Enter. | ||
Check the cluster properties: | Check the cluster properties: | ||
Line 104: | Line 86: | ||
Output will show the virtuozzo storage cluster properties and state. | Output will show the virtuozzo storage cluster properties and state. | ||
− | Configure the script on the COMPUTE node. Please read script description here https://github.com/virtuozzo/virtuozzo-openstack- | + | Configure the script on the COMPUTE node. Please read script description here https://github.com/virtuozzo/virtuozzo-openstack-scripblob/master/README.md |
Example: | Example: | ||
Line 123: | Line 105: | ||
[libvirt] | [libvirt] | ||
... | ... | ||
− | virt_type = | + | virt_type = kvm |
images_type = qcow2 | images_type = qcow2 | ||
− | connection_uri = | + | connection_uri = parallels:///system |
Delete the line: | Delete the line: | ||
Line 148: | Line 130: | ||
# Run ./setup_devstack_vz7.sh with options you need. | # Run ./setup_devstack_vz7.sh with options you need. | ||
− | == | + | == Install and configure a nova controller node on [[Virtuozzo]] 7 == <!--T:18--> |
+ | <!--T:19--> | ||
+ | * Follow instructions on [http://docs.openstack.org/liberty/install-guide-rdo/nova-controller-install.html OpenStack.org] | ||
+ | * 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 [http://updates. | + | * Download the container [http://updates.pvs.parallels.com/server/virtuozzo/en_us/odin/7/techpreview-ct/centos7-exe.hds.tar.gz image] |
* Unpack it | * Unpack it | ||
Line 203: | Line 150: | ||
NOTE: this image was created for testing purposes only. Don't use it in production as is! | 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 | |
− | |||
− | |||
− | |||
− | |||
− | == Install and configure a compute node on [[Virtuozzo]] 7 | + | == Install and configure a compute node on [[Virtuozzo]] 7 == <!--T:16--> |
<!--T:17--> | <!--T:17--> | ||
− | + | * Follow instructions on [http://docs.openstack.org/liberty/install-guide-rdo/nova-compute-install.html OpenStack.org] | |
− | |||
− | * Follow instructions on [http://docs.openstack.org/ | ||
* In addition to above instructions change /etc/nova/nova.conf: | * In addition to above instructions change /etc/nova/nova.conf: | ||
Line 221: | Line 162: | ||
vnc_keymap = | vnc_keymap = | ||
force_raw_images = False | force_raw_images = False | ||
− | |||
[libvirt] | [libvirt] | ||
... | ... | ||
− | |||
− | |||
virt_type = parallels | virt_type = parallels | ||
images_type = ploop | images_type = ploop | ||
− | connection_uri = | + | connection_uri = parallels+unix:///system |
− | + | inject_partition = -2 | |
− | |||
− | |||
− | |||
* Then restart nova-compute service: | * Then restart nova-compute service: | ||
− | + | systemctl restart openstack-nova-compute.service | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == <!--T:100--> | == See also == <!--T:100--> | ||
− | * [http://docs.openstack.org/ | + | * [http://docs.openstack.org/liberty/install-guide-rdo/environment-packages.html OpenStack installation guide] |
− | + | * [https://docs.openvz.org/ Virtuozzo documentation] | |
− | |||
− | * [https://docs.openvz.org/ Virtuozzo | ||
* [[Virtuozzo ecosystem]] | * [[Virtuozzo ecosystem]] | ||