其他分享
首页 > 其他分享> > 使用cockpit管理服务器&&安装虚拟机&&使用os-tests

使用cockpit管理服务器&&安装虚拟机&&使用os-tests

作者:互联网

cockpit安装

使用yum install cockpit安装主要插件
使用yum install cockpit-machines安装虚拟机插件
使用yum install libvirt安装虚拟化组件
安装完后使用systemctl start cockpit.socket libvirtd启动服务

远程访问

浏览器输入ip:9090就可以登录,使用ssh帐号密码登录

虚拟机安装

先在服务器上非/root文件夹中下载镜像
新建虚拟机
启动
配置(注意这里需要把网卡打开,不然开机后没有网,需要用ifconfig查看网卡信息然后ifup <interface>启动网卡

使用os-tests

先用yum install python39安装python
然后pip3 install os-tests安装
然后直接运行
运行之后结果在/tmp文件夹内

或者从源码安装

#git clone https://github.com/liangxiao1/os-tests.git
#cd os-tests
#python3 setup.py install

标签:tests,&&,os,虚拟机,cockpit,install,安装
来源: https://blog.csdn.net/weixin_45120915/article/details/122241591