<br><br>
<div class="gmail_quote">2011/10/28 Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">On 10/27/2011 09:37 PM, Luengffy XUE wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">command:<br><br>virsh migrate --live --copy-storage-all vm<br>qemu+ssh://destinationHost/<u></u>system<br>
<br>error<br>: unexpected failure<br><br>PS  log file in the jpg<br></blockquote><br>Your jpg takes up a lot of bandwidth; it would be more efficient if you copy and paste the text from your console, rather than a screenshot of the console.<br>
<br></blockquote>
<div> </div>
<div>I appologize for this. I ca paste the text version.</div>
<div>In the destinaiton host's   /var/log/libvirt/qemu/vm.log</div>
<div>It is described as:</div>
<div> </div>
<div>2011-10-28 11:29:31.715: starting up<br>LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name VCentOS -uuid f4dcf69e-5c23-a4bd-0262-0fee80b2bba6 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/VCentOS.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -drive file=/var/lib/libvirt/images/CentOS.qcow2,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:f6:2b:3a,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc <a href="http://127.0.0.1:0">127.0.0.1:0</a> -vga cirrus -incoming tcp:<a href="http://0.0.0.0:49170">0.0.0.0:49170</a> -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4<br>
char device redirected to /dev/pts/1<br>Receiving block device images<br>Completed 0 %<br>qemu: warning: error while loading state section id 2<br>load of migration failed<br>2011-10-28 11:29:32.401: shutting down</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">As to the actual error, I'm not sure if I can offer advice until I try to reproduce it, but I do know that --copy-storage-all hasn't received as much testing.  Make sure that an empty file exists on the destination prior to the migration attempt, in case the error is stemming from qemu on the destination unable to open the file with SELinux permissions in force.<br>
<br></blockquote>
<div> </div>
<div>I  have created the right image file on the destination host.I have already reardown the apparmor. I want to know how to shut down the selinux on the ubuntu server.</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Also, what version of libvirt are you using?  Newer libvirt tries harder to avoid the lame error messages from qemu being unable to start a migration without giving any reasons why.<br>
<font color="#888888"><br></font></blockquote>
<div> </div>
<div> </div>
<div>The version of libvit I am using is:</div>
<div> </div>
<div>Compiled against library  :  libvir 0.8.8</div>
<div>Using library:      libvir  0.8.8</div>
<div>Using API :  QEMU 0.8.8</div>
<div>Runing hypervisor: QEMU 0.14.0</div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><font color="#888888">-- <br>Eric Blake   <a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>    +1-801-349-2682<br>
Libvirt virtualization library <a href="http://libvirt.org/" target="_blank">http://libvirt.org</a><br></font></blockquote></div>
<div><br> </div>
<div>Regards   </div>
<div>Leungffy</div>
<div> </div>