<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 2:01 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/12/2015 07:41 PM, Edward Young wrote:<br>
> Hi all,<br>
><br>
><br>
> When I live migrate a vm using<br>
><br>
> "migrate --live --copy-storage-all mig-vm qemu+ssh://<a href="http://192.168.1.3/system" target="_blank">192.168.1.3/system</a><br>
> tcp://<a href="http://192.168.1.3" target="_blank">192.168.1.3</a>"<br>
><br>
><br>
> I got the following error<br>
><br>
><br>
>              WARNING: Image format was not specified for<br>
> 'nbd://node2:49155/drive-virtio-disk0' and probing guessed raw.<br>
><br>
> 258          Automatically detecting the format is dangerous for raw<br>
> images, write operations on block 0 will be restricted.<br>
><br>
> 259          Specify the 'raw' format explicitly to remove the restrictions.<br>
><br>
<br>
</span>Was that error printed by the source or the destination qemu? It may be<br>
a bug in libvirt for not explicitly requesting raw (we DO want the NBD<br>
server to be raw, but need to be explicit so as to avoid unsafe probing).<br></blockquote><div><br></div><div> This error was printed from the source in deed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
><br>
>>From the error itself, I can tell that nbd server treat this image as raw,<br>
> rather than qcow2. My platform is libvirt+qemu. the image type of this vm<br>
> is indeed qcow2. I do not know how to let nbd know this image format.<br>
<br>
</span>Just because the underlying file on the disk is qcow2 does not impact<br>
what the NBD is serving - the NBD connection MUST be raw, unless you<br>
have a funky situation with a qcow2 file whose contents are also a<br>
nested qcow2 encoding of data.<br></blockquote><div>OK, I got it.</div><div><br></div><div>Thanks!</div><div>Ed</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br></div></div>