<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,
<div><br>
</div>
<div>The resizing code depends on things like a single partition, and the type of partition - see <a href="https://github.com/openstack/nova/blob/master/nova/virt/xenapi/vm_utils.py#L2042" target="_blank">https://github.com/openstack/nova/blob/master/nova/virt/xenapi/vm_utils.py#L2042</a></div>
<div><br>
</div>
<div>I assume that the CentOS / Fedora images you are talking about uses a different base filesystem.</div>
<div><br>
</div>
<div>The other requirement is that auto_disk_config needs to be set on the image (see <a href="https://github.com/openstack/nova/blob/master/nova/virt/xenapi/vm_utils.py#L803">https://github.com/openstack/nova/blob/master/nova/virt/xenapi/vm_utils.py#L803</a>)</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Bob</div>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF330128" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Qin Jia [jiaqin1017@gmail.com]<br>
<b>Sent:</b> 12 September 2013 20:22<br>
<b>To:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> [Openstack] Image Resizing<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div style="">I have deployed an openstack on top of xenserver. I downloaded the centos / fedora images from Rackspace Cloud Builders Images (<a href="https://github.com/rackerjoe/oz-image-build" target="_blank">https://github.com/rackerjoe/oz-image-build</a>).
 Converted it to vhd format and uploaded to the openstack with "glance image-create". However, I find that the VMs started from the image will have the same size although I assigned different flavors. </div>
<div style=""><br>
</div>
<div style="">I tried other official images (ubuntu and fedora) and resizing works well. I would like to ask how could I get a resizable centos image?</div>
<div style=""><br>
</div>
<div style="">Thanks,</div>
<div style="">Qin Jia</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>