You are not logged in.
Hi all,
I know there are tons of posts on this issue, but it's 2 days I'm not able to find a solution.
I have a host with arch x64 and a guest with centos6.5 x64
I need to be able to use ssh from host to guest (at least). I read that I needed a host-only adapter. I had a NAT already configured (which allowed me to connect the internet), then I added a new adapter hostonly vboxnet0 (it has been added after the centos installation...i don't know if it matters)
starting the guest machine, ifconfig command shows that eth1 (the hostonly adapt) is active with ipaddress: 192.168.56.101 BUT it is not pingable from the host. i enabled the eth0 (nat), guest is able to reach web, but again I'm not able to ping from host.
I disabled on the guest all services that could block anything: iptables, selinux.
I then tried setting the eth0 to bridged mode, but nothing changed.
this is the output of the guest ifconfig command:
[root@centos65vm ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:F5:CC:23
inet addr:192.168.16.200 Bcast:192.168.16.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef5:cc23/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:468 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:71501 (69.8 KiB) TX bytes:3602 (3.5 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:C6:E9:F3
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec6:e9f3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6200 (6.0 KiB) TX bytes:4098 (4.0 KiB)
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:16436 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3192 (3.1 KiB) TX bytes:3192 (3.1 KiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:5A:2E:06
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)The strange thing is that from virtual box main manager, if I edit properties of the hostonly adapter I can disable dhcp option, and set the ip address to 192.168.56.1 or 192.168.56.10 or whatever when restarting the host is always getting ip 101. very strange, no?
forcing the correct address with
ifconfig eth1 192.168.56.1 netmask 255.255.255.0 upip is correct but still not able to ping or ssh...
I don't really know what to do!
Thanks in advance
Offline