Created
December 7, 2018 09:07
-
-
Save giper45/aead6920e219ed746a319fa92cbf3ebc to your computer and use it in GitHub Desktop.
Vagrantfile Windows template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defines our Vagrant environment | |
# | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define :namemachine do |config| | |
config.vm.box = "win7" | |
config.vm.hostname = "one-win7-1" | |
config.vm.network :private_network, ip: "10.111.22.155" | |
config.vm.communicator = "winrm" | |
config.winrm.username="vagrant" | |
config.winrm.password="vagrant" | |
config.vm.provider "virtualbox" do |vb| | |
vb.default_nic_type = nil | |
vb.customize ["modifyvm", :id, "--nictype1", "82540EM"] | |
vb.customize ["modifyvm", :id, "--nictype2", "82540EM"] | |
vb.customize ["modifyvm", :id, "--audio", "none"] | |
vb.memory = "512" | |
end | |
# Don't see all directories | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
#config.vm.synced_folder "./provision/windows/generic/", "/provision/generic", disabled: false | |
#config.vm.synced_folder "./provision/windows/win7/", "/provision/win7", disabled: false | |
#config.vm.provision "file", source:"./provision/windows/utils/utils.psm1", destination: File.join(MODULEPATH, "utils", "utils.psm1") | |
#... | |
#config.vm.provision "shell", path: "./provision/windows/generic/routes.ps1" | |
#config.vm.provision "shell", path: "./provision/windows/generic/init.ps1" | |
#config.vm.provision "shell", path: "./provision/windows/win7_one/initwin1.ps1" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment