当前位置: 首页 > news >正文

详细介绍:麒麟v10服务器安装libvirt

依赖安装

yum install -y qemu-kvm libvirt libvirt-daemon libvirt-daemon-config-network virt-install bridge-utils virt-manager libguestfs-tools xorg-x11-xauth

virt-manager 的配置

这步要打开新的ssh连接页面才会生效

vim /etc/ssh/sshd_config
X11Forwarding yes
systemctl restart sshd

打开新的连接面板,就可使用

virt-manager

检查安装结果

virsh version

根据库编译:libvirt 6.2.0
使用库:libvirt 6.2.0
使用的 API: QEMU 6.2.0
运行管理程序: QEMU 4.1.0

用linux.xml

<domain type='kvm'>
<name>linux-1</name>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>2</vcpu><os><type arch='x86_64' machine='pc-q35-4.1'>hvm</type><boot dev='cdrom'/></os><cpu mode='custom' match='exact' check='none'><model fallback='forbid'>qemu64</model></cpu><clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash><devices><emulator>/usr/bin/qemu-kvm</emulator><disk type='file' device='disk'><driver name='qemu' type='qcow2'/><source file='/var/lib/libvirt/images/linux.qcow2'/><target dev='vda' bus='virtio'/><address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
http://www.gsyq.cn/news/10149.html

相关文章:

  • 9.23 资料分析 7/10
  • VMware ESXi 磁盘置备类型详解
  • HWiNFO 硬件信息检测工具下载与安装教程
  • 西电PCB设计指南1~2章学习笔记
  • 逆向分析之switch语句
  • 搭建Python的运行开发环境
  • 【HBase 原理操作 01】
  • 打破数据壁垒,DMS Data Agent 开启智能分析之旅
  • 光隔离探头技术解析:高电压测量的安全革命​​
  • 从缺陷管理到质量协作:现代Bug工具的范式升级
  • 螺旋矩阵-leetcode
  • 完整教程:2020年_408统考_数据结构41题
  • Gitee本土化创新实践:中国企业研发效能提升的新引擎
  • 详细介绍:nvm使用和node使用
  • Markdown的基本语法
  • containerd离线安装
  • Python3 urllib 详解
  • WCF-双工通讯
  • 跨网文件安全交换系统:打破数据壁垒的高效之选!
  • 【F#学习】可区分联合 Discriminated Unions
  • 大环境不好,这几个赚钱网站可以试试
  • Model Context Protocol (MCP) 完整协议流程详解
  • C#和Lua相互访问 - 详解
  • jemter 安装
  • Day20创建对象内存分析
  • 熬夜三天!SpringCloud Gateway 动态路由失效,背后黑手竟是它……
  • cmd 执行git bash 命令
  • 基于Python+Vue开发的新闻管理系统源码+运行步骤
  • Spring框架中的注解主要有哪些
  • 探索 12 种 3D 文件格式:综合指南