简体   繁体   English

我的实例在Openstack中工作:连接到nova.clouds.ubuntu无法启动连接

[英]Openstack working from my instance: Connecting to nova.clouds.ubuntu Cannot initiate connection

I am new to Openstack, I've installed it using devstack. 我是Openstack的新手,已经使用devstack安装了它。 I launched an instance using ubuntu server cloud image with heat flavor. 我使用具有热度的ubuntu服务器云映像启动了一个实例。 I can ssh to the instance. 我可以SSH到实例。 The problem is when trying to do: 问题是在尝试执行以下操作时:

sudo apt-get update

sudo apt-get install openjdk-7-jdk

I have 我有

0% (connecting to nova.clouds.archive.ubuntu.com ip@) 0%(连接到nova.clouds.archive.ubuntu.com ip @)

It keeps changing the ip@ then error cannot initiate connection to nova connect(101: network unreachable) 它不断更改ip @,然后错误无法启动与nova connect的连接(101:网络不可达)

I am associating floating IP to my instance 我正在将浮动IP与我的实例相关联

Update 更新

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM