[GH-ISSUE #408] Help! Install webvirtcloud Error on Centos 8.2 #255

Open
opened 2026-02-27 15:57:59 +03:00 by kerem · 12 comments
Owner

Originally created by @ntlclxyc-198 on GitHub (Jan 21, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/408

Hi,I Install webvirtcloud on Centos 8.2 ,But at this step "wget -O - https://clck.ru/9V9fH | sudo sh", the Error show " bridge-utils python-libguestfs" no match,,so not continue install ! What can i do?

Originally created by @ntlclxyc-198 on GitHub (Jan 21, 2021). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/408 Hi,I Install webvirtcloud on Centos 8.2 ,But at this step "wget -O - https://clck.ru/9V9fH | sudo sh", the Error show " bridge-utils python-libguestfs" no match,,so not continue install ! What can i do?
Author
Owner

@ntlclxyc-198 commented on GitHub (Jan 21, 2021):

The error is :

No match for argument: bridge-utils
No match for argument: python-libguestfs

<!-- gh-comment-id:765012751 --> @ntlclxyc-198 commented on GitHub (Jan 21, 2021): The error is : No match for argument: bridge-utils No match for argument: python-libguestfs
Author
Owner

@catborise commented on GitHub (Jan 22, 2021):

Please add epel repo and try again

<!-- gh-comment-id:765267224 --> @catborise commented on GitHub (Jan 22, 2021): Please add epel repo and try again
Author
Owner

@ntlclxyc-198 commented on GitHub (Jan 22, 2021):

Is the cmd"yum -y install wget epel-release"?
I already input this cmd,but yet reault shows:
[root@lclsvr8 srv]# cd webvirtcloud
[root@lclsvr8 webvirtcloud]# yum -y install wget epel-release
上次元数据过期检查:0:33:37 前,执行于 2021年01月23日 星期六 02时58分57秒。
软件包 wget-1.19.5-10.el8.x86_64 已安装。
软件包 epel-release-8-8.el8.noarch 已安装。
依赖关系解决。
无需任何处理。
完毕!
[root@lclsvr8 webvirtcloud]# sudo sh ./dev/libvirt-bootstrap.sh

  • INFO: Found function install_centos
    ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式
  • INFO: Running install_centos()
    上次元数据过期检查:0:34:20 前,执行于 2021年01月23日 星期六 02时58分57秒。
    软件包 qemu-kvm-15:4.2.0-34.module_el8.3.0+613+9ec9f184.1.x86_64 已安装。
    No match for argument: bridge-utils
    No match for argument: python-libguestfs
    软件包 supervisor-4.2.1-1.el8.noarch 已安装。
    软件包 cyrus-sasl-md5-2.1.27-5.el8.x86_64 已安装。
    软件包 epel-release-8-8.el8.noarch 已安装。
    错误:没有任何匹配: bridge-utils python-libguestfs
  • ERROR: Failed to run install_centos()!!!
    [root@lclsvr8 webvirtcloud]#
<!-- gh-comment-id:765339611 --> @ntlclxyc-198 commented on GitHub (Jan 22, 2021): Is the cmd"yum -y install wget epel-release"? I already input this cmd,but yet reault shows: [root@lclsvr8 srv]# cd webvirtcloud [root@lclsvr8 webvirtcloud]# yum -y install wget epel-release 上次元数据过期检查:0:33:37 前,执行于 2021年01月23日 星期六 02时58分57秒。 软件包 wget-1.19.5-10.el8.x86_64 已安装。 软件包 epel-release-8-8.el8.noarch 已安装。 依赖关系解决。 无需任何处理。 完毕! [root@lclsvr8 webvirtcloud]# sudo sh ./dev/libvirt-bootstrap.sh * INFO: Found function install_centos ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式 * INFO: Running install_centos() 上次元数据过期检查:0:34:20 前,执行于 2021年01月23日 星期六 02时58分57秒。 软件包 qemu-kvm-15:4.2.0-34.module_el8.3.0+613+9ec9f184.1.x86_64 已安装。 No match for argument: bridge-utils No match for argument: python-libguestfs 软件包 supervisor-4.2.1-1.el8.noarch 已安装。 软件包 cyrus-sasl-md5-2.1.27-5.el8.x86_64 已安装。 软件包 epel-release-8-8.el8.noarch 已安装。 错误:没有任何匹配: bridge-utils python-libguestfs * ERROR: Failed to run install_centos()!!! [root@lclsvr8 webvirtcloud]#
Author
Owner

@catborise commented on GitHub (Jan 22, 2021):

This script is a helper for kvm configuration. Not a must. You can configure manually.

We should fix that for centos 8 installations. It should be python3-libguestfs.

Bridge-utils.rpm not compiled yet for centos 8 . But it is not essential package, it could be skipped. You can edit script and remove it to continue.

<!-- gh-comment-id:765372597 --> @catborise commented on GitHub (Jan 22, 2021): This script is a helper for kvm configuration. Not a must. You can configure manually. We should fix that for centos 8 installations. It should be python3-libguestfs. Bridge-utils.rpm not compiled yet for centos 8 . But it is not essential package, it could be skipped. You can edit script and remove it to continue.
Author
Owner

@ntlclxyc-198 commented on GitHub (Jan 22, 2021):

I modify the script :
........
if [ "$DISTRO_MAJOR_VERSION" -lt 7 ]; then
if [ -f /etc/supervisord.conf ]; then
# curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/daemon/gstfsd > /usr/local/bin/gstfsd
cp /srv/webvirtcloud/conf/daemon/gstfsd /usr/local/bin/gstfsd
chmod +x /usr/local/bin/gstfsd
# curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/supervisor/gstfsd.conf >> /etc/supervisor.conf
cat /srv/webvirtcloud/conf/supervisor/gstfsd.conf >> /etc/supervisor.conf
else
echoerror "Supervisor not found. Exiting..."
exit 1
fi
else
if [ -f /etc/supervisord.conf ]; then

   # curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/daemon/gstfsd > /usr/local/bin/gstfsd
    cp /srv/webvirtcloud/conf/daemon/gstfsd  /usr/local/bin/gstfsd
        chmod +x /usr/local/bin/gstfsd           
   # curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/supervisor/gstfsd.conf > /etc/supervisord.d/gstfsd.ini
    cat /srv/webvirtcloud/conf/supervisor/gstfsd.conf  > /etc/supervisord.d/gstfsd.ini
    else
        echoerror "Supervisor not found. Exiting..."
        exit 1
    fi
fi
return 0

}

daemons_running_centos() {
if [ -f /etc/init.d/libvirtd ]; then
service libvirtd stop > /dev/null 2>&1
service libvirtd start
fi
.........

and execute "sudo sh ./dev/libvirt-bootstrap.sh",then show:
[root@lclsvr8 webvirtcloud]# sudo sh ./dev/libvirt-bootstrap.sh

  • INFO: Found function install_centos
    ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式
  • INFO: Running install_centos()
    Repository extras is listed more than once in the configuration
    Repository centosplus is listed more than once in the configuration
    Repository PowerTools is listed more than once in the configuration
    Repository AppStream is listed more than once in the configuration
    上次元数据过期检查:0:03:53 前,执行于 2021年01月23日 星期六 06时49分37秒。
    软件包 qemu-kvm-15:4.2.0-34.module_el8.3.0+613+9ec9f184.1.x86_64 已安装。
    软件包 libvirt-6.0.0-28.module_el8.3.0+555+a55c8938.x86_64 已安装。
    软件包 python3-libguestfs-1:1.40.2-25.module_el8.3.0+555+a55c8938.x86_64 已安装。
    软件包 libguestfs-tools-1:1.40.2-25.module_el8.3.0+555+a55c8938.noarch 已安装。
    软件包 supervisor-4.2.1-1.el8.noarch 已安装。
    软件包 cyrus-sasl-md5-2.1.27-5.el8.x86_64 已安装。
    软件包 epel-release-8-10.el8.noarch 已安装。
    依赖关系解决。
    无需任何处理。
    完毕!
  • INFO: Found function install_centos_post
    ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式
  • INFO: Running install_centos_post()
  • INFO: Found function daemons_running_centos
    ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式
  • INFO: Running daemons_running_centos()
    ^C
    [root@lclsvr8 webvirtcloud]# sudo supervisorctl status
    novncd RUNNING pid 3151, uptime 0:10:34
    webvirtcloud RUNNING pid 3152, uptime 0:10:34

but,login the web,I can't create computer

<!-- gh-comment-id:765475876 --> @ntlclxyc-198 commented on GitHub (Jan 22, 2021): I modify the script : ........ if [ "$DISTRO_MAJOR_VERSION" -lt 7 ]; then if [ -f /etc/supervisord.conf ]; then # curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/daemon/gstfsd > /usr/local/bin/gstfsd cp /srv/webvirtcloud/conf/daemon/gstfsd /usr/local/bin/gstfsd chmod +x /usr/local/bin/gstfsd # curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/supervisor/gstfsd.conf >> /etc/supervisor.conf cat /srv/webvirtcloud/conf/supervisor/gstfsd.conf >> /etc/supervisor.conf else echoerror "Supervisor not found. Exiting..." exit 1 fi else if [ -f /etc/supervisord.conf ]; then # curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/daemon/gstfsd > /usr/local/bin/gstfsd cp /srv/webvirtcloud/conf/daemon/gstfsd /usr/local/bin/gstfsd chmod +x /usr/local/bin/gstfsd # curl https://raw.githubusercontent.com/retspen/webvirtcloud/master/conf/supervisor/gstfsd.conf > /etc/supervisord.d/gstfsd.ini cat /srv/webvirtcloud/conf/supervisor/gstfsd.conf > /etc/supervisord.d/gstfsd.ini else echoerror "Supervisor not found. Exiting..." exit 1 fi fi return 0 } daemons_running_centos() { if [ -f /etc/init.d/libvirtd ]; then service libvirtd stop > /dev/null 2>&1 service libvirtd start fi ......... and execute "sudo sh ./dev/libvirt-bootstrap.sh",then show: [root@lclsvr8 webvirtcloud]# sudo sh ./dev/libvirt-bootstrap.sh * INFO: Found function install_centos ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式 * INFO: Running install_centos() Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository PowerTools is listed more than once in the configuration Repository AppStream is listed more than once in the configuration 上次元数据过期检查:0:03:53 前,执行于 2021年01月23日 星期六 06时49分37秒。 软件包 qemu-kvm-15:4.2.0-34.module_el8.3.0+613+9ec9f184.1.x86_64 已安装。 软件包 libvirt-6.0.0-28.module_el8.3.0+555+a55c8938.x86_64 已安装。 软件包 python3-libguestfs-1:1.40.2-25.module_el8.3.0+555+a55c8938.x86_64 已安装。 软件包 libguestfs-tools-1:1.40.2-25.module_el8.3.0+555+a55c8938.noarch 已安装。 软件包 supervisor-4.2.1-1.el8.noarch 已安装。 软件包 cyrus-sasl-md5-2.1.27-5.el8.x86_64 已安装。 软件包 epel-release-8-10.el8.noarch 已安装。 依赖关系解决。 无需任何处理。 完毕! * INFO: Found function install_centos_post ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式 * INFO: Running install_centos_post() * INFO: Found function daemons_running_centos ./dev/libvirt-bootstrap.sh: 第 48 行:[: : 需要整数表达式 * INFO: Running daemons_running_centos() ^C [root@lclsvr8 webvirtcloud]# sudo supervisorctl status novncd RUNNING pid 3151, uptime 0:10:34 webvirtcloud RUNNING pid 3152, uptime 0:10:34 but,login the web,I can't create computer
Author
Owner

@catborise commented on GitHub (Jan 22, 2021):

Did you install webvirtcloud on hypervisor host?
You can add host with TCP or ssh or socket.

if you install webvirtcloud on the host, Then you can add host with socket/localhost.
if you install to another place like on virtual machine/docker. You can add host with SSH or TCP.

you can look at to these topics: https://github.com/retspen/webvirtmgr/wiki

<!-- gh-comment-id:765515075 --> @catborise commented on GitHub (Jan 22, 2021): Did you install webvirtcloud on hypervisor host? You can add host with TCP or ssh or socket. if you install webvirtcloud on the host, Then you can add host with socket/localhost. if you install to another place like on virtual machine/docker. You can add host with SSH or TCP. you can look at to these topics: https://github.com/retspen/webvirtmgr/wiki
Author
Owner

@ntlclxyc-198 commented on GitHub (Jan 23, 2021):

Yes,I install webvirtcloud on hypervisor host,I add host with ssh ,but can't connect the host.

I have make it successful on version with python,but this version with python3 I Can't make it successfull

Those Articles base on on version with python,I don't find the version with python3
QQ浏览器截图20210123143638

<!-- gh-comment-id:765880100 --> @ntlclxyc-198 commented on GitHub (Jan 23, 2021): Yes,I install webvirtcloud on hypervisor host,I add host with ssh ,but can't connect the host. I have make it successful on version with python,but this version with python3 I Can't make it successfull Those Articles base on on version with python,I don't find the version with python3 ![QQ浏览器截图20210123143638](https://user-images.githubusercontent.com/57225375/105571559-cca2f100-5d8b-11eb-8b75-c9d1d2811068.png)
Author
Owner

@catborise commented on GitHub (Jan 23, 2021):

Check host logs and firewall settings. It is not related with python.
and check again libvirt service. “systemctl status libvirtd” to see some logs.

second option:
try to add host with localhost option(socket)

try to connect host with libvirt SSH interface.
virsh -c qemu+ssh://username@ip/system

<!-- gh-comment-id:765886418 --> @catborise commented on GitHub (Jan 23, 2021): Check host logs and firewall settings. It is not related with python. and check again libvirt service. “systemctl status libvirtd” to see some logs. second option: try to add host with localhost option(socket) try to connect host with libvirt SSH interface. virsh -c qemu+ssh://username@ip/system
Author
Owner

@ntlclxyc-198 commented on GitHub (Jan 24, 2021):

I try to make it on Centos 8.0 or 8.1 or 8.2 or 8.3,but only it is successfull on r Centos8.3,and only connection the host with ssh.It is failure with tcp. It shows "not connection". if I set "LIBVIRTD_ARGS="--listen"" In file "/etc/sysconfig/libvirtd", the libvirt service will not start。if Iremove this,the libvirt service can start。what's the reaon?

<!-- gh-comment-id:766282893 --> @ntlclxyc-198 commented on GitHub (Jan 24, 2021): I try to make it on Centos 8.0 or 8.1 or 8.2 or 8.3,but only it is successfull on r Centos8.3,and only connection the host with ssh.It is failure with tcp. It shows "not connection". if I set "LIBVIRTD_ARGS="--listen"" In file "/etc/sysconfig/libvirtd", the libvirt service will not start。if Iremove this,the libvirt service can start。what's the reaon?
Author
Owner

@ntlclxyc-198 commented on GitHub (Jan 24, 2021):

it show error:ibvirt 错误- 内部错误:无法找到适合 x86_64 的模拟器 on Centos 8.0 or 8.1 or 8.2.Can you tell me theCentos version of your test?

<!-- gh-comment-id:766283332 --> @ntlclxyc-198 commented on GitHub (Jan 24, 2021): it show error:ibvirt 错误- 内部错误:无法找到适合 x86_64 的模拟器 on Centos 8.0 or 8.1 or 8.2.Can you tell me theCentos version of your test?
Author
Owner

@catborise commented on GitHub (Jan 24, 2021):

Libvirt service must work with —listen parameter for some operations like migration
My prod working on oel8.3/8.2 (rhel clone) . Webvirtcloud is installed on a vm, because of some advantages .

cat /etc/sysconfig/libvirtd


# Override the default config file
# NOTE: This setting is no longer honoured if using
# systemd. Set '--config /etc/libvirt/libvirtd.conf'
# in LIBVIRTD_ARGS instead.
#LIBVIRTD_CONFIG=/etc/libvirt/libvirtd.conf

# Listen for TCP/IP connections
# NB. must setup TLS/SSL keys prior to using this
LIBVIRTD_ARGS="--listen"

# Override Kerberos service keytab for SASL/GSSAPI
#KRB5_KTNAME=/etc/libvirt/krb5.tab

# Override the QEMU/SDL default audio driver probing when
# starting virtual machines using SDL graphics
#
# NB these have no effect for VMs using VNC, unless vnc_allow_host_audio
# is enabled in /etc/libvirt/qemu.conf
#QEMU_AUDIO_DRV=sdl
#
#SDL_AUDIODRIVER=pulse

# Override the maximum number of opened files.
# This only works with traditional init scripts.
# In the systemd world, the limit can only be changed by overriding
# LimitNOFILE for libvirtd.service. To do that, just create a *.conf
# file in /etc/systemd/system/libvirtd.service.d/ (for example
# /etc/systemd/system/libvirtd.service.d/openfiles.conf) and write
# the following two lines in it:
#   [Service]
#   LimitNOFILE=2048
#
#LIBVIRTD_NOFILES_LIMIT=2048 

you should edit also sasl2 conf for tcp conn:

cat /etc/sasl2/libvirt.conf 


# If you want to use the non-TLS socket, then you *must* pick a
# mechanism which provides session encryption as well as
# authentication.
#
# If you are only using TLS, then you can turn on any mechanisms
# you like for authentication, because TLS provides the encryption
#
# If you are only using UNIX, sockets then encryption is not
# required at all.
#
# Since SASL is the default for the libvirtd non-TLS socket, we
# pick a strong mechanism by default.
#
# NB, previously DIGEST-MD5 was set as the default mechanism for
# libvirt. Per RFC 6331 this is vulnerable to many serious security
# flaws and should no longer be used. Thus GSSAPI is now the default.
#
# To use GSSAPI requires that a libvirtd service principal is
# added to the Kerberos server for each host running libvirtd.
# This principal needs to be exported to the keytab file listed below
#mech_list: digest-md5
mech_list: digest-md5

# If using a TLS socket or UNIX socket only, it is possible to
# enable plugins which don't provide session encryption. The
# 'scram-sha-1' plugin allows plain username/password authentication
# to be performed
#
#mech_list: scram-sha-1

#
# You can also list many mechanisms at once, then the user can choose
# by adding  '?auth=sasl.gssapi' to their libvirt URI, eg
#   qemu+tcp://hostname/system?auth=sasl.gssapi
#mech_list: scram-sha-1 gssapi

# Some older builds of MIT kerberos on Linux ignore this option &
# instead need KRB5_KTNAME env var.
# For modern Linux, and other OS, this should be sufficient
#
#keytab: /etc/libvirt/krb5.tab

# If using scram-sha-1 for username/passwds, then this is the file
# containing the passwds. Use 'saslpasswd2 -a libvirt [username]'
# to add entries, and 'sasldblistusers2 -f [sasldb_path]' to browse it
sasldb_path: /etc/libvirt/passwd.db 
<!-- gh-comment-id:766304908 --> @catborise commented on GitHub (Jan 24, 2021): Libvirt service must work with —listen parameter for some operations like migration My prod working on oel8.3/8.2 (rhel clone) . Webvirtcloud is installed on a vm, because of some advantages . ``` cat /etc/sysconfig/libvirtd # Override the default config file # NOTE: This setting is no longer honoured if using # systemd. Set '--config /etc/libvirt/libvirtd.conf' # in LIBVIRTD_ARGS instead. #LIBVIRTD_CONFIG=/etc/libvirt/libvirtd.conf # Listen for TCP/IP connections # NB. must setup TLS/SSL keys prior to using this LIBVIRTD_ARGS="--listen" # Override Kerberos service keytab for SASL/GSSAPI #KRB5_KTNAME=/etc/libvirt/krb5.tab # Override the QEMU/SDL default audio driver probing when # starting virtual machines using SDL graphics # # NB these have no effect for VMs using VNC, unless vnc_allow_host_audio # is enabled in /etc/libvirt/qemu.conf #QEMU_AUDIO_DRV=sdl # #SDL_AUDIODRIVER=pulse # Override the maximum number of opened files. # This only works with traditional init scripts. # In the systemd world, the limit can only be changed by overriding # LimitNOFILE for libvirtd.service. To do that, just create a *.conf # file in /etc/systemd/system/libvirtd.service.d/ (for example # /etc/systemd/system/libvirtd.service.d/openfiles.conf) and write # the following two lines in it: # [Service] # LimitNOFILE=2048 # #LIBVIRTD_NOFILES_LIMIT=2048 ``` you should edit also sasl2 conf for tcp conn: ``` cat /etc/sasl2/libvirt.conf # If you want to use the non-TLS socket, then you *must* pick a # mechanism which provides session encryption as well as # authentication. # # If you are only using TLS, then you can turn on any mechanisms # you like for authentication, because TLS provides the encryption # # If you are only using UNIX, sockets then encryption is not # required at all. # # Since SASL is the default for the libvirtd non-TLS socket, we # pick a strong mechanism by default. # # NB, previously DIGEST-MD5 was set as the default mechanism for # libvirt. Per RFC 6331 this is vulnerable to many serious security # flaws and should no longer be used. Thus GSSAPI is now the default. # # To use GSSAPI requires that a libvirtd service principal is # added to the Kerberos server for each host running libvirtd. # This principal needs to be exported to the keytab file listed below #mech_list: digest-md5 mech_list: digest-md5 # If using a TLS socket or UNIX socket only, it is possible to # enable plugins which don't provide session encryption. The # 'scram-sha-1' plugin allows plain username/password authentication # to be performed # #mech_list: scram-sha-1 # # You can also list many mechanisms at once, then the user can choose # by adding '?auth=sasl.gssapi' to their libvirt URI, eg # qemu+tcp://hostname/system?auth=sasl.gssapi #mech_list: scram-sha-1 gssapi # Some older builds of MIT kerberos on Linux ignore this option & # instead need KRB5_KTNAME env var. # For modern Linux, and other OS, this should be sufficient # #keytab: /etc/libvirt/krb5.tab # If using scram-sha-1 for username/passwds, then this is the file # containing the passwds. Use 'saslpasswd2 -a libvirt [username]' # to add entries, and 'sasldblistusers2 -f [sasldb_path]' to browse it sasldb_path: /etc/libvirt/passwd.db ```
Author
Owner

@catborise commented on GitHub (Jan 25, 2021):

with centos 8 libvirt deamons are changed.
you should look at the page: https://libvirt.org/manpages/libvirtd.html

<!-- gh-comment-id:766743530 --> @catborise commented on GitHub (Jan 25, 2021): with centos 8 libvirt deamons are changed. you should look at the page: https://libvirt.org/manpages/libvirtd.html
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#255
No description provided.