Friday, 1 June 2018

networking - Virtualbox: Connecting Host-Only networks on separate hosts


If i create multiple ubuntu guests on the same host (windows 7), all with a network adapter configured as "Host-Only" the result is that all guests in the host can ping each other


On windows 7 host, with ipconfig i see something like


Ethernet adapter Local Area Connection:


   Connection-specific DNS Suffix  . : wr
Link-local IPv6 Address . . . . . : ......
IPv4 Address. . . . . . . . . . . : 10.15.38.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.16.2.254

Ethernet adapter VirtualBox Host-Only Network:


   Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : .........
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

and in fact all guests show their ip to be on the 192.168.56.X subnet.


Question: is it possible to easily connect guests running on different hosts with this Host-Only network which are accessible through LAN?



Answer



The short answer is no. You can't use "Host-Only Networking" and connect guests on multiple, physical hosts. You are probably better off using bridged networking if you need to connect the guests to your LAN.


If you could provide more details of what you are trying to accomplish we could perhaps make a better recommendation.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...