[运维] 在CentOS8安装部署kimchi

系统环境说明

系统:CentOS-8.2.2004
平台:x86-64

使用到的工具安装

  1. git安装
dnf install git

软件下载

采用编译安装,源代码获取

# 使用gitee加速获取源代码
git clone https://gitee.com/mirrors/kimchi.git
# github上获取源代码
git clone https://github.com/kimchi-project/kimchi.git

依赖安装

  1. kimchiwok的插件,需要先安装wok,安装方法见[运维] 在CentOS8安装部署wok
  2. 其他运行依赖安装
dnf install libvirt libvirt-devel
pip3 install libvirt-python distro python-magic paramiko Image ipaddr

kimchi安装

cd kimchi
git checkout 3.0.0
./autogen.sh --system --with-spice-html5 --with-spice-web-client
make
make install 

kimchi配置noVNC

kimchi配置noVNCkimchi配置noVNC

启用开发模式调试

python3 /bin/wokd --environment=dev

常见问题

编译错误

  1. 报错信息如下
aclocal: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4'
configure.ac:54: error: required file 'build-aux/compile' not found
configure.ac:54:   'automake --add-missing' can install 'compile'
configure.ac:54: error: required file 'build-aux/config.guess' not found
configure.ac:54:   'automake --add-missing' can install 'config.guess'
configure.ac:54: error: required file 'build-aux/config.sub' not found
configure.ac:54:   'automake --add-missing' can install 'config.sub'

解决办法

automake --add-missing

运行错误

  1. 报错信息如下
Failed to import plugin wok.plugins.kimchi.Kimchi, error: Class wok.plugins.kimchi.Kimchi can not be imported, error: No module named 'libvirt'

解决办法:安装过程出现报错,处理办法见python常见错误处理[CentOS8系统]

pip3 install libvirt-python
  1. 报错信息如下
Failed to import plugin wok.plugins.kimchi.Kimchi, error: Class wok.plugins.kimchi.Kimchi can not be imported, error: No module named 'distro'

解决办法:

pip3 install distro
  1. 报错信息如下
Failed to import plugin wok.plugins.kimchi.Kimchi, error: Class wok.plugins.kimchi.Kimchi can not be imported, error: No module named 'magic'

解决办法:

pip3 install python-magic
  1. 报错信息如下
Failed to import plugin wok.plugins.kimchi.Kimchi, error: Class wok.plugins.kimchi.Kimchi can not be imported, error: No module named 'paramiko'

解决办法:

pip3 install paramiko
  1. 报错信息如下
Failed to import plugin wok.plugins.kimchi.Kimchi, error: Class wok.plugins.kimchi.Kimchi can not be imported, error: No module named 'Image'

解决办法:

pip3 install Image
  1. 报错信息如下
Failed to import plugin wok.plugins.kimchi.Kimchi, error: No module named 'ipaddr'

解决办法:

pip3 install ipaddr

猜你喜欢

转载自blog.csdn.net/macaiyun0629/article/details/109001163