Ask Your Question
0

虚拟机单网卡安装openstack无法ping 虚拟机的浮动ip

asked 2013-12-15 06:14:35 -0500

microchu gravatar image

笔记本,在vmware虚拟机上安装ubuntu12.04+ openstack havana版本. 虚拟机桥接模式接入笔记本物理网卡。 外网地址段192.168.2.0, openstack创建的虚拟机地址段20.20.20.0, 笔记本IP192.168.2.100,ubuntu主机ip 192.168.2.107,虚拟机cirros 浮动IP192.168.2.23 使用namespace方式可以ping通创建的虚拟机: root@controller:~# ip netns exec qdhcp-80804505-2368-4cd1-bed1-6c653ebe8903 ping 192.168.2.23 PING 192.168.2.23 (192.168.2.23) 56(84) bytes of data. 64 bytes from 192.168.2.23: icmp_req=1 ttl=63 time=3.45 ms 64 bytes from 192.168.2.23: icmp_req=2 ttl=63 time=0.579 ms 64 bytes from 192.168.2.23: icmp_req=3 ttl=63 time=0.734 ms 去掉namespace方式则不能ping通创建的虚拟机 root@controller:~# ping 192.168.2.23 PING 192.168.2.23 (192.168.2.23) 56(84) bytes of data. From 192.168.2.107 icmp_seq=1 Destination Host Unreachable From 192.168.2.107 icmp_seq=2 Destination Host Unreachable From 192.168.2.107 icmp_seq=3 Destination Host Unreachable

ovs_neutron_plugin.ini里的租户网络类型: tenant_network_type = local

root@controller:/etc/neutron/plugins/openvswitch# ovs-vsctl show ba560c94-7510-40d8-91a5-06ecc7ebd972 Bridge br-int Port "qvo15a1a496-8e" tag: 1 Interface "qvo15a1a496-8e" Port "qvo5a00abb3-3f" tag: 1 Interface "qvo5a00abb3-3f" Port "qr-8255bd87-03" tag: 1 Interface "qr-8255bd87-03" type: internal Port "tapc04180c4-a7" tag: 2 Interface "tapc04180c4-a7" type: internal Port br-int Interface br-int type: internal Port "tapf1b9f597-8f" tag: 1 Interface "tapf1b9f597-8f" type: internal Bridge br-ex Port "qg-0ec34f29-6e" Interface "qg-0ec34f29-6e" type: internal Port br-ex Interface br-ex type: internal Port "eth0" Interface "eth0" ovs_version: "1.10.2"

root@controller:~# nova list +--------------------------------------+--------+--------+------------+-------------+-----------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+--------+--------+------------+-------------+-----------------------------+ | 4ecaa633-9e62-407f-bc1d-42f7b5b4c72a | cirros | ACTIVE | None | Running | 鍐呯綉=20.20.20.2, 192.168.2.23 | +--------------------------------------+--------+--------+------------+-------------+-----------------------------+

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2013-12-16 02:14:37 -0500

gongysh gravatar image

have u enabled icmp in security group?

edit flag offensive delete link more
0

answered 2013-12-20 02:59:35 -0500

Maybe you could check configuration in l3-agent.ini. Fix "router_id" and "gateway_external_network_id".

edit flag offensive delete link more
0

answered 2013-12-16 07:23:01 -0500

linb gravatar image

If your VM can ping outside world, It would be probably the Security Group problem. You can refer to https://www.dropbox.com/s/asl3mha5kt5ujfx/Security%20Group%20with%20all%20pass%20through.png (https://www.dropbox.com/s/asl3mha5kt5...) to edit your security group rules.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-15 06:14:35 -0500

Seen: 3,671 times

Last updated: Dec 20 '13