kvm 虚拟化

模拟的服务器硬件

CPU: 8核

内存:8G

硬盘:128G

服务器硬件支持虚拟化(CPU支持)

下载 cockpit

yum -y install cockpit

yum install qemu-kvm libvirt libvirt-daemon virt-install virt-manager libvirt-dbus

systemctl start libvirtd.service

设置开机自启动

systemctl enable --now cockpit.socket

添加镜像到虚拟机的根目录下

root@localhost \~# ll

总用量 9840644

-rw-------. 1 root root 1044 2月 17 15:07 anaconda-ks.cfg

-rwx------. 1 root root 10076815360 2月 17 16:38 CentOS-Stream-9-latest-x86_64-dvd1.iso

chown -R root CentOS-Stream-9-latest-x86_64-dvd1.iso

chmod 700 CentOS-Stream-9-latest-x86_64-dvd1.iso

vim /etc/cockpit/disallowed-users

root@localhost \~# cat /etc/cockpit/disallowed-users

List of users which are not allowed to login to Cockpit

#root
下载管理虚拟机的插件

修改/etc/libvirt/qemu.conf的配置文件

vim /etc/libvirt/qemu.conf

修改user group 为root

systemctl restart libvirtd.service

刷新Cockpit的Web界面

新点击虚拟机,点击创建虚拟机

相关推荐
像风一样自由20205 小时前
52.Docker部署大模型应用从本地开发到服务化运行
运维·人工智能·docker·容器·大模型·智能体
sxgzzn5 小时前
如何利用电缆故障定位在线监测系统提升供电安全?
运维·重构·无人机·开关柜局放在线监测·gis局放在线监测
曦夜日长5 小时前
Git系统篇,Git本地使用(一):从“究极进化版“到三个区域的底层原理
大数据·linux·git·elasticsearch
mengchanmian5 小时前
VSFTP 服务器搭建(Centos)
运维·服务器·centos
shimly1234566 小时前
给断网无 sudo ubuntu22.04 机器安装 nodejs
linux
别动我齐刘海7 小时前
Linux 系统调试学习1
linux·运维·服务器·c++·学习·机器学习·机器人
Lsetea7 小时前
OpenSSL报certificate chain too long:error 22与verify_depth深度排查
linux·https·ssl证书·openssl·证书链
不像程序员的程序媛8 小时前
linux常见文本操作命令
linux·运维·服务器
wangbing11259 小时前
开发指南149-IotDB-常用命令
linux·运维·iotdb
Dovis(誓平步青云)9 小时前
常用命令藏得太深?怎么做一个快捷命令坞
运维·前端·自动化·音视频·prometheus