Vagrant setup – centos7 / docker

# install docker yum install -y yum-utils yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce # configure docker systemctl enable docker systemctl start docker # configuring current user in docker group sudo usermod -aG docker $(whoami) # install vagrant yum install -y https://releases.hashicorp.com/vagrant/2.2.3/vagrant_2.2.3_x86_64.rpm

Vagrant – VagrantFile

VagrantFile is in ruby syntax. This is configuration that is used when vagrant creates vms. If no directory is given vagrant will mount vagrant folder as shared folder between host and container/vm . To setup custom sync folder Vagrant.configure(“2”) do |config| config.vm.box = ‘centos/7’ # configures synced folder config.vm.synced_folder “./content”, “/vagrant” end To setup multi […]

Vagrant boxes

Vagrant boxes are preconfigured images that can be downloaded from vagrant to create your own homogeneous test environment across multisystems and platforms. using vagrantup to get boxes you can download vagrant boxes (image) from vagrantup.com or create your own use version control if developing your own #vagrant box commands vagrant box add <URL> vagrant box […]

KVM and Vagrant Setup on RHEL/CentOS 7

Step 1 – KVM and Vagrant Installation Installs needed packages for KVM and Vagrant yum -y install virt-manager qemu qemu-kvm qemu-img libvirt libvirt-python libvirt-devel python-virtinst libvirt-client ruby-devel gcc Auto-starts libvirt on system boot systemctl enable libvirtd Starts the libvirt service immediately systemctl start libvirtd Obtaining Vagrant RPM wget https://releases.hashicorp.com/vagrant/2.2.2/vagrant_2.2.2_x86_64.rpm Go to https://releases.hashicorp.com/vagrant/ to ensure it […]