<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.gmail-p1, li.gmail-p1, div.gmail-p1
        {mso-style-name:gmail-p1;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.StylE-mailovZprvy18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=CS link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>How big are the actual image files? Because qcow2 is a sparse format, it does not store zeroes. If the free space in one image is zeroed out, it will convert much faster. If that is the problem, use „dd if=/dev/zero of=temp;sync;rm temp“ or zerofree.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tomas<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Paras pradhan [mailto:pradhanparas@gmail.com] <br><b>Sent:</b> Monday, July 31, 2017 11:54 PM<br><b>To:</b> openstack-operators@lists.openstack.org<br><b>Subject:</b> [Openstack-operators] custom build image is slow<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hello<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I have two qcow2 images uploaded to glance. One is CentOS 7 cloud image downloaded from <a href="http://centos.org">centos.org</a>.  The other one is custom built using CentOS 7.DVD.  When I create cinder volumes from them, volume creation from the custom built image it is very very slow.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>CenOS qcow2:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=gmail-p1>2017-07-31 21:42:44.287 881609 INFO cinder.image.image_utils [req-ea2d7b12-ae9e-45b2-8b4b-ea8465497d5a e090e605170a778610438bfabad7aa7764d0a77ef520ae392e2b59074c9f88cf 490910c1d4e1486d8e3a62d7c0ae698e - d67a18e70dd9467db25b74d33feaad6d default] <b>Converted 8192.00 MB image at 253.19 MB/s</b><o:p></o:p></p><p class=gmail-p1><o:p> </o:p></p><p class=gmail-p1>Custom built qcow2:<o:p></o:p></p></div><div><p class=gmail-p1>INFO cinder.image.image_utils [req-032292d8-1500-474d-95c7-2e8424e2b864 e090e605170a778610438bfabad7aa7764d0a77ef520ae392e2b59074c9f88cf 490910c1d4e1486d8e3a62d7c0ae698e - d67a18e70dd9467db25b74d33feaad6d default] <b>Converted 10240.00 MB image at 32.22 MB/s</b><o:p></o:p></p><p class=gmail-p1><o:p> </o:p></p><p class=gmail-p1>I used the following command to create the qcow2 file<o:p></o:p></p><p class=gmail-p1>qemu-img create -f qcow2 custom.qcow2 10G<o:p></o:p></p><p class=gmail-p1><o:p> </o:p></p><p class=gmail-p1>What am I missing ?<o:p></o:p></p><p class=gmail-p1><o:p> </o:p></p><p class=gmail-p1>Thanks<br>Paras.<o:p></o:p></p><p class=gmail-p1><o:p> </o:p></p><p class=gmail-p1><o:p> </o:p></p></div></div></div></body></html>