Use vagrant to create a new Linux virtual machine

Ready to work

1. Download the software

2. Install the software

  2.1 Install VirtualBox-5.1.34-121010-Win.exe

  2.2 Install vagrant_2.0.3_x86_64.msi

3. New

Execute the command D:\vagrant\10 and enter

 

  $ vagrant box add vagrant-11 D:\software\centos-7.0-x86_64.box

  $ vagrant init vagrant-10

  $ vagrant up to start ( $ vagrant halt to shut down )

 

  Modify D:\vagrant\10\Vagrantfile

  Add config.vm.network "private_network", ip: "192.168.88.10" in the middle

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325169743&siteId=291194637