centos 下openstack的实例文件注入(nbd)

openstack在创建实例的时候,可以对实例进行文件注入,注入的内容为:

key  ssh公钥

network 网络参数,目前仅支持debian/ ubuntu 的 /etc/network/interfaces格式。其余的系统,请使用 dhcp

admin_password  注入超级用户 root 的密码

metadata 注入元数据meta.js

具体可以参见:nova/virt/disk/api.py

 

注入的时候,有几种方式,包括loop, guestfs, nbd, mount等,其中 mount 不安全。缺省使用:

img_handlers=”loop,nbd,guestfs”

对于qcow2 格式的镜像,必须需要使用guestfs或  nbd配合 qemu-nbd注入。但是 guestfs 的速度较慢。遗憾的是 CentOS/RedHat 6.2 中,内核没有编译nbd模块, qemu也没有编译 qemu-nbd程序。

 

解决办法:

1、手工编译 nbd 和 qemu-nbd

http://www.cyberciti.biz/faq/rhel5-installing-kernel-source-code/

http://jamyy.dyndns.org/blog/2012/02/3582.html

2、向RedHat递交bug 报告

此条目发表在OpenStack分类目录,贴了, 标签。将固定链接加入收藏夹。

centos 下openstack的实例文件注入(nbd)》有 50 条评论

  1. 陈沙克说:

    现在kvm,支持修改root的密码吗?我看feature list,还是不支持?

  2. refactor说:

    支持的。需要设置一个选项:

    –libvirt_inject_password default: ‘false’

    When set, libvirt will will inject the admin password into instances before startup. An agent is not required in the instance. The admin password is specified as part of the server create API call. If no password is specified, then a randomly generated password is used.

  3. Pingback引用通告: Espiar whatsapp

  4. Pingback引用通告: high risk merchant account pharmacy

  5. Pingback引用通告: avença mensal informatica

  6. Pingback引用通告: Buy HempWorx

  7. Pingback引用通告: Damenmode kurzgroesse kaufen

  8. Pingback引用通告: high risk travel merchant account

  9. Pingback引用通告: killer sales letter

  10. Pingback引用通告: science fair projects

  11. Pingback引用通告: ¢

  12. Pingback引用通告: silicon carbide

  13. Pingback引用通告: mechanistic PK studies

  14. Pingback引用通告: กู้เงิน แคนดง

  15. Pingback引用通告: à§Ô¹¡Ùé

  16. Pingback引用通告: clean dryer vent

  17. Pingback引用通告: Caco2 studies in India

  18. Pingback引用通告: Caco 2 assay

  19. Pingback引用通告: seo wordpress

  20. Pingback引用通告: In Vivo pharmacology

  21. Pingback引用通告: contract research organizations

  22. Pingback引用通告: child development essay topics

  23. Pingback引用通告: noosa electrician

  24. Pingback引用通告: buffing pad

  25. Pingback引用通告: bismuth oxide

  26. Pingback引用通告: credit card processor for cbd products

  27. Pingback引用通告: GVK BIO

  28. Pingback引用通告: Houston Uterine Fibroid Embolization Doctor

  29. Pingback引用通告: cheap seo

  30. Pingback引用通告: sen kaşındın amcık

  31. Pingback引用通告: Play escort

  32. Pingback引用通告: Need a Car Accident Lawyer In Houston

  33. Pingback引用通告: โรงงานครีม

  34. Pingback引用通告: helpful site

  35. Pingback引用通告: apex legends

  36. Pingback引用通告: hot rods

  37. Pingback引用通告: web reputation monitoring services

  38. Pingback引用通告: Manicure Laval

  39. Pingback引用通告: moss removal London

  40. Pingback引用通告: ts escorts

  41. Pingback引用通告: technology

  42. Pingback引用通告: seo service

  43. Pingback引用通告: where search cheap revia without prescription

  44. Pingback引用通告: https://placervillehomes.com

  45. Pingback引用通告: Custom CORNHOLE BOARD SET - Any Design www.cornholestop.com

  46. Pingback引用通告: Bluetooth Cornhole Lights www.cornholestop.com/lights

  47. Pingback引用通告: Doghouse Dave

  48. Pingback引用通告: How to Achieve Your Most Ambitious Goals

  49. Pingback引用通告: Komatsu aftermarket parts

  50. Pingback引用通告: university of miami cornhole boards

refactor进行回复 取消回复

电子邮件地址不会被公开。 必填项已用*标注