openstack第一个程序
我已经设置了 openstack 开发环境。现在我想编写 hello world 程序(例如,我想在 test 文件中编写一个 hello world 程序,当我运行 nova-manage 测试时,它应该打印 Hello World)。我在网上查找编程指南,发现的只是安装和管理手册。我什至浏览了问题 openstack Hello World ,但没有帮助。我需要一些帮助...
提前致谢..
I have setup my openstack dev environment. Now i want to write hello world program (for example i want to write a hello world program in a file say test and when i run nova-manage test it should print Hello World). i looked into web for programming guide, all i found was installation and admin manual. I even went through question openstack Hello World , wasn't helpful. I could use some help...
thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,我认为 openstack 开发环境是指 devstack (devstack.org) 之类的东西。
通过 openstack,我假设(因为您引用了 nova-manage )您正在使用 openstack 的 nova 组件。
nova 是一个云计算控制器。它有效地充当管理虚拟机的 API。通常在 Linux 中,这意味着启用了 kvm 或 xen 管理程序的虚拟机。但它并不限于此。
默认情况下,devstack 使用 kvm 作为其选择的虚拟机管理程序。
一旦您将图像加载到 Glance 图像存储中,Openstack 将允许您启动“实例”。这些图像的功能类似于虚拟机的模板。当您基于现有映像启动实例时,您将在 openstack 项目中收到正在运行的虚拟机。如果您使用的映像是 Linux 映像,您可以通过 ssh 连接到该实例并像任何其他 Linux 机器一样使用它。
Ubuntu云服务有一个与glance兼容的可用镜像列表,可以免费下载。
所以……在解释的这一点上,我必须假设您认为 openstack 类似于云铸造厂。它不是。 Nova提供IaaS解决方案。基础设施即服务。不是像 Cloud Foundry 这样的 PaaS / SaaS。
这有道理吗?
So by openstack dev environment I assume you mean something like devstack ( devstack.org ).
And by openstack I assume ( since you referenced nova-manage ) you are using the nova component of openstack.
nova is a cloud compute controller. it effectively acts as an API for managing virtual machines. Usually in linux this means kvm or xen hypervisor enabled virtual machines. But it is not constrained to this.
By default devstack uses kvm as it's hypervisor of choice.
Openstack will allow you to launch 'instances' once you have loaded images into the glance imagestore. These images function like templates for virtual machines. When you launch an instance based off an existing image you will receive a running virtual machine within your project in openstack. You can ssh to that instance and use it just like any other linux box if the image you are using is a linux image.
Ubuntu cloud services have a list of available images that are compatible with glance and can be freely downloaded.
So... at this point in the explanation I have to assume you think that openstack is something like cloud foundry. It is not. Nova provides IaaS solutions. Infrastructure as a Service. Not PaaS / SaaS as something like cloud foundry would.
Does this make sense?