From: Arnab Subject: ***KVM with QEMU*** : KVM: entry failed, hardware error 0x80000021 Date: Fri, 15 Sep 2017 19:24:28 -0400 Message-ID: <23f3c911-3da3-8157-28e2-cf612ad9cd33@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail-qt0-f175.google.com ([209.85.216.175]:43286 "EHLO mail-qt0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbdIOXYc (ORCPT ); Fri, 15 Sep 2017 19:24:32 -0400 Received: by mail-qt0-f175.google.com with SMTP id i50so3503634qtf.0 for ; Fri, 15 Sep 2017 16:24:32 -0700 (PDT) Received: from [10.22.17.171] (compas.cs.stonybrook.edu. [130.245.158.1]) by smtp.gmail.com with ESMTPSA id 23sm1313173qkf.68.2017.09.15.16.24.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 16:24:29 -0700 (PDT) Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: Hello, Before I start, my system details are:- Host Ubuntu 17.04 Linux Kernel - 4.11.3 CPU x86_64 (Broadwell) Guest Ubuntu 16.04 Linux Kernel -4.4.0-62-generic CPU x86_64 (default) I have been trying to load a QEMU snapshot with KVM enabled but I always seem to be hitting the below error :- KVM: entry failed, hardware error 0x80000021 If you're running a guest on an Intel machine without unrestricted mode support, the failure can be most likely due to the guest entering an invalid state for Intel VT. For example, the guest maybe running in big real mode which is not supported on less recent Intel processors. Basically I am following the below steps : 1. I will start QEMU first without KVM, I will run a workload and then I create a snapshot (using SAVEVM). 2. Once I am done, I allow the workload to complete and then quit QEMU. 3. Next time, I try to load this snapshot back while booting QEMU and at the same time, enable-KVM as well. I use the below command :- ./qemu-system-x86_64 -m 10G -enable-kvm -machine pc-i440fx-2.8 -drive file=~/os-images-for-qemu/ubuntu16.04.server.qcow2,format=qcow2 -loadvm twenty-three 4. After this, I get the above error as mentioned. I am using the same machine configuration while saving and loading. I only change the flags to disable kvm when saving and enable-kvm while loading. I would like to know if there are steps in place to resolve this issue. I have already tried loading the kvm_intel module with the parameter emulate_invalid_guest_state=0. But that did not help at all. Thanks. Arnab