Wildfly 14 域 - 连接超时

Wildfly 14 domain - Connection timeout

情况: Windows 10 宿主机需要与Fedora 26虚拟机通信。 Windows 10 是我在域中的主机,fedora 是从机。 VirtualBox机器有2个适配器,一个是Bridged,另一个是Internal Network Adapter。

我主机的IPv4是:192.168.0.17 从机IP为:192.168.0.35

当 运行 域在 Windows 上时,访问 192.168.0.17:9990 我可以调出管理控制台。但是在 Fedora 上启动域时,它说连接超时,无法连接到 remote://192.168.0.17:9990 下图是我现在的情况。

我做了什么: 我已经禁用并停止了 fedora 上的 firewalld,iptables 不是 运行,因为我什至无法禁用它们。

我在 windows 上启用了防火墙规则,允许我在主机和虚拟机之间进行通信。

我试过从 Fedora ping 主机,一切正常。 我试过更改 <static-discovery/> 标签上的端口,但它不会 ping 9990,也不会 ping 9999.

我已经尝试通过主机上的 jboss-cli 连接到主机管理控制台,它正在运行。

我已经尝试在从机上通过 jboss-cli 连接到主机管理控制台,它正在工作。

我在 Windows 上的 host.xml 文件:

<management-interfaces>
        <http-interface security-realm="ManagementRealm">
            <http-upgrade enabled="true"/>
            <socket interface="management" port="${jboss.management.http.port:9990}"/>
        </http-interface>
    </management-interfaces>
<domain-controller>
    <local/>
</domain-controller>
<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:192.168.0.17}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:192.168.0.17}"/>
    </interface>
    <interface name="unsecured">
        <inet-address value="192.168.0.17"/>
    </interface>
</interfaces>

我在从机上的 host.xml 文件:

<domain-controller>
<remote security-realm="ManagementRealm">
  <discovery-options>
    <static-discovery name="master-native" protocol="remote"  host="192.168.0.17" port="9999" />
    <static-discovery name="master-https" protocol="https-remoting" host="192.168.0.17" port="9993" security-realm="ManagementRealm"/>
    <static-discovery name="master-http" protocol="http-remoting" host="192.168.0.17" port="9990" />
  </discovery-options>
    </remote>
</domain-controller>

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:10.211.55.2}"/>
    </interface>
    <interface name="public">
       <inet-address value="${jboss.bind.address:10.211.55.2}"/>
    </interface>
    <interface name="unsecured">       
       <inet-address value="10.211.55.2" />    
    </interface>
</interfaces>

我已经学习了这个教程:https://docs.jboss.org/author/display/WFLY10/Clustering+and+Domain+Setup+Walkthrough

下图是启动domain.sh时在Fedora上的输出,启动domain.bat时在windows上的输出

9990 端口用于 http-remoting 而不是 remote 协议(端口 9999),更改它并重试。

参见:Domain Configuration