Hi,<br><br>You should to modify nova.virt.libvirt.connection._create_image.<br><br>This is source code about make a local disk.<br><br> 959         local_gb = inst['local_gb']<br> 960         if local_gb and not self._volume_in_mapping(<br>
 961             self.default_local_device, block_device_info):<br> 962             fn = functools.partial(self._create_ephemeral,<br> 963                                    fs_label='ephemeral0',<br> 964                                    os_type=inst.os_type)<br>
 965             self._cache_image(fn=fn,<br> 966                               target=basepath('disk.local'),<br> 967                               fname="ephemeral_%s_%s_%s" %<br> 968                               ("0", local_gb, inst.os_type),<br>
 969                               cow=<b>FLAGS.use_cow_images</b>,<br> 970                               local_size=local_gb)<br><br>You can change 'cow' value to FALSE. (FLAGS.use_cow_images is TRUE by default). then _cache_image function make a disk to raw format.<br>
<br><br><div class="gmail_quote">2011/11/8 ljvsss <span dir="ltr"><<a href="mailto:ljvsss@gmail.com">ljvsss@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi all<div><br></div><div>if i create an instance flavor of m1.large(4u,8GRAM.80G disk),at floder here /var/lib/nova/instances/instance-0000006 will have two img£ºdisk and disk.local</div><div>they format is same£¬qcow2 or raw</div>

<div>what i want is the "disk" (instance os disk) format  is qcow2,and the disk.local's format is  raw,because qcow2 is small and easy to make snapshots,raw's speed is bettter</div><div><br></div><div>what should i do?</div>

<div><br></div><div>thanks :)</div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>