From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:38923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx8Gy-0006xF-40 for qemu-devel@nongnu.org; Fri, 22 Feb 2019 05:41:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gx8Gv-0004yy-Gk for qemu-devel@nongnu.org; Fri, 22 Feb 2019 05:41:39 -0500 Received: from indium.canonical.com ([91.189.90.7]:38064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gx8Gg-0004Ur-Bm for qemu-devel@nongnu.org; Fri, 22 Feb 2019 05:41:27 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1gx8GE-0001iy-2U for ; Fri, 22 Feb 2019 10:40:54 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 0A61E2E80CC for ; Fri, 22 Feb 2019 10:40:54 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 22 Feb 2019 10:29:18 -0000 From: Mathieu Corbin <1817268@bugs.launchpad.net> Reply-To: Bug 1817268 <1817268@bugs.launchpad.net> Sender: bounces@canonical.com References: <155082367008.22773.11895376561017991070.malonedeb@wampee.canonical.com> Message-Id: <155083135878.23253.15562402210373904375.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1817268] Re: Input/output error during migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi David, Thanks you for your help. The VARS file is 128K. I increased the "/var/lib/libvirt/qemu/nvram/testuefi_VARS.fd" var file to 1M, but had this error during migration: error: internal error: qemu unexpectedly closed the monitor: 2019-02-22T09:= 52:34.098833Z qemu-system-x86_64: Length mismatch: system.flash1: 0x100000 = in !=3D 0x20000: Invalid argument 2019-02-22T09:52:34.098940Z qemu-system-x86_64: error while loading state f= or instance 0x0 of device 'ram' So I destroyed the machine, removed the "/var/lib/libvirt/qemu/nvram/testuefi_VARS.fd" var file, increased the /usr/share/OVMF/OVMF_VARS.fd file in both hypervisors (src and dest) to 1M, recreated the machine and now the migration works: virsh migrate --verbose --live --p2p --tunnelled --copy-storage-inc --chang= e-protection --abort-on-error testuefi qemu+tcp:///system Migration: [100 %] I still have to test if increasing the VARS file do not cause issues on the virtual machine. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1817268 Title: Input/output error during migration Status in QEMU: New Bug description: Operating system: Ubuntu 18.04.2 LTS qemu version: 2.11.1, but also reproduced with 3.1.0 (compiled manually). virsh --version: 4.0.0 Hello, I am having an issue with migration of UEFI virtual machines. If the --copy-storage-inc and the --tunnelled libvirt flags are used together, the migration fails. The same command for non-uefi virtual machines (e.g the same libvirt xml without the and tags) works. The command/output error is: virsh migrate --verbose --live --p2p --tunnelled --copy-storage-inc --cha= nge-protection --abort-on-error testuefi qemu+tcp:///system error: internal error: qemu unexpectedly closed the monitor: Receiving bl= ock device images 2019-02-21T16:20:15.263261Z qemu-system-x86_64: error while loading state= section id 2(block) 2019-02-21T16:20:15.263996Z qemu-system-x86_64: load of migration failed:= Input/output error If I remove one of the --tunnelled or the --copy-storage-inc flag, it works, for example: virsh migrate --verbose --live --p2p --copy-storage-inc --change-protecti= on --abort-on-error testuefi qemu+tcp:///system Migration: [100 %] virsh migrate --verbose --live --p2p --tunnelled --change-protection --ab= ort-on-error testuefi qemu+tcp:///system Migration: [100 %] I have no idea why those two flags combined together produce an error, and only for UEFI virtual machines. here is the libvirt xml definition: testuefi ce12de05-ec09-4b4b-a27a-47003a511bda CentOS 4.5 (32-bit) 2097152 1048576 2 878 /machine Apache Software Foundation CloudStack KVM Hypervisor ce12de05-ec09-4b4b-a27a-47003a511bda hvm /usr/share/OVMF/OVMF_CODE.fd= /var/lib/libvirt/qemu/nvram/testuefi_VARS.fd Westmere destroy restart destroy /usr/bin/kvm-spice