kimchi – kvm虚拟机网页管理
参考:
https://mangolassi.it/topic/15882/kimchi-kvm-updated-and-better-and-easy-guide-for-kvm-beginners
https://wiki2.xbits.net:4430/virtualization:kvm:kimchi
什么是Wok?
Wok基于cherrypy的web框架,可以通过一些插件来进行扩展,例如:虚拟化管理、主机管理、系统管理。它可以在任何支持HTML5的网页浏览器中运行。
什么是Kimchi?
Kimchi是一个基于HTML5的KVM管理工具,是Wok的一个插件(使用Kimchi前一定要先安装了wok),通过Kimchi可以更方便的管理KVM。
这里使用kimchi和wok。
kimchi和wok在github上的网址:https://github.com/kimchi-project
安装配置
系统环境:CentOS 7.6
#关闭:防火墙
systemctl stop firewalld
systemctl disable firewalld
#关闭网络自动管理
systemctl stop NetworkManager
#关闭:selinux
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
设置后需要重启才能生效
安装依赖
yum -y install python-websockify python-jsonschema nginx python-psutil
安装KVM虚拟机
yum groupinstall Virtualization "Virtualization Platform" "Virtualization Tools" -y
安装wok
wget https://github.com/kimchi-project/wok/releases/download/2.5.0/wok-2.5.0-0.el7.centos.noarch.rpm
yum install wok-2.5.0-0.el7.centos.noarch.rpm
安装kimchi
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/kimchi-2.5.0-0.el7.centos.noarch.rpm
yum install kimchi-2.5.0-0.el7.centos.noarch.rpm
启动wokd服务(启动wokd时,nginx也会同时启动)
systemctl daemon-reload
systemctl start wokd
systemctl enable wokd
此时访问https://IP:8001即可看到登录页面,此登录的帐号密码为当前系统的帐号密码