Quick Prepare OpenStack box for SolusVM OpenVZ node

The following code will quickly prepare an OpenStack VM with aditional disk for OpenVZ

yum -y install lvm2 wget

pvcreate /dev/sdb
vgcreate vmvg /dev/sdb
lvcreate -l 12799 -n vzlv vmvg

mkdir /vz
echo "/dev/vmvg/vzlv /vz ext3 defaults 1 1" >> /etc/fstab
mount -a

wget https://files.soluslabs.com/install.sh
sh install.sh

Author: Andrew

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.