Ask Your Question
0

is there way to boot up a instance with 2 QCOW2 images which show up as two disk drives in the guest OS??

asked 2014-03-06 19:06:56 -0500

anonymous user

Anonymous

updated 2014-03-06 19:07:54 -0500

while trying to spawn multiple instances i need to pass per instance data to my instance during boot up..i tried config drive option..But it seems the config drive is in iso9660 format. But for my application i require a second drive which is mounted in qcow2 format instead of the raw format used in config drive..

im using havana version

edit retag flag offensive close merge delete

Comments

What is the big picture on what you are trying to do ? There maybe a better way ... using cloud-init to pass in data, or using something that can orchestrate the data into the instance on boot. You can make a volume from an image, and mount them to an instance. You would need cloud ready VMs.

Bill@Metacloud gravatar imageBill@Metacloud ( 2014-03-06 19:35:26 -0500 )edit

@Anonymous: I need this feature, too, but haven't found a solution yet. Seems just not possible. @Bill@Metacloud: I think it is not always about empty operating system installations. Maybe we just want one Image containing on big or many applications but not start a partitioning war to keep the data on separate drives. Some thing cannot even be done being cloud aware or cloud-init is not there for the operating system.

Mathias Ewald gravatar imageMathias Ewald ( 2014-03-07 01:12:05 -0500 )edit

Bill@Metacloud For accessing the data using cloudinit the guest OS needs to acquire an IP. i need to get some instance specific data before this stage...

soundar gravatar imagesoundar ( 2014-03-07 10:19:15 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-03-07 02:27:23 -0500

fetahi gravatar image

Have you tried to put a second image as a volume using cinder?

edit flag offensive delete link more
0

answered 2014-03-07 09:55:37 -0500

Adrian Smith gravatar image

Have you looked into the block-device-mapping parameter?

Using this parameter you can attach a second volume to a VM before it boots. The source for this volume can either be an existing volume or a volume snapshot. In the case of a volume snapshot the snapshot is cloned so each VM gets its own volume.

I just asked a question on here about this a few minutes ago as the performance on LVM with large volumes is poor.

edit flag offensive delete link more

Comments

i haven't tried this parameter...i will try that

soundar gravatar imagesoundar ( 2014-03-07 10:20:01 -0500 )edit

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

Stats

Asked: 2014-03-06 19:06:56 -0500

Seen: 890 times

Last updated: Mar 07 '14