# Revision history [back]

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

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?

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

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?