Skip to content

Instantly share code, notes, and snippets.

@BoredHackerBlog
Last active January 2, 2021 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoredHackerBlog/7f858865ea45d7f3d742c1868e2585a8 to your computer and use it in GitHub Desktop.
Save BoredHackerBlog/7f858865ea45d7f3d742c1868e2585a8 to your computer and use it in GitHub Desktop.
Vagrantfile for creating Win10 VM w/ firewall disabled
#copied some things from https://github.com/jckhmr/adlab
Vagrant.configure("2") do |config|
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.vm.boot_timeout = 600
config.vm.graceful_halt_timeout = 600
config.winrm.retry_limit = 10
config.winrm.retry_delay = 20
config.vm.provider "virtualbox" do |v|
v.linked_clone = true
v.memory = 2048
v.cpus = 2
v.gui = true
end
config.vm.define "workstation1" do |workstation1|
workstation1.vm.box = "StefanScherer/windows_10"
workstation1.vm.network "private_network", ip: "192.168.200.11"
workstation1.vm.network :forwarded_port, guest: 5985, host: 45985, id: "winrm"
workstation1.vm.network :forwarded_port, guest: 3389, host: 43389, id: "msrdp"
workstation1.vm.hostname = "labworkstation1"
end
config.vm.provision "shell", inline: "netsh advfirewall set allprofiles state off"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment