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界面 新点击虚拟机,点击创建虚拟机

相关推荐
Sheffield6 小时前
Alpine是什么,为什么是Docker首选?
linux·docker·容器
舒一笑1 天前
程序员效率神器:一文掌握 tmux(服务器开发必备工具)
运维·后端·程序员
Johny_Zhao1 天前
centos7安装部署openclaw
linux·人工智能·信息安全·云计算·yum源·系统运维·openclaw
haibindev1 天前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑
linux·wsl2·openclaw
NineData1 天前
数据库管理工具NineData,一年进化成为数万+开发者的首选数据库工具?
运维·数据结构·数据库
梦想很大很大2 天前
拒绝“盲猜式”调优:在 Go Gin 项目中落地 OpenTelemetry 链路追踪
运维·后端·go
Sinclair2 天前
内网服务器离线安装 Nginx+PHP+MySQL 的方法
运维
叶落阁主2 天前
Tailscale 完全指南:从入门到私有 DERP 部署
运维·安全·远程工作
0xDevNull2 天前
Linux切换JDK版本详细教程
linux