Use vagrant to quickly create a linux virtual machine

One, install inux virtual machine

Download & install VirtualBox https://www.virtualbox.org/ , to enable CPU virtualization

After the download is complete, double-click to install.

2. Download & install Vagrant

https://app.vagrantup.com/boxes/search  Vagrant official mirror repository

https://www.vagrantup.com/downloads  Vagrant download

Open the windows cmd window and run Vagrant init centos/7 to initialize a centos7 system

Slow download solution

Note: VirtualBox will conflict with the following software including but not limited to, you need to uninstall these software, and then restart the computer; conflicting software, Starscream, 360, Netnet Master, etc.

Three, virtual machine network settings

Network address translation-port forwarding

This is too much trouble. I hope to give the virtual machine a fixed ip address. Windows can ping each other through the virtual machines. Just install a software and use its ip address to access it.

Can be pinged normally

Learning video

Guess you like

Origin blog.csdn.net/qq_38826019/article/details/114543012