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

相关推荐
鸽芷咕9 分钟前
Rokid 手势识别技术深度解析:解锁 AR 无接触交互的核心秘密
linux
川石课堂软件测试17 分钟前
全链路Controller压测负载均衡
android·运维·开发语言·python·mysql·adb·负载均衡
一枚正在学习的小白24 分钟前
PG数据文件位置迁移
linux·运维·服务器·数据库
Tfly__38 分钟前
Ubuntu 20.04 安装Aerial Gym Simulator - 基于 Gym 的无人机强化学习仿真器
linux·人工智能·ubuntu·github·无人机·强化学习·运动规划
博睿谷IT99_1 小时前
Linux 云计算核心技术:原理、组件与 K8s 实战部署
linux·kubernetes·云计算
疯癫的老码农1 小时前
【Linux环境下安装】SpringBoot应用环境安装(二)-Redis安装
linux·spring boot·redis
点亮一颗LED(从入门到放弃)1 小时前
SQLite3数据库——Linux应用
linux·数据库·sqlite
我科绝伦(Huanhuan Zhou)2 小时前
Systemctl 与 Systemd 全面指南:Linux 系统服务管理详解
linux·服务器·网络
倔强的石头1062 小时前
【Linux指南】Linux命令行进度条实现原理解析
android·linux
---学无止境---2 小时前
Linux中setup_arch和setup_memory相关函数的实现
linux