我的实例在Openstack中工作:连接到nova.clouds.ubuntu无法启动连接 [英] Openstack working from my instance: Connecting to nova.clouds.ubuntu Cannot initiate connection
本文介绍了我的实例在Openstack中工作:连接到nova.clouds.ubuntu无法启动连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Openstack的新手,我已经使用devstack安装了它.我使用具有热度的ubuntu服务器云映像启动了一个实例.我可以ssh到实例.问题是在尝试执行操作时:
I am new to Openstack, I've installed it using devstack. I launched an instance using ubuntu server cloud image with heat flavor. I can ssh to the instance. The problem is when trying to do:
sudo apt-get update
sudo apt-get install openjdk-7-jdk
我有
0%(连接到nova.clouds.archive.ubuntu.com ip @)
0% (connecting to nova.clouds.archive.ubuntu.com ip@)
它不断更改ip @,然后错误无法启动与nova connect的连接(101:网络无法访问)
It keeps changing the ip@ then error cannot initiate connection to nova connect(101: network unreachable)
我正在将浮动IP关联到我的实例
I am associating floating IP to my instance
更新
ubuntu@selftrusty:~$ ifconfig
eth0 Link encap:Ethernet HWaddr fa:16:3e:45:31:47
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fe45:3147/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5358 errors:0 dropped:0 overruns:0 frame:0
TX packets:5994 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:383312 (383.3 KB) TX bytes:979324 (979.3 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
推荐答案
我必须在主机中执行sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
这篇关于我的实例在Openstack中工作:连接到nova.clouds.ubuntu无法启动连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文