如何使用Vagrant配置win7&centos框。
我的Vagrantfile:
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "opensky/windows-7-professional-sp1-x64"
config.vm.box_version = "0.1.0"
config.vm.define :win7 do |win7|
config.vm.provider "virtualbox" do |v|
v.memory = 4096
end
win7.vm.network :private_network, ip: "192.168.22.167"
win7.vm.network "forwarded_port", guest: 3389, host: 33890
end
config.vm.define :linux do |linux|
config.vm.provider "virtualbox" do |v|
v.memory = 2048
end
linux.vm.box = "bento/centos-7.5"
linux.vm.network "private_network", ip: "192.168.22.166"
linux.vm.network :forwarded_port, host: 2201, guest: 22
linux.vm.memory = "4096"
end
end
不起作用... 帮我配置.....