Record some pits in the installation and configuration process
Step One
Download vagrant and VirtualBox respectively, I am here to download Vagrant_1.9.1.msi and Virtualbox-5.1.14-112924-win.exe
Step Two
After these two things were installed, I created a myvagrant directory on E disk, as a project directory, into the directory, to add box
Where centos7.0 is the name of the custom box, followed by the path of the local box
After the Vagrant Init cento7.0 is added, a vagrantfile file is generated in the Myvagrant directory
Then open this file and modify it here.
=================================================
When configured, enter vagrant up
This will start the success.
Pit One:
is the following error when vagrant up
If the provider you ' re using have a GUI that comes with it,
It's often helpful to open and watch the machine, since the
GUI often have more helpful error messages than Vagrant can retrieve.
For example, if you ' re using VirtualBox, run ' vagrant up ' while the
VirtualBox GUI is open.
The primary issue for this error is the provider you ' re using
is not properly configured. This is very rarely a Vagrant issue.
Then in StackOverflow read the answer, followed by change or no fruit, finally I uninstall the original installed VirtualBox, and then go to the official website to download the latest VirtualBox, version is Virtualbox-5.1.14-112924-win.exe
Then the error disappears when vagrant up, the reason for the VirtualBox version
Pit Two:
If you' re using a custom box, make sure this networking is properlyworking and you' re able to connect to T He machine. It's a commonproblem that networking isn' t setup properly in these boxes. Verify that authentication configurations is also setup properly, as well. If The box appears to is booting properly, you could want to increase thetimeout ("Config.vm.boot_timeout") value.
Because the configuration of the time to invoke the VirtualBox visual interface, so when this hint, VirtualBox that will also pop up a warning
VT-x/AMD-V硬件加速在您的系统中不可用。您的64-位虚拟机将无法检测到 64-位处理器,从而无法启动。
在网上找到解决办法是重启按f2进入bios设置,然后开启虚拟化支持,然后保存,重新启动,这个时候再用vagrant up就成功了。
Vagrant installation and configuration under Windows