Why does libguestfs tools fail on Vmware guest with "kvm_put_msrs: Assertion `ret == n' failed" error ?

Solution Verified - Updated -


  • guestmount command fails on a vmware guest with following error .
qemu-kvm: /builddir/build/BUILD/qemu-2.6.0/target-i386/kvm.c:1736: kvm_put_msrs: Assertion `ret == n' failed.
  • virt-customize command fails on a vmware guest with following error .
$ virt-customize -x --verbose -a overcloud-full.qcow2 --root-password password:password
libguestfs: trace: launch = -1 (error)
virt-customize: error: libguestfs error: could not create appliance through

Try running qemu directly without libvirt using this environment variable:

Original error from libvirt: internal error: process exited while
connecting to monitor: qemu-kvm:
/builddir/build/BUILD/qemu-2.6.0/target-i386/kvm.c:1736: kvm_put_msrs:
Assertion `ret == n' failed. [code=1 int1=-1]
libguestfs: trace: close
libguestfs: closing guestfs handle 0x274e2b0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsrIaElp
  • Nested virtualized guest on RHEL-KVM running on ESX Host failes with "kvm_put_msrs: Assertion `ret == n' failed" error.


  • Red Hat OpenStack Platform
  • Red Hat Enterprise Linux 7
  • qemu-kvm-rhev
  • VMware Virtualization Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content