

Select your virtual machine, then click Settings under the Actions pane. Select New virtual network switch, select Internal, then click Create virtual switch.Įnter a name for your switch, then select Internal Network. Select your virtual machine, then click Virtual Switch Manager under the Actions pane. If you already do, proceed to launch the Hyper-V manager. If you don’t have already have a virtual machine setup, check out our previous article for instructions. That’s not important to me, but if you want these settings to persist it’s not difficult, and is well-documented elsewhere (start with Ubuntu’s wiki, linked above).Share Your Network Connection with a Hyper-V Virtual Machine Note that these will be flushed upon reboot. That’s as simple as setting up IP forwarding on the development laptop and enabling a few firewall (iptables) rules to setup the NAT. I didn’t care about the latter– I just needed internet access from the VM. Normally, in this setup, the VM would attempt to use the development laptop as a NAT gateway for external access, but since our laptop isn’t setup that way, the VM can’t see the internet nor is it accessible from the internet.

I ran into the need to access the internet from a VirtualBox VM via host-only networking.
