Question: I have new CentOS 7 box and I have a problem with the `ping` command.  

When I try to ping

```
ping google.com

```

I get time out and 100% packet loss,
but I can dig/nslookup google.com, and I can browse google.com

I tried to disable `firewalld` but the result is still the same, can't ping to google.com from my CentOS 7

Where is the problem? I thought before in the `firewalld`, but `firewalld` service is now disabled.
How i can fix this problem?

Answer: 
Since only root can send ICMP packets, ping from VM may fail if your supervisor is executed by non-root user.

As mentioned in [answer to this question](https://unix.stackexchange.com/questions/78953/qemu-how-to-ping-host-network), you can config `net.ipv4.ping_group_range` to allow the user running supervisor to send ICMP packets.
Being unable to ping google can be due to several reasons.

* One reason can be that your **Gateway** is not properly configured in */etc/sysconfig/network-scripts/ifcfg-interfacename*
* Another reason can be that you have not configured **DNS** properly in */etc/sysconfig/network-scripts/ifcfg-interfacename* file

Please check whether you have configured them correctly. 
And also disabling the Firewall is not a good option.