Editing Setup VzIP on Virtuozzo 7

Jump to: navigation, search

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 1: Line 1:
 +
{{Virtuozzo}}
 +
<translate>
 +
<!--T:1-->
 +
This article describes how to install Virtuozzo Infrastructure Platform on [[Virtuozzo]] 7.
 +
== Introduction ==
  
 +
You need the following infrastructure to setup Virtuozzo Infrastructure Platform on Virtuozzo 7:
 +
# Three controller hosts: physical host or virtual machine with at least 4CPU, 8GB RAM, 150GB disk. These hosts will act as controller and Virtuozzo containers host.
 +
# Compute hosts: physical host or virtual machine with at least 4CPU, 8GB RAM, 150GB disk.
 +
# Configured VStorage: a set of
 +
 +
== 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
 +
 +
If 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:
 +
 +
$ if=$(brctl show | grep '^br0' | awk ' { print $4 }') && addr=$(ip addr | grep -w 'br0' | grep inet | awk ' {print $2} ') && gw=$(ip route | grep default | awk ' { print $3 } ') && echo "My interface is '$if', gateway is '$gw', IP address '$addr'"
 +
 +
For instance you have the following output after execution the above script:
 +
 +
My interface is 'en33', gateway is '192.168.190.2', IP address '192.168.190.134/24'.
 +
 +
Then edit your /etc/sysconfig/network-scripts/ifcfg-ens33 to have the following content and remove BRIDGE="br0" string from it:
 +
...
 +
ONBOOT=yes
 +
IPADDR=192.168.190.134
 +
GATEWAY=192.168.190.2
 +
PREFIX=24
 +
...
 +
 +
Remove /etc/sysconfig/network-scripts/ifcfg-br0 file.
 +
 +
$ rm /etc/sysconfig/network-scripts/ifcfg-br0
 +
 +
Then restart network service:
 +
 +
$ systemctl restart network
 +
 +
== Installing Virtuozzo Infrastructure Platform on [[Virtuozzo]] 7 using packstack ==
 +
 +
* Install Virtuozzo Platform Release package to all Virtuozzo OpenStack nodes:
 +
 +
$ yum install vz-platform-release
 +
 +
* Install packstack package:
 +
 +
$ yum install openstack-packstack
 +
 +
* Download sample Vz7 packstack answer file:
 +
 +
$ wget https://raw.githubusercontent.com/virtuozzo/virtuozzo-openstack-scripts/master/vz7-packstack-ocata.txt
 +
 +
* Edit vz7-packstack-ocata.txt enabling/disabling necessary services
 +
* Replace all references to 'localhost' and '127.0.0.1' host addresses to correct valuses
 +
* Set all passwords parameters containing PW_PLACEHOLDER string to some meaninful values
 +
* If you are going to use Virtuozzo Storage as a Cinder Volume backend set the following parameters:
 +
 +
  # Enable Virtuozzo Storage
 +
  CONFIG_VSTORAGE_ENABLED=y
 +
 +
  # VStorage cluster name.
 +
  CONFIG_VSTORAGE_CLUSTER_NAME=
 +
 +
  # VStorage cluster password.
 +
  CONFIG_VSTORAGE_CLUSTER_PASSWORD=
 +
 +
  # Bridge mappings
 +
  CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=extnet1:br-ex
 +
 +
  # Bridge interfaces
 +
  CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-ex:eth0
 +
 +
  # Bridge mapping for compute node
 +
  CONFIG_NEUTRON_OVS_BRIDGES_COMPUTE=extnet1:br-ex
 +
 +
* Then run packstack:
 +
 +
$ packstack --answer-file=vz7-packstack-ocata.txt
 +
 +
== Generate and Upload images == <!--T:18-->
 +
 +
* Upload the image to glance:
 +
 +
$ glance image-create --name centos7-exe --disk-format ploop --min-ram 512 --min-disk 1 --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 --min-ram 1024 --min-disk 10 --container-format bare --property cinder_img_volume_type=vstorage-qcow2 --file CentOS-7-x86_64-GenericCloud.qcow2
 +
 +
* CentOS image one can get here [http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 ]
 +
 +
== See also == <!--T:100-->
 +
* [http://docs.openstack.org/newton/install-guide-rdo/nova-controller-install.html Controller Node Installation Guide]
 +
* [http://docs.openstack.org/newton/install-guide-rdo/nova-compute-install.html Compute Node Installation Guide]
 +
* [http://docs.openstack.org/newton/install-guide-rdo/environment-packages.html OpenStack Installation Guide]
 +
* [https://docs.openvz.org/ Virtuozzo Documentation]
 +
* [[Virtuozzo ecosystem]]
 +
 +
</translate>
 +
 +
[[Category: HOWTO]]

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)