Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Vagrant.configure("2") do |config|
  2. config.vm.define "windows7" do |w7|
  3.  
  4. w7.vm.box = "windows7"
  5. w7.vm.hostname = "windows7"
  6. w7.vm.communicator = "winrm"
  7. w7.winrm.transport = "plaintext"
  8. w7.vm.boot_timeout = 500
  9. w7.winrm.username = "vagrant"
  10. w7.winrm.password = "vagrant"
  11.  
  12. w7.vm.network "private_network", ip: "192.168.50.3", virtualbox__intnet: "internal_vm"
  13. w7.vm.network "private_network", :type => 'dhcp', :name => 'VirtualBox Host-Only Ethernet Adapter #3', :adapter => 3
  14. config.winrm.timeout = 120
  15. config.winrm.retry_limit = 10
  16.  
  17. w7.vm.provider :virtualbox do |win7|
  18. win7.name = "windows7"
  19. win7.memory = 1024
  20. win7.gui = true
  21. end
  22.  
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement