简体   繁体   English

如何生成OpenStack兼容图像?

[英]How to generate OpenStack compatible images?

i have a two node OpenStack Diablo Cluster up and running. 我有一个双节点OpenStack暗黑破坏神群集启动并运行。 I tried to get the small tty-Linux Image running and it worked without problems. 我试图让小的tty-L​​inux Image运行,它没有问题。

In my naivity i now tried to get my own OpenSuse images working wich i created with OpenSuse Studio. 在我的天真中,我现在尝试使用OpenSuse Studio创建自己的OpenSuse图像。 I have tried .vmdk and .raw running with: 我试过.vmdk和.raw运行:

glance add name="My-raw" is_public=true container_format=bare disk_format=raw < /cloud/images/My_Appliance.raw glance add name =“My-raw”is_public = true container_format = bare disk_format = raw </cloud/images/My_Appliance.raw

launch per dashboard or euca-run-instances ... 按仪表板或euca-run-instances启动......

I use qemu as libvirt_type. 我使用qemu作为libvirt_type。 The instances will be shown as running but i cannot ping them nor is there a console output, so guess they are not started correctly. 实例将显示为正在运行,但我无法ping它们,也没有控制台输出,所以猜测它们没有正确启动。 /var/log/nova/nova-compute.log and /var/log/libvirt/qemu/instance-xx.log show no errors. /var/log/nova/nova-compute.log和/var/log/libvirt/qemu/instance-xx.log显示没有错误。

Is it even possible to run those images without kernel and ramdisk? 甚至可以在没有内核和ramdisk的情况下运行这些映像吗? If not, how do i get/generate these? 如果没有,我如何获得/生成这些?

With libvirt, you should be able to run raw or qcow2 images, you don't need a kernel or ramdisk. 使用libvirt,您应该能够运行raw或qcow2映像,不需要内核或ramdisk。 Try testing with one of the QCOW2 Ubuntu cloud images (eg, oneiric-server-cloudimg-amd64-disk1.img) 尝试使用其中一个QCOW2 Ubuntu云映像进行测试 (例如,oneiric-server-cloudimg-amd64-disk1.img)

See also the Image Management chapter in the OpenStack Compute admin guide. 另请参阅OpenStack Compute管理指南中的“ 图像管理”一章 This chapter has information on where to get images, as well as how to create them. 本章提供了有关获取图像的位置以及如何创建图像的信息。

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

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