First of all, you need to create a VirtualBox Host-Only Ethernet adapter
In Virtualbox:
- Go to File> Preferences. On the "Network" tab, select "Only host networks", click "add host-only adapter", give it a default name, this is "VirtualBox Host-Only Ethernet Adapter"
On Windows:
- go to Network Connections in Windows and select both the real adapter and the new virtual ethernet adapter that you just created.
- Right-click and select "Bridge Connections" to create a network bridge in Windows.
Now configure your virtual machine:
- in the "Network" section, you can activate a new adapter, and then select "Attached to the adapter only for hosting"
- Select only the VirtualBox virtual adapter you just created.
Now you can configure your static IP address by changing / etc / network / interfaces:
auto eth0 iface eth0 inet static address 10.1.1.100 netmask 255.255.255.0 gateway 10.1.1.1
Now you can restart eth0 by doing:
sudo ifdown eth0 sudo ifup eth0
Some wireless adapters do not work
Khalil TABBAL Sep 18 '15 at 3:34 2015-09-18 03:34
source share