- images:
-
http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7.box
-
add box vagrant box add centos7 http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7.box
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