yes,  this system tailor it's kernel ,reduce the  "CONFIG_VIRT_DRIVERS=y " ,this cause the vm fail to start .
after add the virtio driver config ,then recompile the kernel , libguestfs-test-tool run successfully .
 thanks for help !

           thomas.kuang .
 

 







At 2019-12-03 16:58:38, "Richard W.M. Jones" <rjones@redhat.com> wrote: >On Mon, Dec 02, 2019 at 08:09:47PM +0800, thomas wrote: >> [ 0.000000] Linux version 3.10.0 (root@NSG) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Fri Nov 1 10:40:29 UTC 2019 > >The kernel that fails isn't the Red Hat kernel, so I suppose it lacks >the right drivers or has some different configuration which breaks >libguestfs. > >You can tell libguestfs to use a different kernel by setting the >SUPERMIN_KERNEL parameter and removing the /var/tmp/.guestfs-* >directory between runs. See the FAQ here: > >http://libguestfs.org/guestfs-faq.1.html#broken-kernel-or-trying-a-different-kernel > >For comparison the successful run is using the ordinary CentOS kernel: > >[ 0.000000] Linux version 3.10.0-957.10.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon Mar 18 15:06:45 UTC 2019 > >Rich. > >-- >Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones >Read my programming and virtualization blog: http://rwmj.wordpress.com >virt-df lists disk usage of guests without needing to install any >software inside the virtual machine. Supports Linux and Windows. >http://people.redhat.com/~rjones/virt-df/