ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

My virtual machine can't ping itself

asked 2018-09-25 02:04:35 -0500

kevinrossi gravatar image


I'm using Ubuntu indigo 14.04 with Oracle VirtualBox 5.2.18 and I have a problem with my Virtual machine which can't ping itself but can ping all the network. Also, the other computers can ping each other but can't ping the virtual machine. My network is composed by : 2 virtual machines (chloe and another one) on the main station, the main station, a first router, the second router in client mode, an Advantech computer on a robot and Ubuntu on this computer (efim).

So, from chloe, I can ping all of this stuff but not chloe itself. I had the issue : "Destination Host Unreachable" while I'm just pinging chloe itself.

In the settings, I choose NAT for the Virtual Machine.

Moreover, I tried a


and I have the following warning :

  ROS_HOSTNAME may be incorrect: ROS_HOSTNAME [chloe] resolves to [], which does not appear to be a local IP address ['', '', '', ''].

What I did after this is : for main station

    export ROS_HOSTNAME=chloe
    export ROS_MASTER_URI=http://chloe:11311

for advantech

    export ROS_HOSTNAME=efim
    export ROS_MASTER_URI=http://chloe:11311

But after I have an error saying :

  ROS_MASTER_URI is not set for this machine

Anyone can help me please ?


edit retag flag offensive close merge delete


So ping in a terminal doesn't work?

If so, this is not really a ROS question I'm afraid.

If this is a ROS question, then please provide more details on your network setup. We'll need full IP/netmask and network topology (ie: what is connected to what).

A diagram may help.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-25 02:57:20 -0500 )edit

Yes, ping doesn't work in a terminal.

I have one diagram but I'm new and I can't add picture.

kevinrossi gravatar image kevinrossi  ( 2018-09-25 03:00:59 -0500 )edit

re: attaching images: I've just given you sufficient karma for that.

re: ping doesn't work: that would point to an issue with your network configuration. Are you sure that is the correct IP?

gvdhoorn gravatar image gvdhoorn  ( 2018-09-25 05:54:33 -0500 )edit

may you post output of "ifconfig"

Boregard gravatar image Boregard  ( 2018-09-25 12:17:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-26 02:29:23 -0500

kevinrossi gravatar image

It's okay now, the IP was wrong so I changed it in the settings and now it's working. Thank you !

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-09-25 02:04:35 -0500

Seen: 1,279 times

Last updated: Sep 25 '18