VirtualBox

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#14521 closed defect (invalid)

Remote port only accessible with public network adapter, and not a host-only network adapter (Windows 10).

Reported by: theonlylawislove Owned by:
Component: network/hostif Version: VirtualBox 5.0.2
Keywords: Cc:
Guest type: Linux Host type: Windows

Description (last modified by Valery Ushakov)

Before I begin, I have created a simple project that reproduces this issue. It uses Vagrant (1.7.4) to dynamically setup the box for each network adapter.

https://bitbucket.org/theonlylawislove/cassandrahostonlyadapter/commits/tag/network-host-only

https://bitbucket.org/theonlylawislove/cassandrahostonlyadapter/commits/tag/network-public

Check out each tag, then run "vagrant up". This will setup the VM. Then run CassandraTest.exe on the host machine to test remote access.

I also added the VM logs for using both the public network adapter, and the host-only adapter.

https://bitbucket.org/theonlylawislove/cassandrahostonlyadapter/src/0bf907ffcfa6258e9f3c42687d37681d607c725a/logs/?at=master

I realize that the issue is with a 3rd party application, Apache Cassandra. However, if I remember correctly, the host-only adapter worked correctly on Windows 8. I'm sure that the problem is with VirtualBox on the new Windows 10.

Also, these logs were created with the latest test Windows VirtualBox version, 5.0.3-102322.

Any guidance on this issue would be greatly appreciated. If anything, maybe some guidance on some questions I could post to Apache Cassandra forums?

I would like to add that I have successfully used other applications with host-only adapter on Windows 10, such as Redis and Postgres. There is something unique about Cassandra, and I am honestly not smart enough to figure it out. Something is definitely broken though :)

Change History (10)

comment:1 by theonlylawislove, 9 years ago

I would also like to add that for each of the two tests, I can ssh in, and communicate (using cqlsh) with Cassandra successfully. The issue is the remote connections.

comment:2 by theonlylawislove, 9 years ago

