Simple steps to install Linux on your windows system using Vagrant

 

 

Download the vagrant .msi file from below link and install

https://releases.hashicorp.com/vagrant/2.2.10/vagrant_2.2.10_x86_64.msi

 

Open command prompt with administration mode

 

Vagrant -v  -- to know the version

 

Vagrant box installation

 

Go to below

https://app.vagrantup.com/boxes/search

 

Choose any box based on your requirement on os

 

Vagrant box add centos/7

 

vagrant init centos/7
vagrant up

 

Connect the box using below command

 

Vagrant ssh

 

Or

Vagrant ssh-config

Ssh vagrant@127.0.0.1 -p 2222 -i <private key path>

 

Remove Vagrant Box

 

To list the vagrant boxes

Vagrant box list

 

To remove the specific box

vagrant destroy c9dbe239328c4980bfa4b45057125b7f

 

Or

vagrant destroy <name of the box>

Comments

Popular Posts