Atom feed of this document
 

 Enabling Ping and SSH on VMs

Be sure you enable access to your VMs by using the euca-authorize or nova secgroup-add-rule command. Below, you will find the commands to allow ping and ssh to your VMs:

[Note]Note

These commands need to be run as root only if the credentials used to interact with nova-api have been put under /root/.bashrc. If the EC2 credentials have been put into another user's .bashrc file, then, it is necessary to run these commands as the user.

Using the nova command-line tool:

$ nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
$ nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
            

Using euca2ools:

$ euca-authorize -P icmp -t -1:-1 -s 0.0.0.0/0 default
$ euca-authorize -P tcp -p 22 -s 0.0.0.0/0 default
            

If you still cannot ping or SSH your instances after issuing the nova secgroup-add-rule commands, look at the number of dnsmasq processes that are running. If you have a running instance, check to see that TWO dnsmasq processes are running. If not, perform the following as root:

# killall dnsmasq
# service nova-network restart
           
Log a bug against this page


loading table of contents...