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 |
|---|---|
|
These commands need to be run as root only if the credentials used to interact with nova-api have been put under |
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 dnsmasqprocesses are running. If not, perform the following as root:
# killall dnsmasq # service nova-network restart
启用虚拟机的Ping和SSH功能

本文指导如何通过使用euca-authorize或novasecgroup-add-rule命令为虚拟机开启Ping和SSH接入权限,包括命令操作步骤及特殊情况处理。
![[Note]](https://i-blog.csdnimg.cn/blog_migrate/46e3e81dbd91dcf8da01a1f32a39a272.png)

被折叠的 条评论
为什么被折叠?



