Thanks for the info. I can confirm doing the following works:
yum install centos-release-qemu-ev
yum install qemu-kvm-ev

libguestfs-test-tool completes in 3 seconds.
 


On 11 December 2017 at 16:49, Phill Bandelow <phill@onapp.com> wrote:
(1) This made no difference. It still hangs around the same place.

(2) It wasn't enabled in the kernel so i enabled it. I then rebooted but unfortunately it made no difference.

If you want access to a hypervisor to have a play around, let me know.

The only information i really have is that if i installed CentOS 7.3 on this hypervisor it works fine.

On 11 December 2017 at 16:24, Richard W.M. Jones <rjones@redhat.com> wrote:
On Mon, Dec 11, 2017 at 02:28:31PM +0000, Phill Bandelow wrote:
> Hi,
>
> We seem to be hitting an issue where libguestfs keeps hanging. virt-resize,
> guestmount etc.. never complete. If we set
> LIBGUESTFS_BACKEND_SETTINGS=force_tcg it completes.
>
> The issue starts when updating to CentOS 7.4 (CentOS 7.3 work fine). It
> doesn't seem to affect all 7.4 hypervisors and the only similarity that we
> have found is that they all use NVMe drives.

I've seen this issue before where the UART hangs, and I can't put my
finger on what was causing it right now.

At any rate there's a few things you can look into:

(1) Try with LIBGUESTFS_BACKEND=direct (without forcing TCG).

(2) Is it using nested KVM?  Is nested KVM enabled in the KVM
module in the host kernel:

  # systool -m kvm_intel -v | grep nested

(should say "Y" if yes)

If nested KVM is enabled, you can disable it (probably requires a
reboot unfortunately).  Or if disabled, try enabling it.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v



--
Regards,

Phill Bandelow
SolusVM Team Lead | OnApp Ltd
Direct Phone: +44 7883 442 300
Email: phill@onapp.com
Web: solusvm.com | onapp.com



--
Regards,

Phill Bandelow
SolusVM Team Lead | OnApp Ltd
Direct Phone: +44 7883 442 300
Email: phill@onapp.com
Web: solusvm.com | onapp.com