声明:
本博客欢迎转发,但请保留原作者信息!
新浪微博:@孔令贤HW;
博客地址:http://blog.csdn.net/lynn_kong
内容系本人学习、研究和总结,如有雷同,实属荣幸!
上一篇讲了一个虚拟机如何通过router的namespace-metadata-proxy访问169.254.169.254获取一些自定义信息。其实在Quantum中,还有dhcp的namespace-metadata-proxy可以提供访问。在使用前,需要在dhcp agent的配置文件中增加一个配置:
# The DHCP server can assist with providing metadata support on isolated
# networks. Setting this value to True will cause the DHCP server to append
# specific host routes to the DHCP request. The metadata service will only
# be activated when the subnet gateway_ip is None. The guest instance must
# be configured to request host routes via DHCP (Option 121).
enable_isolated_metadata = True
然

本文探讨了在OpenStack中,虚拟机如何通过Quantum的dhcp namespace-metadata-proxy获取metadata信息。介绍了配置dhcp agent以启用该功能,并解释了静态路由如何引导请求到network node上的metadata nameserver proxy,以及代理如何处理这些请求,传递instance-id和network-id,最终由quantum-metadata-agent处理。
最低0.47元/天 解锁文章
1万+

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



