P
P
Pavel Zagrebelin2015-09-10 04:00:56
virtual box
Pavel Zagrebelin, 2015-09-10 04:00:56

Virtualbox over windows-10, how to run "Virtual Host Adapter"?

There is Windows 10 Home, Virtualbox in it, Ubuntu inside it.
Ubuntu has a network adapter configured as a "virtual host adapter" and attached to the "virtualbox host-only network adapter #4" interface (the second adapter is nat, there are no problems with it).
In ubuntu-guest the address is configured 192.168.99.100/24, in host-windows 192.168.99.1/24:

C:\Users\pavel>ipconfig /renew

Настройка протокола IP для Windows


Адаптер Ethernet VirtualBox Host-Only Network #4:

   DNS-суффикс подключения . . . . . :
   IPv4-адрес. . . . . . . . . . . . : 192.168.99.1
   Маска подсети . . . . . . . . . . : 255.255.255.0
   Основной шлюз. . . . . . . . . :
[email protected]:~# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 08:00:27:5f:77:4d  
          inet addr:192.168.99.100  Bcast:192.168.99.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe5f:774d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:11994 (11.9 KB)

Meanwhile, Windows sends pings to 192.168.99.100 not to the virtual adapter, but to the default gateway.
C:\Users\pavel>tracert -d 192.168.99.100

Трассировка маршрута к 192.168.99.100 с максимальным числом прыжков 30

  1    <1 мс    <1 мс     1 ms  10.178.227.129
.. (и так далее)

Although the route for 192.168.99.0/24 is registered:
C:\Users\pavel>> route print -4
...
IPv4 таблица маршрута
===========================================================================
Активные маршруты:
Сетевой адрес           Маска сети      Адрес шлюза       Интерфейс  Метрика
          0.0.0.0          0.0.0.0   10.178.227.129   10.178.227.242     20
   10.178.227.128  255.255.255.128         On-link    10.178.227.242    276
   10.178.227.242  255.255.255.255         On-link    10.178.227.242    276
   10.178.227.255  255.255.255.255         On-link    10.178.227.242    276
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
     192.168.99.0    255.255.255.0         On-link      192.168.99.1    266
     192.168.99.1  255.255.255.255         On-link      192.168.99.1    266
   192.168.99.255  255.255.255.255         On-link      192.168.99.1    266
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link    10.178.227.242    276
        224.0.0.0        240.0.0.0         On-link      192.168.99.1    266
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link    10.178.227.242    276
  255.255.255.255  255.255.255.255         On-link      192.168.99.1    266
===========================================================================
Постоянные маршруты:
  Отсутствует

arp is empty:
C:\Users\pavel>arp -a | find "192.168"
Интерфейс: 192.168.99.1 --- 0x22
  192.168.99.255        ff-ff-ff-ff-ff-ff     статический

[email protected]:~# arp -a
? (10.0.2.2) at 52:54:00:12:35:02 [ether] on eth0
[email protected]:~# arp

disabling / enabling / killing the interface on the host does not help.
What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-10
@Yestestvenno

You need to figure it out in order, in ubuntu you set the dynamics and output it to the local network (see the virtualbox settings) and ping the LAN gateway if everything is ok, then the problem is in the ubunta roof settings, if not, then in the hot machine + VM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question