Skip to content

Commit 51bdafe

Browse files
authored
feat: vagrand file add box as env
1 parent c4ccc03 commit 51bdafe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Vagrantfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Vagrant.configure("2") do |config|
22

3-
config.vm.box = "peru/windows-server-2022-standard-x64-eval"
3+
config.vm.box = "${VAGRANT_BOX}"
44
config.vm.network "private_network", ip: "192.168.121.10"
55
config.vm.network "forwarded_port", guest: 445, host: 445
66
config.vm.provision "shell", inline: "Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False"
77
config.vm.provider "libvirt" do |libvirt|
88
libvirt.memory = ${MEMORY}
99
libvirt.cpus = ${CPU}
1010
libvirt.machine_virtual_size = ${DISK_SIZE}
11+
libvirt.forward_ssh_port = true
1112
end
1213
config.winrm.max_tries = 300 # default is 20
1314
config.winrm.retry_delay = 5 #seconds. This is the defaul value and just here for documentation.

0 commit comments

Comments
 (0)