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界面  

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

相关推荐

  1. kvm 虚拟

    2024-02-18 15:38:02       30 阅读
  2. Linux虚拟————KVM

    2024-02-18 15:38:02       14 阅读
  3. ubuntu服务器上安装KVM虚拟

    2024-02-18 15:38:02       33 阅读
  4. webvirtcloud:kvm虚拟管理平台

    2024-02-18 15:38:02       19 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-02-18 15:38:02       17 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-18 15:38:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-18 15:38:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-18 15:38:02       18 阅读

热门阅读

  1. Leetcode29:两数相除

    2024-02-18 15:38:02       26 阅读
  2. 华为OD机试真题- 攀登者2-2024年OD统一考试(C卷)

    2024-02-18 15:38:02       28 阅读
  3. C语言之输入字符串的字符统计

    2024-02-18 15:38:02       32 阅读
  4. css的对齐方式

    2024-02-18 15:38:02       35 阅读
  5. 汇编+C语言实现四路抢答器的分析与运行过程

    2024-02-18 15:38:02       27 阅读
  6. Rust HashMap详解及单词统计示例

    2024-02-18 15:38:02       20 阅读
  7. 【SQL】sql记录

    2024-02-18 15:38:02       31 阅读
  8. CSS的伪类选择器:nth-child()

    2024-02-18 15:38:02       33 阅读