通过Cockpit管理KVM虚拟机
安装kvm虚拟化套件(无gui)
https://blog.youkuaiyun.com/omaidb/article/details/128792106
安装cockpit控制面板
# 安装Cockpit及所需模块
yum -y install cockpit
## cockpit-machines是管理虚拟机的模块
yum -y install cockpit-machines
# 安装必须模块
## cockpit-dashboard是仪表盘模块
## cockpit-storaged是存储管理的模块
## cockpit-networkmanager是网络管理模块
## cockpit-packagekit是软件更新和应用程序安装模块(通常默认安装)
## cockpit-pcp是持久和更细粒度的性能数据(根据需要从UI安装)
yum -y install cockpit-dashboard cockpit-storaged cockpit-networkmanager cockpit-packagekit cockpit-pcp
防火墙放行cockpit服务
#防火墙放行cockpit
firewall-cmd -–add-service=cockpit
firewall-cmd -–add-service=cockpit --per
启动cockpit服务
#设置开机自启服务并现在启动
systemctl enable --now cockpit.socket
#查看端口是否启动
ss -nltp | grep 9090
浏览器访问Cockpit
下一步是在管理机上打开Web浏览器, cockpit使用9090
端口;
然后使用操作系统
的root
账号登录