github.com/swiftstack/proxyfs@v0.0.0-20201223034610-5434d919416e/win10/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  # Notes:
     5  #
     6  #   0) What follows assumes you have a running SAIO for ProxyFS VM sharing non-DHCP Host-only vboxnet0
     7  #      (wherein your "host" is using 172.28.128.1 and the SAIO for ProxyFS VM is using 172.28.128.2)
     8  #   1) "vagrant up" will likely have some problems connecting to Windows VM,
     9  #      so just use VirtualBox Manager after initial provisioning
    10  #   2) You may need to ^C out of the vagrant up command following provisioning
    11  #   3) Subsequent restarts should just be done with VirtualBox Manager
    12  #   4) To get to the console, launch VirtualBox Manager, select EdgeOnWindows10, and hit Show
    13  #   5) You may be asked to Update OneDrive on first boot
    14  #   6) Settings->Network&Internet->Ethernet->Change adapter options
    15  #   7) Right-click to Properties on Ethernet2
    16  #   8) Select Properties for Internet Protocol Version 4 (TCP/IPv4)
    17  #   9) Select Use the following IP address and enter:
    18  #        IP address:      172 .  28 . 128 . 3
    19  #        Subnet mask:     255 . 255 . 255 . 0
    20  #        Default gateway: 172 .  28 . 128 . 1 [as this is a Host-only network, you're not going anywhere else though]
    21  #  10) OK/Close back out to Settings->Network&Internet->Ethernet and select Windows Firewall
    22  #  11) Noting that Windows Firewall state is currently "On", select "Advanced settings" (on left)
    23  #  12) At bottom of "Overview" section, select "Windows Firewall Properties"
    24  #  13) For each of Domain Profile, Private Profile, and Public Profile tabs,
    25  #      set Firewall state to "Off" and Apply
    26  #  14) Open File Explorer
    27  #  15) Right-click Network->Map network drive...
    28  #  16) Enter \\172.28.128.2\proxyfs in Folder text box,
    29  #      uncheck Reconnect at sign-in, and
    30  #      check Connect using different credentials and hit Finish to map Drive Letter Z to your running ProxyFS VM
    31  #  17) User name should be set to "\swift" (the leading backslash indicates a user not in a domain)
    32  #      and a password of "swift" and hit "OK"
    33  #  18) When you shutdown (probably after disconnecting Z:), you'll likely want to await the Windows Updates
    34  
    35  Vagrant.configure(2) do |config|
    36    config.vm.box = "Microsoft/EdgeOnWindows10"
    37    config.vm.box_version = "1.0"
    38    config.vm.communicator = "winrm"
    39    config.vm.provider :virtualbox do |vb|
    40      vb.name = "EdgeOnWindows10"
    41      vb.cpus = Integer(ENV['VAGRANT_CPUS'] || 1)
    42      vb.memory = Integer(ENV['VAGRANT_RAM'] || 2048)
    43    end
    44    config.vm.network "private_network", ip: "172.28.128.3", :name => 'vboxnet0', :adapter => 2
    45  end