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 18: | Line 18: | ||
$ yum update -y | $ yum update -y | ||
− | + | Git must be installed on all your Virtuozzo nodes: | |
+ | $ yum install git -y | ||
+ | |||
+ | Most probably, you have br0 bridge configured as an IP interface, then you should move an IP address assigned to it to the physical ethernet interface bridged to br0. | ||
You can check you configuration with the following command: | You can check you configuration with the following command: | ||
Line 47: | Line 50: | ||
<!--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 82: | Line 82: | ||
== 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 95: | ||
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 101: | ||
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 125: | Line 122: | ||
virt_type = parallels | virt_type = parallels | ||
images_type = qcow2 | images_type = qcow2 | ||
− | connection_uri = | + | connection_uri = parallels:///system |
Delete the line: | Delete the line: | ||
Line 151: | Line 148: | ||
− | * | + | * Create a new repo file: |
− | $ yum install | + | cat > /etc/yum.repos.d/virtuozzo-extra.repo << _EOF |
+ | [virtuozzo-extra] | ||
+ | name=Virtuozzo Extra | ||
+ | baseurl=http://repo.virtuozzo.com/openstack/newton/x86_64/os/ | ||
+ | enabled=1 | ||
+ | gpgcheck=1 | ||
+ | priority=50 | ||
+ | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Virtuozzo-7 | ||
+ | _EOF | ||
+ | |||
+ | * Add RDO repository: | ||
+ | |||
+ | $ yum install https://rdoproject.org/repos/rdo-release.rpm | ||
* Install packstack package: | * Install packstack package: | ||
Line 161: | Line 170: | ||
* Download sample Vz7 packstack answer file: | * Download sample Vz7 packstack answer file: | ||
− | $ wget https://raw.githubusercontent.com/virtuozzo/virtuozzo-openstack-scripts/master/vz7-packstack- | + | $ wget https://raw.githubusercontent.com/virtuozzo/virtuozzo-openstack-scripts/master/vz7-packstack-sample.txt |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | * Edit vz7-packstack-sample.txt enabling/disabling necessary services. Also make sure you have correct IP addresses specified by the following parameters in the file: | |
− | |||
− | + | CONFIG_CONTROLLER_HOST | |
− | + | CONFIG_COMPUTE_HOSTS | |
+ | CONFIG_NETWORK_HOSTS | ||
+ | CONFIG_AMQP_HOST | ||
+ | CONFIG_MARIADB_HOST | ||
+ | CONFIG_REDIS_HOST | ||
+ | * Change CONFIG_DEFAULT_PASSWORD parameter!!! | ||
* Then run packstack: | * Then run packstack: | ||
− | $ packstack --answer-file | + | $ packstack --answer-file vz7-packstack-sample.txt |
== Install and configure a nova controller node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:18--> | == Install and configure a nova controller node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:18--> | ||
Line 194: | Line 190: | ||
<!--T:19--> | <!--T:19--> | ||
* Follow instructions on [http://docs.openstack.org/newton/install-guide-rdo/nova-controller-install.html OpenStack.org] | * Follow instructions on [http://docs.openstack.org/newton/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.virtuozzo.com/server/virtuozzo/en_us/odin/7/techpreview-ct/centos7-exe.hds.tar.gz image] | * Download the container [http://updates.virtuozzo.com/server/virtuozzo/en_us/odin/7/techpreview-ct/centos7-exe.hds.tar.gz image] | ||
Line 203: | Line 206: | ||
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 | + | $ 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 |
− | $ glance image-create --name centos7-hvm --disk-format qcow2 | + | $ glance image-create --name centos7-hvm --disk-format qcow2 --container-format bare --property cinder_img_volume_type=vstorage-qcow2 --file CentOS-7-x86_64-GenericCloud.qcow2 |
− | * | + | * CenOS image one can get from [http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 here] |
== Install and configure a compute node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:16--> | == Install and configure a compute node on [[Virtuozzo]] 7 (*Production Setup*) == <!--T:16--> | ||
<!--T:17--> | <!--T:17--> | ||
− | |||
− | |||
* Follow instructions on [http://docs.openstack.org/newton/install-guide-rdo/nova-compute-install.html OpenStack.org] | * Follow instructions on [http://docs.openstack.org/newton/install-guide-rdo/nova-compute-install.html 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 222: | ||
vnc_keymap = | vnc_keymap = | ||
force_raw_images = False | force_raw_images = False | ||
− | |||
[libvirt] | [libvirt] | ||
... | ... | ||
− | |||
vzstorage_mount_group = root | vzstorage_mount_group = root | ||
virt_type = parallels | virt_type = parallels | ||
images_type = ploop | images_type = ploop | ||
− | connection_uri = | + | connection_uri = parallels:///system |
− | * Remove 'cpu_mode' parameter | + | * Remove 'cpu_mode' parameter: |
− | |||
− | |||
+ | cpu_mode= | ||
+ | |||
* Then restart nova-compute service: | * Then restart nova-compute service: | ||
Line 244: | Line 243: | ||
<!--T:17--> | <!--T:17--> | ||
− | |||
− | |||
* Follow instructions on [http://docs.openstack.org/mitaka/install-guide-rdo/cinder-controller-install.html OpenStack.org] | * 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: | * In addition to above instructions change /etc/cinder/cinder.conf: | ||
Line 255: | Line 252: | ||
[vstorage-ploop] | [vstorage-ploop] | ||
− | vzstorage_default_volume_format = | + | vzstorage_default_volume_format = parallels |
vzstorage_shares_config = /etc/cinder/vzstorage-shares-vstorage.conf | vzstorage_shares_config = /etc/cinder/vzstorage-shares-vstorage.conf | ||
volume_driver = cinder.volume.drivers.vzstorage.VZStorageDriver | volume_driver = cinder.volume.drivers.vzstorage.VZStorageDriver | ||
Line 276: | Line 273: | ||
$ cinder type-create vstorage-ploop | $ cinder type-create vstorage-ploop | ||
− | $ cinder type-key vstorage-ploop set volume_backend_name=vstorage-ploop | + | $ cinder type-key vstorage-ploop set volume_backend_name=vstorage-ploop |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* Then restart cinder services: | * Then restart cinder services: | ||
Line 292: | Line 281: | ||
$ systemctl restart openstack-cinder-volume | $ systemctl restart openstack-cinder-volume | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == <!--T:100--> | == See also == <!--T:100--> |