https://www.vagrantup.com/docs/getting-started/
It will be used later for your systems, I see it like a template for new vms.
vagrant box add centos/7
You can check for more on vagrant hashicorp catalog
export http_proxy='http://user:pass@server:port'
export https_proxy='http://user:pass@server:port'
set http_proxy=http://user:pass@server:port
set https_proxy=http://user:pass@server:port
$http_proxy='http://user:pass@server:port'
$https_proxy='http://user:pass@server:port'
mkdir mynewsystem1 # Create a folder to start
cd mynewsystem1
Now initialize as vagrant project
vagrant init centos/7
vagrant init
Edit the Vagrantfile and put the name of the box you are going to use like:
config.vm.box = "centos/7"
vagrant up
Now access it:
vagrant ssh
For More setting follow up:
https://www.vagrantup.com/docs/vagrantfile/
vagrant up --provider=virtualbox
sudo dnf install VirtualBox dkms kernel-devel
## Fedora 23/22/21/20/19 and CentOS/RHEL 7 ##
/usr/lib/virtualbox/vboxdrv.sh setup
- Install VirtualBox
Setup your default provider
Setting up virtualbox on your example:
export VAGRANT_DEFAULT_PROVIDER=virtualbox
Add it to your ~/.bashrc file if you want it permanent
Follow up same steps as Start
References:
https://github.com/sciurus/vagrant-mutate http://www.lucainvernizzi.net/blog/2014/12/03/vagrant-and-libvirt-kvm-qemu-setting-up-boxes-the-easy-way/
sudo dnf install qemu-img libvirt-devel ruby-devel
gem install ruby-libvirt
vagrant plugin install vagrant-mutate
Follow up usage page: https://github.com/sciurus/vagrant-mutate#usage
Notes: Virtualbox inside vmware