vagrant tutorial/vagrant 入门

Windows:
下载安装包:

vagrant_2.3.0_windows_amd64.msi
vagrant-vmware-utility_1.0.21_x86_64.msi

 

安装插件:

vagrant plugin install vagrant-vmware-desktop
vagrant plugin update vagrant-vmware-desktop


初始化:

mkdir Vagrant && cd Vagrant
vagrant init

Vagrantfile:


# -*- mode: ruby -*-
# vi: set ft=ruby :


Vagrant.configure("2") do |config|
 config.vm.box = "hashicorp/bionic64"
 config.vm.provider "vmware_workstation" do |v|
  v.gui = true
 end
end

运行:

vagrant up

 
参考文献:
https://www.vagrantup.com/docs/providers/vmware/vagrant-vmware-utility
我的git:
https://github.com/songpeng22/Vagrant_Tutorial/tree/main/01_init_script_desktop




posted @ 2022-09-15 14:42  hkingsp  阅读(27)  评论(0编辑  收藏  举报