How to get internet access inside the VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I created a floating ip and associated to the running vm. But i can''t see that ip inside the VM with #ifconfig command
a)
$ ssh -i heat_key.priv root@10.0.0.2
Last login: Fri Apr 18 05:51:54 2014 from 10.0.0.1
[root@(none) ~]# ifconfig
eth0: flags=4163<
inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::f816:
ether fa:16:3e:b8:24:0d txqueuelen 1000 (Ethernet)
RX packets 7402 bytes 638182 (623.2 KiB)
RX errors 0 dropped 11 overruns 0 frame 0
TX packets 1039 bytes 161658 (157.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@(none) ~]#
b)
$ nova --os-tenant-name invisible_to_admin floating-ip-list
+----+-
| Ip | Server Id | Fixed Ip | Pool |
+----+-
+----+-
c)
$ nova --os-tenant-name invisible_to_admin floating-
+--------+
| name |
+--------+
| public |
| test |
+--------+
d)
$ nova --os-tenant-name invisible_to_admin floating-ip-create public
+------
| Ip | Server Id | Fixed Ip | Pool |
+------
| 172.24.4.225 | | - | public |
+------
e)
$ nova --os-tenant-name invisible_to_admin list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 3ca3c01b-
+------
f)
$nova --os-tenant-name invisible_to_admin floating-
g)
$ nova --os-tenant-name invisible_to_admin list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 3ca3c01b-
+------
h)
$ nova --os-tenant-name invisible_to_admin floating-ip-list
+------
| Ip | Server Id | Fixed Ip | Pool |
+------
| 172.24.4.225 | | 10.0.0.2 | public |
+------
i)
$ ssh -i heat_key.priv root@10.0.0.2
Last login: Fri Apr 18 05:51:54 2014 from 10.0.0.1
[root@(none) ~]# ifconfig
eth0: flags=4163<
inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::f816:
ether fa:16:3e:b8:24:0d txqueuelen 1000 (Ethernet)
RX packets 7402 bytes 638182 (623.2 KiB)
RX errors 0 dropped 11 overruns 0 frame 0
TX packets 1039 bytes 161658 (157.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@(none) ~]#
I am not using nova-network, devstack (havana), ubuntu 12.04