2 Answers
Ping requires root access which the default user on cloud shell does not have. Hence the command is disallowed.
Once ping was installed into the GCP Cloud Shell non-ephemeral version, I was able to PING the IP address of ‘myhappyvm’ but not the "NAME" as listed in the video.
How exactly are you trying to ping the VM?
In this session the instructor is using ping cmd to how we can access the VMs thru external IP only and not by VM name or ts internal IP address
But when I try to ping the VM which i created and ping to its external IP address just as the instructor i am getting error "-bash: ping: command not found"
Can someone explain why i am getting this error even when i followed evry steps with the instructor
You can install ping on the cloud shell instance with: "sudo apt update" and then "sudo apt install iputils-ping"
thanks david i was able to install it
Hey David. I have one more doubt. Once we do the sudo update and install ping. Is this change persistant across sessions. Like if i log off and log in next time, will this change still be valid ?