Re: [Libguestfs] redhat 7.6 on intel ice lake sp kvm got error
On Fri, Sep 23, 2022 at 09:31:40PM +0800, mark wrote: > virt-host-validate show like this: > > QEMU: Checking for hardware virtualization : > PASS > QEMU: Checking if device /dev/kvm exists : > PASS > QEMU: Checking if device /dev/kvm is accessible: > PASS > QEMU: Checking if device /dev/vhost-net exists : > PASS > QEMU: Checking if device /dev/net/tun exists : > PASS > QEMU: Checking for cgroup 'memory' controller support : > PASS > QEMU: Checking for cgroup 'memory' controller mount-point : > PASS > QEMU: Checking for cgroup 'cpu' controller support : > PASS > QEMU: Checking for cgroup 'cpu' controller mount-point : > PASS > QEMU: Checking for cgroup 'cpuacct' controller support : > PASS > QEMU: Checking for cgroup 'cpuacct' controller mount-point : > PASS > QEMU: Checking for cgroup 'cpuset' controller support : > PASS > QEMU: Checking for cgroup 'cpuset' controller mount-point : > PASS > QEMU: Checking for cgroup 'devices' controller support : > PASS > QEMU: Checking for cgroup 'devices' controller mount-point : > PASS > QEMU: Checking for cgroup 'blkio' controller support : > PASS > QEMU: Checking for cgroup 'blkio' controller mount-point : > PASS > QEMU: Checking for device assignment IOMMU support : > PASS > QEMU: Checking if IOMMU is enabled by kernel : > PASS >LXC: Checking for Linux >= 2.6.26 : > PASS >LXC: Checking for namespace ipc : > PASS >LXC: Checking for namespace mnt : > PASS >LXC: Checking for namespace pid : > PASS >LXC: Checking for namespace uts : > PASS >LXC: Checking for namespace net : > PASS >LXC: Checking for namespace user : > PASS >LXC: Checking for cgroup 'memory' controller support : > PASS >LXC: Checking for cgroup 'memory' controller mount-point : > PASS >LXC: Checking for cgroup 'cpu' controller support : > PASS >LXC: Checking for cgroup 'cpu' controller mount-point : > PASS >LXC: Checking for cgroup 'cpuacct' controller support : > PASS >LXC: Checking for cgroup 'cpuacct' controller mount-point : > PASS >LXC: Checking for cgroup 'cpuset' controller support : > PASS >LXC: Checking for cgroup 'cpuset' controller mount-point : > PASS >LXC: Checking for cgroup 'devices' controller support : > PASS >LXC: Checking for cgroup 'devices' controller mount-point : > PASS >LXC: Checking for cgroup 'blkio' controller support : > PASS >LXC: Checking for cgroup 'blkio' controller mount-point : > PASS >LXC: Checking if device /sys/fs/fuse/connections exists : > FAIL (Load the 'fuse' module to enable /proc/ overrides) > > same X86 server with redhat 8.4 has no problem. That's the same for me. My best bet is this is a RHEL 7.6 KVM problem that may have been fixed in a later version. The latest version is RHEL 7.9, and upgrading should be smooth. Rich. > -- Original -- > From: "Richard W.M. Jones" ; > Date: Fri, Sep 23, 2022 09:23 PM > To: "mark"; > Cc: "libguestfs"; > Subject: Re: [Libguestfs] redhat 7.6 on intel ice lake sp kvm got error > > On Fri, Sep 23, 2022 at 09:05:31PM +0800, mark wrote: > > Dear > >On redhat 7.6 OS with intel ice lake cpu like : > > _ > > [root@localhost ~]# lscpu > > Architecture: x86_64 > > CPU op-mode(s):32-bit, 64-bit > > Byte Order:Little Endian > > CPU(s):96 > > On-line CPU(s) list: 0-95 > > Thread(s) per core:2 > > Core(s) per socket:24 > > Socket(s): 2 > > NUMA node(s): 2 > > Vendor ID:
Re: [Libguestfs] redhat 7.6 on intel ice lake sp kvm got error
On Fri, Sep 23, 2022 at 09:05:31PM +0800, mark wrote: > Dear >On redhat 7.6 OS with intel ice lake cpu like : > _ > [root@localhost ~]# lscpu > Architecture: x86_64 > CPU op-mode(s):32-bit, 64-bit > Byte Order:Little Endian > CPU(s):96 > On-line CPU(s) list: 0-95 > Thread(s) per core:2 > Core(s) per socket:24 > Socket(s): 2 > NUMA node(s): 2 > Vendor ID: GenuineIntel > CPU family:6 > Model: 106 > Model name:Intel(R) Xeon(R) Gold 5318Y CPU @ 2.10GHz > Stepping: 6 > CPU MHz: 2100.000 > BogoMIPS: 4200.00 > Virtualization:VT-x > L1d cache: 48K > L1i cache: 32K > L2 cache: 1280K > L3 cache: 36864K > NUMA node0 CPU(s): > > 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94 > NUMA node1 CPU(s): > > 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95 > Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca > cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx > pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl > xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl > vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic > movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm > 3dnowprefetch epb cat_l3 intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced > tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep > bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma > clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 > cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts > avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni > avx512_bitalg avx512_vpopcntdq spec_ctrl intel_stibp flush_l1d > arch_capabilities > [root@localhost ~]# uname -a > Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 > UTC > 2018 x86_64 x86_64 x86_64 GNU/Linux > [root@localhost ~]# > __ > > When create kvm got this error: > __ > [root@localhost ~]# /usr/libexec/qemu-kvm -name test -machine pc -m 8192 > kvm_init_vcpu failed: Invalid argument Interesting - I actually don't know the answer to this. What is the output of this command? # virt-host-validate Rich. > __ > > > So I trust to debug this : > __ > [root@localhost ~]# export LIBGUESTFS_BACKEND=direct > [root@localhost ~]# export LIBGUESTFS_DEBUG=1 > [root@localhost ~]# export LIBGUESTFS_TRACE=1 > [root@localhost ~]# libguestfs-test-tool > > *IMPORTANT NOTICE > * > * When reporting bugs, include the COMPLETE, UNEDITED > * output below in your bug report. > * > > libguestfs: trace: set_verbose true > libguestfs: trace: set_verbose = 0 > libguestfs: trace: set_backend "direct" > libguestfs: trace: set_backend = 0 > libguestfs: trace: set_verbose true > libguestfs: trace: set_verbose = 0 > LIBGUESTFS_DEBUG=1 > LIBGUESTFS_BACKEND=direct > LIBGUESTFS_TRACE=1 > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin > XDG_RUNTIME_DIR=/run/user/0 > SELinux: Enforcing > libguestfs: trace: add_drive_scratch 104857600 > libguestfs: trace: get_tmpdir > libguestfs: trace: get_tmpdir = "/tmp" > libguestfs: trace: disk_create "/tmp/libguestfsWpVuIR/scratch1.img" "raw" > 104857600 > libguestfs: trace: disk_create = 0 > libguestfs: trace: add_drive "/tmp/libguestfsWpVuIR/scratch1.img" "format:raw" > "cachemode:unsafe" > libguestfs: trace: add_drive = 0 > libguestfs: trace: add_drive_scratch = 0 > libguestfs: trace: get_append > libguestfs: trace: get_append = "NULL" > guestfs_get_append: (null) > libguestfs: trace: get_autosync > libguestfs: trace: get_autosync = 1 > guestfs_get_autosync: 1 > libguestfs: trace: get_backend > libguestfs: trace: get_backend = "direct" > guestfs_get_backend: direct > libguestfs: trace: get_backend_settings > libguestfs: trace: get_backend_settings = [] > guestfs_get_backend_settings: [] > libguestfs: trace: get_cachedir > libguestfs: trace: get_cachedir = "/var/tmp" >
[Libguestfs] redhat 7.6 on intel ice lake sp kvm got error
Dear On redhat 7.6 OS with intel ice lake cpu like : _ [root@localhost ~]# lscpu Architecture: x86_64 CPU op-mode(s):32-bit, 64-bit Byte Order: Little Endian CPU(s):96 On-line CPU(s) list: 0-95 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model:106 Model name: Intel(R) Xeon(R) Gold 5318Y CPU @ 2.10GHz Stepping: 6 CPU MHz: 2100.000 BogoMIPS: 4200.00 Virtualization:VT-x L1d cache: 48K L1i cache: 32K L2 cache: 1280K L3 cache: 36864K NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94 NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95 Flags:fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq spec_ctrl intel_stibp flush_l1d arch_capabilities [root@localhost ~]# uname -a Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# __ When create kvm got this error: __ [root@localhost ~]# /usr/libexec/qemu-kvm -name test -machine pc -m 8192 kvm_init_vcpu failed: Invalid argument __ So I trust to debug this : __ [root@localhost ~]# export LIBGUESTFS_BACKEND=direct [root@localhost ~]# export LIBGUESTFS_DEBUG=1 [root@localhost ~]# export LIBGUESTFS_TRACE=1 [root@localhost ~]# libguestfs-test-tool * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: set_backend "direct" libguestfs: trace: set_backend = 0 libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 LIBGUESTFS_DEBUG=1 LIBGUESTFS_BACKEND=direct LIBGUESTFS_TRACE=1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin XDG_RUNTIME_DIR=/run/user/0 SELinux: Enforcing libguestfs: trace: add_drive_scratch 104857600 libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: disk_create "/tmp/libguestfsWpVuIR/scratch1.img" "raw" 104857600 libguestfs: trace: disk_create = 0 libguestfs: trace: add_drive "/tmp/libguestfsWpVuIR/scratch1.img" "format:raw" "cachemode:unsafe" libguestfs: trace: add_drive = 0 libguestfs: trace: add_drive_scratch = 0 libguestfs: trace: get_append libguestfs: trace: get_append = "NULL" guestfs_get_append: (null) libguestfs: trace: get_autosync libguestfs: trace: get_autosync = 1 guestfs_get_autosync: 1 libguestfs: trace: get_backend libguestfs: trace: get_backend = "direct" guestfs_get_backend: direct libguestfs: trace: get_backend_settings libguestfs: trace: get_backend_settings = [] guestfs_get_backend_settings: [] libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" guestfs_get_cachedir: /var/tmp libguestfs: trace: get_hv libguestfs: trace: get_hv = "/usr/libexec/qemu-kvm" guestfs_get_hv: /usr/libexec/qemu-kvm libguestfs: trace: get_memsize libguestfs: trace: get_memsize = 500 guestfs_get_memsize: 500 libguestfs: trace: get_network libguestfs: trace: get_network = 0 guestfs_get_network: 0 libguestfs: trace: get_path libguestfs: trace: get_path = "/usr/lib64/guestfs" guestfs_get_path: /usr/lib64/guestfs libguestfs: trace: get_pgroup libguestfs: trace: get_pgroup = 0 guestfs_get_pgroup: 0 libguestfs: trace: