https://download.libvirt.org/libvirt-6.2.0.tar.xz
yum install -y libpciaccess-devel edk2-ovmf audit-devel libpcap-devel netcf-devel sanlock-devel wireshark-devel yajl-devel open-iscsi-devel parted-devel glusterfs-devel
[root@controller libvirt-6.2.0]# autoreconf -if
[root@controller libvirt-6.2.0]# mkdir build
[root@controller libvirt-6.2.0]# cd build
[root@controller build]#
../configure --enable-dependency-tracking \
--with-qemu \
--without-openvz \
--without-lxc \
--without-vbox \
--without-libxl \
--with-sasl \
--with-polkit \
--with-libvirtd \
--without-vz \
--without-bhyve \
--with-remote-default-mode=legacy \
--with-interface \
--with-network \
--with-storage-fs \
--with-storage-lvm \
--with-storage-iscsi \
--with-storage-iscsi-direct \
--with-storage-scsi \
--with-storage-disk \
--with-storage-mpath \
--with-storage-rbd \
--without-storage-sheepdog \
--with-storage-gluster \
--without-storage-zfs \
--without-storage-vstorage \
--with-numactl \
--with-numad \
--with-capng \
--without-fuse \
--with-netcf \
--with-selinux \
--with-selinux-mount="/sys/fs/selinux" \
--without-apparmor \
--without-hal \
--with-udev \
--with-yajl \
--with-sanlock \
--with-libpcap \
--with-macvtap \
--with-audit \
--with-dtrace \
--with-driver-modules \
--with-firewalld \
--without-firewalld-zone \
--with-wireshark-dissector \
--without-pm-utils \
--with-nss-plugin \
--with-packager="greatwall, 20231017, changsha" \
--with-packager-version=6.2.0 \
--with-qemu-user=qemu \
--with-qemu-group=qemu \
--with-tls-priority=%{tls_priority} \
--with-loader-nvram="/usr/share/edk2/ovmf/OVMF_CODE.fd:/usr/share/edk2/ovmf/OVMF_VARS.fd" \
--enable-werror \
--enable-expensive-tests \
--with-init-script=systemd \
--without-login-shell
configure: Configuration summary
configure: =====================
configure:
configure: Drivers
configure:
configure: QEMU: yes
configure: OpenVZ: no
configure: VMware: yes
configure: VBox: no
configure: libxl: no
configure: LXC: no
configure: ESX: yes
configure: Hyper-V: no
configure: vz: no
configure: Bhyve: no
configure: Test: yes
configure: Remote: yes
configure: Network: yes
configure: Libvirtd: yes
configure: Interface: yes
configure:
configure: Storage Drivers
configure:
configure: Dir: yes
configure: FS: yes
configure: NetFS: yes
configure: LVM: yes
configure: iSCSI: yes
configure: iscsi-direct: yes
configure: SCSI: yes
configure: mpath: yes
configure: Disk: yes
configure: RBD: yes
configure: Sheepdog: no
configure: Gluster: yes
configure: ZFS: no
configure: Virtuozzo storage: no
configure:
configure: Security Drivers
configure:
configure: SELinux: yes
configure: AppArmor: no
configure:
configure: Driver Loadable Modules
configure:
configure: driver_modules: yes (CFLAGS='' LIBS='-ldl')
configure:
configure: Libraries
configure:
configure: acl: yes (CFLAGS='' LIBS='-lacl')
configure: apparmor: no
configure: attr: yes (CFLAGS='' LIBS='-lattr')
configure: audit: yes (CFLAGS='' LIBS='-laudit')
configure: bash_completion: yes (CFLAGS='' LIBS='')
configure: blkid: yes (CFLAGS='-I/usr/include/blkid ' LIBS='-lblkid ')
configure: capng: yes (CFLAGS='' LIBS='-lcap-ng')
configure: curl: yes (CFLAGS='-DCURL_DISABLE_TYPECHECK ' LIBS='-lcurl ')
configure: dbus: yes (CFLAGS='-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include ' LIBS='-ldbus-1 ')
configure: dlopen: yes (CFLAGS='' LIBS='-ldl')
configure: firewalld: yes (CFLAGS='' LIBS='')
configure: firewalld-zone: no
configure: fuse: no
configure: glib: yes (CFLAGS='-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid ' LIBS='-lgio-2.0 -lgobject-2.0 -lglib-2.0 ')
configure: glusterfs: yes (CFLAGS='-D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D__USE_LARGEFILE64 -DUSE_POSIX_ACLS=1 -I/usr/include/uuid ' LIBS='-lacl -lgfapi -lglusterfs -lgfrpc -lgfxdr -luuid ')
configure: gnutls: yes (CFLAGS='-I/usr/include/p11-kit-1 ' LIBS='-lgnutls ')
configure: hal: no
configure: libiscsi: yes (CFLAGS='' LIBS='-L/usr/lib64/iscsi -liscsi ')
configure: libnl: yes (CFLAGS='-I/usr/include/libnl3 -I/usr/include/libnl3 ' LIBS='-lnl-3 -lnl-route-3 -lnl-3 ')
configure: libpcap: yes (CFLAGS='-I/usr/include' LIBS='-L/usr/lib64 -Wl,-rpath,/usr/lib64 -lpcap')
configure: libssh: yes (CFLAGS='' LIBS='-lssh ')
configure: libxl: no
configure: libxml: yes (CFLAGS='-I/usr/include/libxml2 ' LIBS='-lxml2 ')
configure: macvtap: yes (CFLAGS='' LIBS='')
configure: netcf: yes (CFLAGS='' LIBS='-lnetcf ')
configure: NLS: yes
configure: nss: yes
configure: numactl: yes (CFLAGS='' LIBS='-lnuma')
configure: openwsman: no
configure: pciaccess: yes (CFLAGS='' LIBS='-lpciaccess ')
configure: pm_utils: no
configure: polkit: yes
configure: rbd: yes (CFLAGS='' LIBS='-lrbd -lrados')
configure: readline: yes (CFLAGS='-D_FUNCTION_DEF -I/usr/include -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600' LIBS='-lreadline ')
configure: sanlock: yes (CFLAGS='' LIBS='-lsanlock_client')
configure: sasl: yes (CFLAGS='' LIBS='-lsasl2 ')
configure: selinux: yes (CFLAGS='' LIBS='-lselinux')
configure: ssh2: no
configure: udev: yes (CFLAGS='' LIBS='-ludev ')
configure: virtualport: yes (CFLAGS='' LIBS='')
configure: xdr: yes (CFLAGS='-I/usr/include/tirpc' LIBS='')
configure: yajl: yes (CFLAGS='' LIBS='-lyajl ')
configure:
configure: Windows
configure:
configure: MinGW: no
configure: windres: no
configure:
configure: Test suite
configure:
configure: Coverage: no
configure:
configure: Miscellaneous
configure:
configure: Debug: yes
configure: Use -Werror: yes
configure: Warning Flags: -fno-common -W -Wabsolute-value -Waddress -Waddress-of-packed-member -Waggressive-loop-optimizations -Wall -Wattribute-warning -Wattributes -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined -Wcannot-profile -Wcast-align -Wcast-align=strict -Wcast-function-type -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time -Wdeprecated-declarations -Wdesignated-init -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero -Wdouble-promotion -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wif-not-aligned -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Winline -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-profile -Wmissing-prototypes -Wmultichar -Wmultistatement-macros -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wpacked-not-aligned -Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wstringop-truncation -Wsuggest-attribute=cold -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wsuggest-final-methods -Wsuggest-final-types -Wswitch -Wswitch-bool -Wswitch-unreachable -Wsync-nand -Wtautological-compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvla -Wvolatile-register-var -Wwrite-strings -Walloc-size-larger-than=9223372036854775807 -Warray-bounds=2 -Wattribute-alias=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wnormalized=nfc -Wshift-overflow=2 -Wstringop-overflow=2 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wno-sign-compare -Wno-cast-function-type -Wjump-misses-init -Wswitch-enum -Wno-format-nonliteral -Wno-format-truncation -Wframe-larger-than=4096 -fexceptions -fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Werror -std=gnu99 -fstack-protector-all
configure: DTrace: yes
configure: numad: yes
configure: Init script: systemd
configure: Char device locks: /var/lock
configure: Default Editor: vi
configure: Loader/NVRAM: /usr/share/edk2/ovmf/OVMF_CODE.fd:/usr/share/edk2/ovmf/OVMF_VARS.fd (!!! Using this configure option is strongly discouraged !!!)
configure: virt-login-shell: no
configure: virt-host-validate: yes
configure: TLS priority: %{tls_priority}
configure:
configure: Developer Tools
configure:
configure: wireshark_dissector: yes (CFLAGS='-I/usr/include/wireshark -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread ' LIBS='-lwireshark -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 ')
configure:
configure: Privileges
configure:
configure: QEMU: qemu:qemu
configure:
[root@controller build]# numactl -N 0-3 make -j64
GEN configmake.h
make all-recursive
make[1]: Entering directory '/home/yeqiang/libvirt-6.2.0/build'
Making all in .
make[2]: Entering directory '/home/yeqiang/libvirt-6.2.0/build'
make[2]: Leaving directory '/home/yeqiang/libvirt-6.2.0/build'
Making all in include/libvirt
make[2]: Entering directory '/home/yeqiang/libvirt-6.2.0/build/include/libvirt'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/yeqiang/libvirt-6.2.0/build/include/libvirt'
Making all in src
make[2]: Entering directory '/home/yeqiang/libvirt-6.2.0/build/src'
GEN util/virkeycodetable_linux.h
GEN util/virkeycodetable_osx.h
GEN util/virkeycodetable_atset1.h
GEN util/virkeycodetable_atset2.h
GEN util/virkeycodetable_atset3.h
GEN util/virkeycodetable_xtkbd.h
GEN util/virkeycodetable_usb.h
GEN util/virkeycodetable_win32.h
GEN util/virkeycodetable_qnum.h
GEN util/virkeynametable_linux.h
GEN util/virkeynametable_osx.h
GEN util/virkeynametable_win32.h
GEN security/apparmor/usr.lib.libvirt.virt-aa-helper
GEN security/apparmor/usr.sbin.libvirtd
GEN access/org.libvirt.api.policy
GEN access/viraccessapicheck.h
GEN access/viraccessapicheck.c
GEN access/viraccessapicheckqemu.h
GEN access/viraccessapicheckqemu.c
GEN access/viraccessapichecklxc.h
GEN access/viraccessapichecklxc.c
GEN libvirt_access.xml
GEN libvirt_access_qemu.xml
GEN libvirt_access_lxc.xml
GEN logging/log_protocol.h
GEN logging/log_daemon_dispatch_stubs.h
GEN locking/lock_protocol.h
GEN locking/lock_daemon_dispatch_stubs.h
Can't exec "no": No such file or directory at ../../src/rpc/genprotocol.pl line 45.
cannot run no -h ../../src/logging/log_protocol.x: No such file or directory at ../../src/rpc/genprotocol.pl line 45.
GEN admin/admin_protocol.h
GEN admin/admin_client.h
make[2]: *** [Makefile:14807: logging/log_protocol.h] Error 2
make[2]: *** Waiting for unfinished jobs....
Can't exec "no": No such file or directory at ../../src/rpc/genprotocol.pl line 45.
cannot run no -h ../../src/locking/lock_protocol.x: No such file or directory at ../../src/rpc/genprotocol.pl line 45.
GEN admin/admin_server_dispatch_stubs.h
make[2]: *** [Makefile:14807: locking/lock_protocol.h] Error 2
Can't exec "no": No such file or directory at ../../src/rpc/genprotocol.pl line 45.
cannot run no -h ../../src/admin/admin_protocol.x: No such file or directory at ../../src/rpc/genprotocol.pl line 45.
make[2]: *** [Makefile:14807: admin/admin_protocol.h] Error 2
make[2]: Leaving directory '/home/yeqiang/libvirt-6.2.0/build/src'
make[1]: *** [Makefile:777: all-recursive] Error 1
make[1]: Leaving directory '/home/yeqiang/libvirt-6.2.0/build'
make: *** [Makefile:670:all] 错误 2
=========================================================================================================================================================================================================================================================================================================================================
libvirt 9.8.0
[root@controller libvirt-9.8.0]# yum install -y rpcgen
[root@controller libvirt-9.8.0]# meson setup --wipe build -Dsystem=true -Ddriver_qemu=enabled
libvirt 9.8.0
Drivers
QEMU : YES
OpenVZ : YES
VMware : YES
VBox : YES
libxl : NO
LXC : YES
Cloud-Hypervisor : YES
ESX : YES
Hyper-V : NO
vz : NO
Bhyve : NO
Test : YES
Remote : YES
Network : YES
Libvirtd : YES
Interface : YES
Storage Drivers
Dir : YES
FS : YES
NetFS : YES
LVM : YES
iSCSI : YES
iscsi-direct : YES
SCSI : YES
mpath : YES
Disk : YES
RBD : YES
Gluster : YES
ZFS : YES
Virtuozzo storage : YES
Security Drivers
SELinux : YES
AppArmor : NO
Driver Loadable Modules
driver_modules : YES
Libraries
acl : YES
apparmor : NO
attr : YES
audit : YES
bash_completion : YES
blkid : YES
capng : YES
curl : YES
devmapper : YES
dlopen : YES
fuse : NO
glusterfs : YES
libiscsi : YES
libkvm : NO
libnbd : NO
libnl : YES
libparted : YES
libpcap : YES
libssh : YES
libssh2 : NO
libutil : YES
netcf : YES
NLS : YES
numactl : YES
openwsman : NO
parallels-sdk : NO
pciaccess : YES
polkit : YES
rbd : YES
readline : YES
sanlock : YES
sasl : YES
selinux : YES
udev : YES
xdr : YES
yajl : YES
Windows
MinGW : NO
windres : NO
Test suite
Expensive : YES
Coverage : NO
Miscellaneous
Warning Flags : -fasynchronous-unwind-tables -fexceptions -fipa-pure-const -fno-common -Wabsolute-value -Waddress -Waddress-of-packed-member
-Waggressive-loop-optimizations -Walloc-size-larger-than=9223372036854775807 -Walloca -Warray-bounds=2 -Wattribute-alias=2 -Wattribute-warning
-Wattributes -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined -Wcannot-profile -Wcast-align
-Wcast-align=strict -Wno-cast-function-type -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdangling-else
-Wdate-time -Wdeclaration-after-statement -Wdeprecated-declarations -Wdesignated-init -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers
-Wdiv-by-zero -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wformat-contains-nul
-Wformat-extra-args -Wno-format-nonliteral -Wformat-overflow=2 -Wformat-security -Wno-format-truncation -Wformat-y2k -Wformat-zero-length
-Wframe-address -Wframe-larger-than=2048 -Wfree-nonheap-object -Whsa -Wif-not-aligned -Wignored-attributes -Wignored-qualifiers -Wimplicit
-Wimplicit-fallthrough=5 -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Winline -Wint-conversion
-Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-not-parentheses -Wlogical-op
-Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces
-Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-profile -Wmissing-prototypes
-Wmultichar -Wmultistatement-macros -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnormalized=nfc -Wnull-dereference -Wodr
-Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wpacked-not-aligned
-Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr
-Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value
-Wshift-overflow=2 -Wno-sign-compare -Wsizeof-array-argument -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing
-Wstrict-prototypes -Wstringop-overflow=2 -Wstringop-truncation -Wsuggest-attribute=cold -Wno-suggest-attribute=const
-Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wno-suggest-attribute=pure -Wsuggest-final-methods -Wsuggest-final-types -Wswitch
-Wswitch-bool -Wswitch-enum -Wswitch-unreachable -Wsync-nand -Wtautological-compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized
-Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-const-variable=2 -Wunused-function -Wunused-label
-Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros
-Wvector-operation-performance -Wvla -Wvolatile-register-var -Wwrite-strings -Wdouble-promotion
docs : YES
tests : YES
DTrace : YES
firewalld : YES
firewalld-zone : YES
nss : YES
numad : YES
nbdkit : NO
Init script : systemd
Char device locks : /var/lock
Loader/NVRAM :
pm_utils : NO
virt-login-shell : YES
virt-host-validate : YES
TLS priority : NORMAL
Developer Tools
wireshark_dissector: YES
Privileges
QEMU : root:root !!! running QEMU as root is strongly discouraged !!!
Subprojects
keycodemapdb : YES
Found ninja-1.8.2 at /usr/bin/ninja
[root@controller libvirt-9.8.0]# meson configure
WARNING: The source directory instead of the build directory was specified.
WARNING: Only the default values for the project are printed, and all command line parameters are ignored.
Core properties:
Source dir /home/yeqiang/libvirt-9.8.0
Main project options:
Core options Default Value Possible Values Description
------------ ------------- --------------- -----------
auto_features auto [enabled, disabled, auto] Override value of all 'auto' features
backend ninja [ninja, vs, vs2010, vs2012, Backend to use
vs2013, vs2015, vs2017, vs2019,
xcode]
buildtype debugoptimized [plain, debug, debugoptimized, Build type to use
release, minsize, custom]
cmake_prefix_path [] List of additional prefixes for cmake to search
debug true [true, false] Debug
default_library shared [shared, static, both] Default library type
force_fallback_for [] Force fallback for those subprojects
install_umask 0022 [preserve, 0000-0777] Default umask to apply on permissions of installed files
layout mirror [mirror, flat] Build directory layout
optimization 2 [0, g, 1, 2, 3, s] Optimization level
pkg_config_path [] List of additional paths for pkg-config to search
strip false [true, false] Strip targets on install
unity off [on, off, subprojects] Unity build
unity_size 4 >=2 Unity block size
warning_level 2 [0, 1, 2, 3] Compiler warning level to use
werror false [true, false] Treat warnings as errors
wrap_mode default [default, nofallback, nodownload, Wrap mode
forcefallback, nopromote]
build.cmake_prefix_path [] List of additional prefixes for cmake to search
build.pkg_config_path [] List of additional paths for pkg-config to search
Backend options Default Value Possible Values Description
--------------- ------------- --------------- -----------
backend_max_links 0 >=0 Maximum number of linker processes to run or 0 for no limit
Base options Default Value Possible Values Description
------------ ------------- --------------- -----------
b_asneeded true [true, false] Use -Wl,--as-needed when linking
b_colorout always [auto, always, never] Use colored output
b_coverage false [true, false] Enable coverage tracking.
b_lto false [true, false] Use link time optimization
b_lto_threads 0 Use multiple threads for Link Time Optimization
b_lundef true [true, false] Use -Wl,--no-undefined when linking
b_ndebug false [true, false, if-release] Disable asserts
b_pch true [true, false] Use precompiled headers
b_pgo off [off, generate, use] Use profile guided optimization
b_pie true [true, false] Build executables as position independent
b_sanitize none [none, address, thread, Code sanitizer to use
undefined, memory,
address,undefined]
b_staticpic true [true, false] Build static libraries as position independent
Compiler options Default Value Possible Values Description
---------------- ------------- --------------- -----------
c_args [] Extra arguments passed to the c compiler
c_link_args [] Extra arguments passed to the c linker
c_std gnu99 [none, c89, c99, c11, c17, c18, C language standard to use
c2x, gnu89, gnu99, gnu11,
gnu17, gnu18, gnu2x]
build.c_args [] Extra arguments passed to the c compiler
build.c_link_args [] Extra arguments passed to the c linker
build.c_std none [none, c89, c99, c11, c17, c18, C language standard to use
c2x, gnu89, gnu99, gnu11,
gnu17, gnu18, gnu2x]
Directories Default Value Possible Values Description
----------- ------------- --------------- -----------
prefix /usr/local Installation prefix
bindir bin Executable directory
datadir share Data file directory
includedir include Header file directory
infodir share/info Info page directory
libdir lib64 Library directory
libexecdir libexec Library executable directory
localedir share/locale Locale data directory
localstatedir /var/local Localstate data directory
mandir share/man Manual page directory
sbindir sbin System executable directory
sharedstatedir /var/local/lib Architecture-independent data directory
sysconfdir etc Sysconf data directory
Testing options Default Value Possible Values Description
--------------- ------------- --------------- -----------
errorlogs true [true, false] Whether to print the logs from failing tests
stdsplit true [true, false] Split stdout and stderr in test logs
Project options Default Value Possible Values Description
--------------- ------------- --------------- -----------
apparmor auto [enabled, disabled, auto] apparmor support
apparmor_profiles auto [enabled, disabled, auto] install apparmor profiles
attr auto [enabled, disabled, auto] attr support
audit auto [enabled, disabled, auto] audit support
bash_completion auto [enabled, disabled, auto] bash-completion support
bash_completion_dir directory containing bash completion scripts
blkid auto [enabled, disabled, auto] blkid support
capng auto [enabled, disabled, auto] cap-ng support
ch_group groupname to run Cloud-Hypervisor system instance as
ch_user username to run Cloud-Hypervisor system instance as
chrdev_lock_files location for UUCP style lock files for character devices (leave empty
for default paths on some platforms)
curl auto [enabled, disabled, auto] curl support
docdir documentation installation directory
docs auto [enabled, disabled, auto] whether to generate documentation
driver_bhyve auto [enabled, disabled, auto] bhyve driver
driver_ch auto [enabled, disabled, auto] Cloud-Hypervisor driver
driver_esx auto [enabled, disabled, auto] esx driver
driver_hyperv auto [enabled, disabled, auto] Hyper-V driver
driver_interface auto [enabled, disabled, auto] host interface driver
driver_libvirtd auto [enabled, disabled, auto] libvirtd driver
driver_libxl auto [enabled, disabled, auto] libxenlight driver
driver_lxc auto [enabled, disabled, auto] Linux Container driver
driver_network auto [enabled, disabled, auto] virtual network driver
driver_openvz auto [enabled, disabled, auto] OpenVZ driver
driver_qemu auto [enabled, disabled, auto] QEMU/KVM driver
driver_remote auto [enabled, disabled, auto] remote driver
driver_secrets auto [enabled, disabled, auto] local secrets management driver
driver_test auto [enabled, disabled, auto] test driver
driver_vbox auto [enabled, disabled, auto] VirtualBox XPCOMC driver
driver_vmware auto [enabled, disabled, auto] VMware driver
driver_vz auto [enabled, disabled, auto] Virtuozzo driver
dtrace auto [enabled, disabled, auto] use dtrace for static probing
expensive_tests auto [enabled, disabled, auto] set the default for enabling expensive tests (long timeouts)
firewalld auto [enabled, disabled, auto] firewalld support
firewalld_zone auto [enabled, disabled, auto] whether to install firewalld libvirt zone
fuse auto [enabled, disabled, auto] fuse support
git_werror auto [enabled, disabled, auto] use -Werror if building from GIT
glusterfs auto [enabled, disabled, auto] glusterfs support
host_validate auto [enabled, disabled, auto] build virt-host-validate
init_script check [systemd, openrc, check, none] Style of init script to install
initconfdir directory for init script configuration files
libiscsi auto [enabled, disabled, auto] libiscsi support
libnbd auto [enabled, disabled, auto] libnbd support
libnl auto [enabled, disabled, auto] libnl support
libpcap auto [enabled, disabled, auto] libpcap support
libssh auto [enabled, disabled, auto] libssh support
libssh2 auto [enabled, disabled, auto] libssh2 support
loader_nvram Pass list of pairs of
items are separated by a colon.
login_shell auto [enabled, disabled, auto] build virt-login-shell
netcf auto [enabled, disabled, auto] netcf support
nls auto [enabled, disabled, auto] nls support
no_git false [true, false] Disable git submodule update
nss auto [enabled, disabled, auto] enable Name Service Switch plugin for resolving guest IP addresses
numactl auto [enabled, disabled, auto] numactl support
numad auto [enabled, disabled, auto] use numad to manage CPU placement dynamically
openwsman auto [enabled, disabled, auto] openwsman support
packager Extra packager name
packager_version Extra packager version
pciaccess auto [enabled, disabled, auto] pciaccess support
pm_utils auto [enabled, disabled, auto] use pm-utils for power management
polkit auto [enabled, disabled, auto] use PolicyKit for UNIX socket access checks
qemu_datadir set the directory where QEMU shared data is located
qemu_group groupname to run QEMU system instance as
qemu_moddir set the directory where QEMU modules are located
qemu_user username to run QEMU system instance as
readline auto [enabled, disabled, auto] readline support
remote_default_mode direct [legacy, direct] remote driver default mode
rpath auto [enabled, disabled, auto] whether to include rpath information in installed binaries and
libraries
runstatedir State directory for temporary sockets, pid files, etc
sanlock auto [enabled, disabled, auto] sanlock support
sasl auto [enabled, disabled, auto] sasl support
secdriver_apparmor auto [enabled, disabled, auto] use AppArmor security driver
secdriver_selinux auto [enabled, disabled, auto] use SELinux security driver
selinux auto [enabled, disabled, auto] selinux support
selinux_mount set SELinux mount point
storage_dir auto [enabled, disabled, auto] directory backend for the storage driver
storage_disk auto [enabled, disabled, auto] GPartd Disk backend for the storage driver
storage_fs auto [enabled, disabled, auto] FileSystem backend for the storage driver
storage_gluster auto [enabled, disabled, auto] Gluster backend for the storage driver
storage_iscsi auto [enabled, disabled, auto] iscsi backend for the storage driver
storage_iscsi_direct auto [enabled, disabled, auto] iscsi-direct backend for the storage driver
storage_lvm auto [enabled, disabled, auto] LVM backend for the storage driver
storage_mpath auto [enabled, disabled, auto] mpath backend for the storage driver
storage_rbd auto [enabled, disabled, auto] RADOS Block Device backend for the storage driver
storage_scsi auto [enabled, disabled, auto] SCSI backend for the storage driver
storage_vstorage auto [enabled, disabled, auto] Virtuozzo storage backend for the storage driver
storage_zfs auto [enabled, disabled, auto] ZFS backend for the storage driver
sysctl_config auto [enabled, disabled, auto] Whether to install sysctl configs
system false [true, false] Set install paths to system ones
test_coverage false [true, false] turn on code coverage instrumentation
tests auto [enabled, disabled, auto] whether to build tests
tls_priority NORMAL set the default TLS session priority string
udev auto [enabled, disabled, auto] udev support
vbox_xpcomc_dir Location of directory containing VirtualBox XPCOMC library
wireshark_dissector auto [enabled, disabled, auto] wireshark support
wireshark_plugindir wireshark plugins directory for use when installing wireshark plugin
yajl auto [enabled, disabled, auto] yajl support
WARNING: The source directory instead of the build directory was specified.
WARNING: Only the default values for the project are printed, and all command line parameters are ignored.
[root@controller libvirt-9.8.0]# ninja -C build
[root@controller libvirt-9.8.0]# ninja -C build install
故障
../src/util/virprobe.h:30:12: 致命错误:libvirt_probes.h:没有那个文件或目录
30 | # include "libvirt_probes.h"
- yum-builddep -y SPECS/libvirt.spec
- rpmbuild -ba SPECS/libvirt.spec
已写至:/root/rpmbuild/SRPMS/libvirt-6.2.0-36.ky10.src.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-rbd-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-iscsi-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-iscsi-direct-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-mpath-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-disk-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-config-nwfilter-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-bash-completion-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-qemu-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-kvm-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-lock-sanlock-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-logical-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-nss-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-config-network-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-scsi-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-admin-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-wireshark-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-secret-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-nodedev-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-interface-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-nwfilter-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-network-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-storage-core-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-client-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-devel-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-daemon-driver-qemu-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-docs-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-debugsource-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-libs-6.2.0-36.ky10.aarch64.rpm
已写至:/root/rpmbuild/RPMS/aarch64/libvirt-debuginfo-6.2.0-36.ky10.aarch64.rpm