I have opened a ticket with Apache [here](https://issues.apache.org/jira/browse/CASSANDRA-10227) for your reference.

comment:3 by theonlylawislove, 9 years ago

I just cloned the repo and ran the "network-host-only" on Windows 8.1 and it works. It is something with Windows 10.

comment:4 by Valery Ushakov, 9 years ago

Component: othernetwork/hostif
Description: modified (diff)

comment:5 by Valery Ushakov, 9 years ago

Please, provide self-contained bug report. That would include the virtual machine .vbox config file, the VirtualBox.xml config file, network configuration of the host and the guest, and the ports involved.

comment:6 by theonlylawislove, 9 years ago

I am able to connect to the port if I use "simpleproxy" on the guest machine. "simpleproxy -L :9043 -R 127.0.0.1:9042" Then, from the host, making a remove connection to "ip:9043", it works! I will be using this for development at least. I really hope we can figure this out though.

vushakov, I am getting you the information you request now. Standy by!

comment:7 by theonlylawislove, 9 years ago

vushakov, here are the files you requested.

https://bitbucket.org/theonlylawislove/cassandrahostonlyadapter/commits/69ace9881a1bc6eef1a296d750089627318e3238?at=master

I don't have any firewalls enabled on either the host or guest. I am communicating from the host to 192.168.10.200:9042. 9042 is the port I cannot communicate with.

Here is a netstat of my linux guest.

vagrant@cassandratest:~$ netstat -ntlp
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:43647         0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:7199          0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      -
tcp        0      0 192.168.10.200:9042     0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:55667           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp        0      0 192.168.10.200:7000     0.0.0.0:*               LISTEN      -
tcp6       0      0 :::111                  :::*                    LISTEN      -
tcp6       0      0 :::57108                :::*                    LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN

ifconfig from my linux guest.

vagrant@cassandratest:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:78:e9:f6
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe78:e9f6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:227301 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93964 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:205895144 (205.8 MB)  TX bytes:5893215 (5.8 MB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:ce:80:f1
          inet addr:192.168.10.200  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fece:80f1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1071 (1.0 KB)  TX bytes:648 (648.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:97 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:69341 (69.3 KB)  TX bytes:69341 (69.3 KB)

Here is the ipconfig of my Windows (10) host.

D:\Git\CassandraHostOnlyAdapter>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : PAUL-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) 82579V Gigabit Network Connection
   Physical Address. . . . . . . . . : 54-04-A6-32-CB-F7
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::9c6d:d467:b04e:7ab0%2(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.2.122(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Saturday, August 29, 2015 9:31:04 AM
   Lease Expires . . . . . . . . . . : Monday, August 31, 2015 10:30:34 PM
   Default Gateway . . . . . . . . . : 192.168.2.1
   DHCP Server . . . . . . . . . . . : 192.168.2.1
   DHCPv6 IAID . . . . . . . . . . . : 39060646
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   DNS Servers . . . . . . . . . . . : 192.168.2.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet 2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-00
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::b0da:b8cc:e6d:231e%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.10.200(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 201981991
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network #2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #2
   Physical Address. . . . . . . . . : 0A-00-27-00-00-00
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::7cc0:f2db:53a9:183d%14(Preferred)
   Autoconfiguration IPv4 Address. . : 169.254.24.61(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 369754151
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet 3:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #3
   Physical Address. . . . . . . . . : 0A-00-27-00-00-00
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::15e1:c344:65bf:a670%8(Preferred)
   Autoconfiguration IPv4 Address. . : 169.254.166.112(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 453640231
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network #4:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #4
   Physical Address. . . . . . . . . : 0A-00-27-00-00-00
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::35cb:b675:bd17:66db%16(Preferred)
   IPv4 Address. . . . . . . . . . . : 172.28.128.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 537526311
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network #5:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #5
   Physical Address. . . . . . . . . : 0A-00-27-00-00-00
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::f1b9:a4b4:cf08:4f6c%43(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.10.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 722075687
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{1F7DBA9E-7502-420F-B030-BC268F4A61DB}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Teredo Tunneling Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fd:2052:10bf:9f0c:88f(Preferred)
   Link-local IPv6 Address . . . . . : fe80::2052:10bf:9f0c:88f%5(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 167772160
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-4A-E4-FF-54-04-A6-32-CB-F7
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{B3A78D97-4FF3-4D6C-B768-16C8A505BC78}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{D3277DD3-DE51-422D-9039-D3FFDA0A99A1}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{800F266C-4680-4E05-9F6E-5377AF2D625A}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{2501BD43-B619-4400-B18F-EA8A77996819}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #5
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{BDB427A8-172D-4403-9632-A05C05D412D4}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #6
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

comment:8 by Valery Ushakov, 9 years ago

Resolution: invalid
Status: newclosed

You have 192.168.10.200 configured as an address for both host and guest.

comment:9 by theonlylawislove, 9 years ago

vushakov, what do you mean? My host machine has the "VirtualBox Host-Only Ethernet Adapter" set to 192.168.10.200?

I did not set that. Is it something that maybe vagrant is doing when settings up the virtualbox? What should it be? If I can be clear on this, I can help send this issue to vagrant.

in reply to:  9 comment:10 by Valery Ushakov, 9 years ago

Replying to theonlylawislove:

vushakov, what do you mean? My host machine has the "VirtualBox Host-Only Ethernet Adapter" set to 192.168.10.200?

Yes, one of your host-only adapters, Ethernet adapter Ethernet 2, has that address. Note that it's not the adapter that your VM uses, but it doesn't matter; its presence is sufficient.

I did not set that. Is it something that maybe vagrant is doing when settings up the virtualbox? What should it be? If I can be clear on this, I can help send this issue to vagrant.

Sorry, but we can't really help you with that. This looks like a configuration error on your part. May be you created that host-only interface for some earlier VM and forgot about it? The fact that it works under Windows 8 actually means that it works on a different machine where there's no adapter with conflicting address.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use