webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

Help! Install webvirtcloud Error on Centos 8.2

Open ntlclxyc-198 opened this issue 4 years ago • 12 comments

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?

ntlclxyc-198 avatar Jan 21 '21 14:01 ntlclxyc-198

The error is :

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

ntlclxyc-198 avatar Jan 21 '21 23:01 ntlclxyc-198

Please add epel repo and try again

catborise avatar Jan 22 '21 09:01 catborise

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]#

ntlclxyc-198 avatar Jan 22 '21 11:01 ntlclxyc-198

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.

catborise avatar Jan 22 '21 12:01 catborise

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

ntlclxyc-198 avatar Jan 22 '21 15:01 ntlclxyc-198

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

catborise avatar Jan 22 '21 16:01 catborise

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

ntlclxyc-198 avatar Jan 23 '21 07:01 ntlclxyc-198

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

catborise avatar Jan 23 '21 08:01 catborise

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?

ntlclxyc-198 avatar Jan 24 '21 03:01 ntlclxyc-198

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?

ntlclxyc-198 avatar Jan 24 '21 03:01 ntlclxyc-198

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 

catborise avatar Jan 24 '21 07:01 catborise

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

catborise avatar Jan 25 '21 11:01 catborise