Re: Problème with image from snapshot
Franck VEDEL
franck.vedel at univ-grenoble-alpes.fr
Wed Oct 13 19:01:30 UTC 2021
Hi Dominic, and thanks a lot for your help.
> I only see one issue with what you said, or perhaps didn't say. You are aware that it is a very good idea to sysprep --generalize a Windows instance, before making an image from it, yes?
Yes yes, i did that, sys prep — generalize
> Regarding OpenStack, could you tell us what glance and cinder drivers you use?
i’m not sure… for cinder: LVM on a iscsi bay
> Have you done other volume to image before?
No, and it’s a good idea to test with a cirros instance. I will try tomorrow.
> Have you verified that the image finishes creating before trying to create a VM from it?
Yes
> I'm not sure that snapshotting before creating an image is necessary. It's a good idea (maybe even necessary) to have the instance off when converting a volume to an image, thus, depending on your storage technology, the image might just be a snapshot.
I just tried with an instance off… same problem, sam error message (Block Device Mapping is Invalid)
> I've done volume to image before, but it's been a little while. I plan to do this with a Linux instance today, so I'll see if I can do it while the instance is running.
Thanks a lot !! Really !!
Franck VEDEL
Dép. Réseaux Informatiques & Télécoms
IUT1 - Univ GRENOBLE Alpes
0476824462
Stages, Alternance, Emploi.
http://www.rtgrenoble.fr <http://www.rtgrenoble.fr/>
> Le 13 oct. 2021 à 17:16, <DHilsbos at performair.com> <DHilsbos at performair.com> a écrit :
>
> Franck;
>
> I only see one issue with what you said, or perhaps didn't say. You are aware that it is a very good idea to sysprep --generalize a Windows instance, before making an image from it, yes?
>
> Regarding OpenStack, could you tell us what glance and cinder drivers you use?
>
> Have you done other volume to image before?
>
> Have you verified that the image finishes creating before trying to create a VM from it?
>
> I'm not sure that snapshotting before creating an image is necessary. It's a good idea (maybe even necessary) to have the instance off when converting a volume to an image, thus, depending on your storage technology, the image might just be a snapshot.
>
> I've done volume to image before, but it's been a little while. I plan to do this with a Linux instance today, so I'll see if I can do it while the instance is running.
>
> Thank you,
>
> Dominic L. Hilsbos, MBA
> Vice President – Information Technology
> Perform Air International Inc.
> DHilsbos at PerformAir.com
> www.PerformAir.com
>
> From: Franck VEDEL [mailto:franck.vedel at univ-grenoble-alpes.fr]
> Sent: Wednesday, October 13, 2021 12:58 AM
> To: openstack-discuss
> Subject: Problème with image from snapshot
>
> Hello and first sorry for my english… thanks google.
>
> Something is wrong with what I want to do:
> I use Wallaby, it works very well (apart from VpnaaS, I wasted too much time this summer to make it work, without success, and the bug does not seem to be fixed).
>
> Here is what I want to do and which does not work as I want:
> - With an admin account, I launch a Win10 instance from the image I created. The instance is working but it takes about 10 minutes to get Win10 up and running.
> I wanted to take a snapshot of this instance and then create a new image from this snapshot. And that users use this new image.
> I create the snapshot, I place the "--public" parameter on the new image.
> I'm trying to create a new instance from this snapshot with the admin account: it works.
> I create a new user, who has his project, and sees all the images. I try to create an instance with this new image and I get the message:
>
> Block Device Mapping is Invalid: failed to get snapshot f12c04f2-51e7-4817-ab9b-eda63c5b9aff. (HTTP 400) (Request-ID: req-c26dab86-c25f-409a-8390-8aa0ea8fe1cb)
>
> Is it a legal problem? Is it possible to do as I do? otherwise how should we do it?
>
> Thanks if you have ideas for helping me
>
>
> Franck VEDEL
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20211013/1843d847/attachment-0001.htm>
More information about the openstack-discuss
mailing list