Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • I did this, and it does indeed create a VM with a static Ip; but it doesn't have internet access. Any thoughts?
    – Hildy
    Commented Oct 21, 2019 at 17:04
  • @Hildy The most likely explanation is a network configuration issue in the guest OS. Does Get-VM "your-vm-name" | Get-VMNetworkAdapter show NATSwitch for the SwitchName and {OK} for the Status? Commented Oct 21, 2019 at 18:06
  • Indeed it does.
    – Hildy
    Commented Oct 21, 2019 at 19:04
  • Using the network script to change the guest OS, then triggering a vagrant reload with :reload works if you use the default switch and set IPADDR with in its range, then set the GATEWAY and DNS1 to both be the Ip of the default switch found with ipconfig on the host. But since the default switche's ip is not static, that's not entirely helpful.
    – Hildy
    Commented Oct 21, 2019 at 19:38
  • 1
    Ok, for you edification, the issue was that my machine is in a corporate network, and it doesn't seem to allow that Google DNS. I did an ipconfig /all in command, used one of the DNS addresses listed under the adapter my machine is using to plug into the network. Your instructions work otherwise.
    – Hildy
    Commented Oct 21, 2019 at 21:20