Skip to content

Instantly share code, notes, and snippets.

@maxivak
Last active October 18, 2015 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxivak/19049ba70a0faf24cf12 to your computer and use it in GitHub Desktop.
Save maxivak/19049ba70a0faf24cf12 to your computer and use it in GitHub Desktop.
Install Centos 7 on Virtual machine using VirtualBox and Vagrant

Install Centos 7 on Virtual machine using VirtualBox and Vagrant

  • images:

cd /home/myuser/vagrant mkdir centos7

cd centos7

vagrant init

Edit file "Vagrantfile" in this directory and replace

edit memory settings:

   config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  # 
  #   # Customize the amount of memory on the VM:
     vb.memory = "2560"
   end
  #

network settings

  config.vm.network "public_network", auto_config: false

  # manual ip
  config.vm.provision "shell",
    run: "always",
    inline: "ifconfig eth1 51.0.1.2 netmask 255.0.0.0 up"
  • start

vagrant up

  • Issues

/usr/lib/ruby/vendor_ruby/vagrant/action/builtin/mixin_synced_folders.rb:71:in `block in synced_folders': Internal error. Report this as a bug. Invalid: rsync (RuntimeError)

-- vagrant bsdtar unrecognized archive format

upgrade to vagrant 1.7.4

download and install from http://www.vagrantup.com/downloads

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