Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Setup OpenStack with Virtuozzo 7

1,889 bytes added, 11:44, 15 July 2016
no edit summary
Run the script on your CONTROLLER node and follow instructions (if any):
$./setup_devstack_vz7.sh
Installation can take up to 30 minutes depending on your Internet connection speed. Finished!
Clone Virtuozzo scripts to your COMPUTE node:
# $ cd /vz# $ git clone https://github.com/virtuozzo/virtuozzo-openstack-scripts# $ cd /vz/virtuozzo-openstack-scripts If you want to use Virtuozzo Storage with OpenStack and your Virtuozzo Storage is running on another node and not on the compute you need to setup Virtuozzo Storage client and authorize compute node in the Virtuozzo Cluster. Setup Virtuozzo Storage client: $ yum install vstorage-client -yCheck cluster discovery is working fine first: $ vstorage discoverOutput will show the discovered clusters.Now you need to authenticate controller node on the Virtuozzo Storage cluster: $ vstorage -c $CLUSTER_NAME auth-node -PEnter the virtuozzo storage cluster password and press Enter. Check the cluster properties: $ vstorage -c $CLUSTER_NAME topOutput 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-scripts/blob/master/README.md Example:source vzrc --host_ip 10.24.41.26 --password Virtuozzo1! --use_provider_network true --mode COMPUTE --controller 10.24.41.25  Run the script on your COMPUTE node and follow instructions (if any): $ ./setup_devstack_vz7.sh == How to change Virtualiztion Type to Virtual Machines on the Compute Node == If you want to use virtual machines instead of containers on your compute node you need to change virtualization type to KVM on the selected compute node. Open nova configuration file: $ vi /etc/nova/nova.conf Change the following lines:[libvirt]...virt_type = kvmimages_type = qcow2connection_uri = qemu:///system Delete the line:inject_partition = -2 Save the file. Restart nova-compute service: $ su stack $ screen -rPress Ctrl-c $ sg libvirtd '/usr/bin/nova-compute --config-file /etc/nova/nova.conf' & echo $! >/vz/stack/status/stack/n-cpu.pid; fg || echo "n-cpu failed to start" | tee "/vz/stack/status/stack/n-cpu.failure" To exit from screen session:Press Ctrl+a+d
== How to redeploy OpenStack on the same nodes ==
91
edits