Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Setup OpenStack with Virtuozzo 7

1,542 bytes added, 14:15, 30 August 2016
no edit summary
<!--T:19-->
* Follow instructions on [http://docs.openstack.org/libertymitaka/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:
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 --property hypervisor_type=vz --property cinder_img_volume_type=vstorage-ploop --file centos7-exe.hds
== Install and configure a compute node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:16-->
<!--T:17-->
* Follow instructions on [http://docs.openstack.org/libertymitaka/install-guide-rdo/nova-compute-install.html OpenStack.org]
* In addition to above instructions change /etc/nova/nova.conf:
[libvirt]
...
vzstorage_mount_group = root
virt_type = parallels
images_type = ploop
* Then restart nova-compute service:
$ systemctl restart openstack-nova-compute.service
* If you plan to run Virtual Machines on your Compute node, change 'images_type' parameter to 'qcow2'
 
 
== Install and configure a block storage node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:16-->
 
<!--T:17-->
* Follow instructions on [http://docs.openstack.org/mitaka/install-guide-rdo/cinder-controller-install.html OpenStack.org]
* In addition to above instructions change /etc/cinder/cinder.conf:
 
[DEFAULT]
...
enabled_backends = lvmdriver-1,vstorage-ploop,vstorage-qcow2
...
 
[vstorage-ploop]
vzstorage_default_volume_format = parallels
vzstorage_shares_config = /etc/cinder/vzstorage-shares-vstorage.conf
volume_driver = cinder.volume.drivers.vzstorage.VZStorageDriver
volume_backend_name = vstorage-ploop
 
[vstorage-qcow2]
vzstorage_default_volume_format = qcow2
vzstorage_shares_config = /etc/cinder/vzstorage-shares-vstorage.conf
volume_driver = cinder.volume.drivers.vzstorage.VZStorageDriver
volume_backend_name = vstorage-qcow2
 
* Create etc/cinder/vzstorage-shares-vstorage.conf with the following content:
 
YOUR-CLUSTER-NAME ["-u", "cinder", "-g", "root", "-m", "0770"]
 
* Create two new volume types:
 
$ cinder type-create vstorage-qcow2
$ cinder type-key vstorage-qcow2 set volume_backend_name=vstorage-qcow2
 
$ cinder type-create vstorage-ploop
$ cinder type-key vstorage-ploop set volume_backend_name=vstorage-ploop
* Then restart cinder services:
 
$ systemctl restart openstack-cinder-api
$ systemctl restart openstack-cinder-scheduler
$ systemctl restart openstack-cinder-volume
 
== See also == <!--T:100-->
* [http://docs.openstack.org/libertymitaka/install-guide-rdo/environment-packages.html OpenStack installation guide]
* [https://docs.openvz.org/ Virtuozzo documentation]
* [[Virtuozzo ecosystem]]
Anonymous user