W
W
Worlding2016-07-22 15:22:39
virtual box
Worlding, 2016-07-22 15:22:39

VirtualBox, how to connect the main and guest OS to a common network without a router (DHCP server)?

The main machine is Windows 10 192.168.0.9
It is running VirtualBox, under which the guest OS Ubuntu Server 192.168.0.10 is installed.
Setting up her network card "Network Bridge".
Thus, in the home network, which is organized by the DHCP server on the home router, both machines see each other.
When I leave home, there is no router, and the machines stop seeing each other on the network. And it's clear: the main machine (windows 10) has the status of the network card "Network cable not connected", it does not see the network even if you manually assign IP to it.
Tell me how can I connect these machines to a network outside the home?
================================================= ==========
SOLUTION: changed "Network Bridge" to "Virtual Host Adapter". VirtualBox has its own DHCP server, which is available through File -> Settings -> Network -> Virtual Networks tab -> Configures DHCP and the static address of the main OS "VirtualBox Host-Only Network".
However, the VirtualBox DHCP server is buggy if you change the default subnet 192.168.56.0. Therefore, when leaving the house, you will have to change the settings of the network card. By the way, here they are:
cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 192.168.56.102
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
#gateway 192.
#dns-nameservers 8.8.8.8

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SergeySL, 2016-07-22
@Worlding

Maybe change the bridge to an internal network?

V
Vladimir, 2016-07-22
@vintello

coding4streetcred.com/blog/post/VirtualBox-Configu...

M
mureevms, 2016-07-22
@mureevms

Hands prescribe on both systems the same address that they receive via DHCP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question