How to use this box with Vagrant:

Vagrant.configure("2") do |config|
  config.vm.box = "xiaochen/centos-7"
  config.vm.box_version = "0.1"
end
vagrant init xiaochen/centos-7 \
  --box-version 0.1
vagrant up

This version was created 4 months ago.

模板文件:start Vagrant.configure("2") do |config| config.vm.box = "<%= box_name %>" config.vm.network "private_network", ip: "192.168.56.10" config.vm.synced_folder "../data", "/vagrant",disabled:true

config.vm.provider "virtualbox" do |vb| vb.name = "xiaochen-<%= box_name %>" vb.cpus = 2 vb.memory = "2048s" end config.ssh.username = 'root' config.ssh.password = 'vagrant' config.ssh.insert_key = false end 模板文件:end 启动命令:vagrant init "xiaochen/centos-7" --box-version="0.1" --template ./Vagrantfile.erb

1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (990 MB)