Skip to content

Instantly share code, notes, and snippets.

@Charnnarong
Last active February 3, 2017 09:42
Show Gist options
  • Save Charnnarong/98fbdade1097478fec05d0a945b62fde to your computer and use it in GitHub Desktop.
Save Charnnarong/98fbdade1097478fec05d0a945b62fde to your computer and use it in GitHub Desktop.

Proven Vagrant + VirtualBox + Centos7 combination.

Requirement.

Vagrant

download: https://releases.hashicorp.com/vagrant/1.9.0/

$ vagrant -v
Vagrant 1.9.0

Plugins

$ vagrant plugin list
...
vagrant-vbguest (0.13.0)
...

If the plugin isn't installed. Install the plugin with the following command

$ vagrant plugin install vagrant-vbguest

Virtualbox

download: https://www.virtualbox.org/wiki/Downloads

Lenovo@LENOVO-THINK C:\Program Files\Oracle\VirtualBox
$ VBoxManage -v
5.1.14r112924

**Centos7 ***

$ vagrant box list
...
centos/7                   (virtualbox, 1611.01)
...

Vagrant file requirement.

config.vbguest.auto_update = true

Vagrantfile example

# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|

  config.vbguest.auto_update = true
  config.vm.box = "centos/7"
  config.vm.hostname = "keyCloak"
  config.vm.network "private_network" , ip: "10.100.193.20"  
  config.vm.synced_folder "./data", "/vagrant_data"
  config.vm.provider "virtualbox" do |vb|
     vb.memory = "4096"
  end

end
@kharisj
Copy link

kharisj commented Feb 1, 2017

What's synced_folder options? rsync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment