- 怎么快速部署虚拟机
- 多台虚拟机部署
- 如何令部署代码化(IAC = Infrastructure As Code)
https://app.vagrantup.com/boxes/search
for winget, u need to install "App Installer" in App Store of Windows, after that u can run winget in "cmd" or "powershell"
-
Install Vmware
winget install VMware Wokstation winget install vagrant
-
Install Vagrant plugin for vmware
vagrant plugin install vagrant-vmware-desktop
-
Manual Install vagrant-vmware-utility
-
Vagrant Install Ubuntu
vagrant init generic/ubuntu2010 vagrant up --provider vmware_desktop
i use ubuntu here, if u use other linux system that u need to switch to different linux package mangament tools like "yum","dnf",etc...
- Install Virtualbox
sudo apt update sudo apt install virtualbox sudo apt install vagrant
- Install Vagrant plugin for virtualbox
sudo vagrant plugin install virtualbox
- Vagrant Install CentOS
sudo vagrant init centos/7 sudo vagrant up --provider virtualbox
for MacOS, we can use "Homebrew" or "Macports" for package management.
-
Install Docker
brew install --cask docker brew install vagrant
-
Install Ubuntu
vagrant init tknerr/baseimage-ubuntu-18.04 vagrant up --provider docker
vagrant init
vargrant plugin
vagrant up
vagrant status
vagrant halt
vagrant reload
vagrant suspend
vagrant resume
vagrant ssh
vagrant rdp
vagrant destroy