Setup einer automatisierten Cloud-Infrastruktur

By 3. November 2014 Allgemein No Comments

VAGRANT
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.rpm
sudo rpm -i vagrant_1.6.5_x86_64.rpm
vagrant -v

yum install gcc-c++ patch readline readline-devel zlib zlib-devel
yum install libyaml-devel libffi-devel openssl-devel make
yum install bzip2 autoconf automake libtool bison iconv-devel
gpg2 –keyserver hkp://keys.gnupg.net –recv-keys D39DC0E3
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 2.1.3
rvm use 2.1.3 –default
ruby –version

yum install libvirt-devel
vagrant plugin install vagrant-libvirt

vagrant box add centos64 http://kwok.cz/centos64.box

nano Vagrantfile
Vagrant.configure(“2″) do |config|
config.vm.define :test_vm do |test_vm|
test_vm.vm.box = “centos64″
end
end

export VAGRANT_DEFAULT_PROVIDER=libvirt
vagrant up

vagrant init hashicorp/precise32

vagrant init

Leave a Reply