Quickly create Linux with vagrant

1. Download VirtualBox

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

2. Download Vagrant

https://www.vagrantup.com/downloads

3. Test Vagrant

1
vagrant

4. Vagrant init

1
vagrant init centos7 https://mirrors.ustc.edu.cn/centos-cloud/centos/7/vagrant/x86_64/images/CentOS-7.box

5. Run

1
vagrant up

6. Connect

1
vagrant ssh

7. Other

Turn off the default /vagrant share

1
config.vm.synced_folder ".", "/vagrant", disabled: true

Quickly create Linux with vagrant
https://www.hardyhu.cn/2022/01/23/Quickly-create-Linux-with-vagrant/
Author
John Doe
Posted on
January 23, 2022
Licensed under