Fix Error: libpci check failed. Disable KVM Device Assignment capability [Solved]

Updated on September 2, 2017


I was stuck with an error “Error: libpci check failed.  Disable KVM Device Assignment capability” while compiling qemu-kvm package on Ubuntu machine. Below is the complete error message.

[qemu-kvm] $ ./configure
 Error: libpci header check failed
 Disable KVM Device Assignment capability.

How to solve this error.


The error says that the pci library is missing. So you need to install pciutils-devel or libpci-dev package as shown below:

libpci check failed

$ sudo apt-get install libpci-dev
 Setting up libudev-dev:amd64 (229-4ubuntu7) ...
 Setting up libpci-dev (1:3.3.1-1.1ubuntu1) ...
 Processing triggers for initramfs-tools (0.122ubuntu8) ...
 update-initramfs: Generating /boot/initrd.img-4.4.0-36-generic
 W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

That’s it! It should work now.

Was this article helpful?

Related Articles

Leave a Comment