Ask Your Question
0

how to use config-drive to attach another device to instance without cloud-init

asked 2015-10-10 01:29:19 -0500

Kevin Ching gravatar image

updated 2015-10-10 01:30:10 -0500

I want to use 'config-drive' of 'nova boot' to add another cdrom for the instance. Then I can install some drivers during installing operating system.

Many instructions says, If an image does not have the cloud-init package installed, the image must be customized to run a script that mounts the config drive on boot, reads the data from the drive, and takes appropriate action such as adding the public key to an account.

There are 2 questions:

  1. How to use config-drive to add another cdrom with my image file?
  2. How to write that script if my image does not have the cloud-init?

Could anyone tell me how to achieve this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-13 10:55:49 -0500

prasad9920 gravatar image

1.How to use config-drive to add another cdrom with my image file? most of the cases people create images on their desktop with VMware player or Virtual box then they will upload that image to openstack because that is more easy and fast way. if you still want to create image on openstack you need to upload the both iso to cinder and attached both volumes before launching instance so it will get detected and start the installation.

2.How to write that script if my image does not have the cloud-init? use following link http://docs.openstack.org/image-guide/content/centos-image.html (http://docs.openstack.org/image-guide...) search for Write a script to fetch the public key (if no cloud-init)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-10-10 01:29:19 -0500

Seen: 489 times

Last updated: Oct 13 '15