[Openstack] [Nova] How to attach an ISO image in Glance to running instance

Zhangleiqiang (Trump) zhangleiqiang at huawei.com
Fri Apr 25 06:32:46 UTC 2014


Thanks for your reply and advice.

Create a volume from glance image or through “dd” and then attach to Instance do work. However, if we have not persistent-storage (Cinder) or cannot create volume because quota limit, there will no other method to do so?


----------
zhangleiqiang (Trump)

Best Regards

From: Martinx - ジェームズ [mailto:thiagocmartinsc at gmail.com]
Sent: Friday, April 25, 2014 7:17 AM
To: Zhangleiqiang (Trump)
Cc: openstack at lists.openstack.org; Luohao (brian)
Subject: Re: [Openstack] [Nova] How to attach an ISO image in Glance to running instance

Hi!

You can attach a Cinder volume to a running instance...

To make a Cinder volume looks like a ISO, I think you can do the following step at your "cinder-volume" node:

dd if=/my/iso/file.iso of=/dev/cinder-volumes/LOGICAL_VOLUME_OF_CINDER

Then, attach it to your instance...

I'm not sure if it will work but, it worth trying it...

Please, keep in mind that the above "dd" command will wipe out all data at your cinder-volume logical volume "LOGICAL_VOLUME_OF_CINDER"!

Also, you can format (mkfs.ext4) your cinder-volume locally at its node, mount it, copy the ISO into it, umount and attach it to your instance...

Best,
Thiago

On 23 April 2014 22:43, Zhangleiqiang (Trump) <zhangleiqiang at huawei.com<mailto:zhangleiqiang at huawei.com>> wrote:
HI, all:

        I have an ISO image in Glance which contains some data, and I want to copy data to running instance. I find maybe the only way is first creating a volume from this image and then attach volume to the instance.

        I think it 's more or less not convenient. Can ISO image in Glance be attach to running instance directly?


----------
zhangleiqiang (Trump)

Best Regards

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140425/d6d9dd8c/attachment.html>


More information about the Openstack mailing list