<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; KVM</title>
	<atom:link href="http://www.osyunwei.com/archives/category/framework/virtualization/kvm/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下使用KVM虚拟机制作系统镜像模板</title>
		<link>https://www.osyunwei.com/archives/16548.html</link>
		<comments>https://www.osyunwei.com/archives/16548.html#comments</comments>
		<pubDate>Tue, 15 Jul 2025 11:12:30 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[KVM]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16548</guid>
		<description><![CDATA[相关连接： 1、Rocky Linux 10.0下安装使用KVM虚拟机 2、Linux下使用KVM虚拟机安装Windows系统 在 KVM 虚拟化环境中，你可以将已经安装好的Linux虚拟机制作成系统镜像模板，供后续快速创建新虚拟机使用。 1、创建一个模板虚拟机 我们使用Rocky-10.0-x86_64-minimal.iso镜像来创建虚拟机 #创建虚拟机 virt-install \ --name rocky10 \ --vcpu 2 \ --memory 4096 \ --disk path=/data/libvirt/images/rocky10.qcow2,size=40,bus=virtio \ --cdrom /data/libvirt/iso/Rocky-10.0-x86_64-minimal.iso \ --network bridge=br0 \ --graphics vnc \ --os-variant rocky10 \ --noautoconsole #虚拟机创建完成后，我们进入web控制台安装系统，直到系统安装完成 2、登录模板虚拟机中进行操作 #模板虚拟机中安装cloud-init工具 #cloud-init工具是实现自动化配置的工具 yum install cloud-init cloud-utils-growpart #验证安装是否成功 rpm -qa &#124; grep cloud-init #查看版本 cloud-init -v [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16548.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16548.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下使用KVM虚拟机安装Windows系统</title>
		<link>https://www.osyunwei.com/archives/16495.html</link>
		<comments>https://www.osyunwei.com/archives/16495.html#comments</comments>
		<pubDate>Fri, 11 Jul 2025 08:45:47 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[KVM]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16495</guid>
		<description><![CDATA[相关连接：Rocky Linux 10.0下安装使用KVM虚拟机 简单介绍： 1、在KVM中安装Windows虚拟机时，必须加载virtio-win驱动才能识别virtio磁盘，否则会出现‌找不到驱动器错误。 2、virtio-win驱动下载地址： https://fedorapeople.org/groups/virt/virtio-win/ 3、Windows版本不同，需要的驱动也不一样，高版本的驱动有可能不支持低版本的Windows系统 4、我们安装Windows7和Windows Server 2025这两个操作系统为例来说明在KVM虚拟机安装Windows系统的基本步骤 5、win7适用的virtio-win驱动 https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.173-9/virtio-win-0.1.173.iso https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.173-9/virtio-win-gt-x64.msi 6、win2025适用的virtio-win驱动 https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.271-1/virtio-win-0.1.271.iso https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.271-1/virtio-win-gt-x64.msi 说明： virtio-win-0.1.173.iso和virtio-win-0.1.271.iso是安装Windows系统需要的磁盘驱动。 virtio-win-gt-x64.msi是在系统安装完成后，进入系统后安装的网卡等驱动程序。 具体操作： 1、上传Windows系统镜像文件到kvm存储池-存储卷 ssh连接到kvm宿主机，上传系统镜像和virtio-win镜像文件到/data/libvirt/iso目录 cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso zh-cn_windows_server_2025_updated_jan_2025_x64_dvd_7a8e5a29.iso virtio-win-0.1.173.iso virtio-win-0.1.271.iso 2、创建kvm虚拟机 2.1创建win7虚拟机 #在ssh命令行操作 virt-install \ --name win7-01 \ --vcpu 2 \ --memory 4096 \ --disk path=/data/libvirt/images/win7-01.qcow2,size=40,bus=virtio \ --cdrom /data/libvirt/iso/cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso \ --disk path=/data/libvirt/iso/virtio-win-0.1.173.iso,device=cdrom \ --network bridge=br0 \ --graphics vnc,port=5901 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16495.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16495.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rocky Linux 10.0下安装使用KVM虚拟机</title>
		<link>https://www.osyunwei.com/archives/16452.html</link>
		<comments>https://www.osyunwei.com/archives/16452.html#comments</comments>
		<pubDate>Wed, 09 Jul 2025 02:40:09 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[KVM]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16452</guid>
		<description><![CDATA[KVM虚拟机简介: Kernel-based Virtual Machine的简称，是一个开源的系统虚拟化模块，目前集成在Linux的各个主要发行版本中。 KVM的虚拟化需要硬件支持（如Intel VT技术或者AMD V技术)，是基于硬件的完全虚拟化。 Xen是基于硬件支持的完全虚拟化，但Xen本身有自己的进程调度器，存储管理模块等，所以代码较为庞大。 广为流传的商业系统虚拟化软件VMware ESX系列是基于软件模拟的Full-Virtualization。 系统安装部署：Rocky Linux 10.x系统安装配置图解教程 1、检查cpu是否支持虚拟化 1.1如果是在VMware虚拟机中安装，检查Intel VT设置 在VMware设置中将作为宿主机的Rocky Linux虚拟机的Intel VT或AMD-V功能打勾选中，开启VT虚拟化，才能在虚拟机中创建虚拟机 1.2用下列指令检查cpu是否支持vt： cat /proc/cpuinfo&#124;egrep 'vmx&#124;svm' grep -Ei 'vmx&#124;svm' /proc/cpuinfo 如果有出现vmx或者svm关键字就代表支持虚拟化，vmx代表Intel的CPU，svm代表AMD的CPU 2、关闭selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config setenforce 0 3、防火墙设置 #Rocky Linux默认使用的是firewall作为防火墙 #cockpit的web界面会调用系统默认的firewalld防火墙 #默认端口为9090，需放行该端口或cockpit服务才能远程访问‌ firewall-cmd --add-service=cockpit --permanent #永久放行服务 firewall-cmd --reload #重载配置 firewall-cmd --list-ports #检查已开放端口 firewall-cmd --list-all #显示所有规则（含服务、端口、区域） 4、修改主机名 方便区分宿主机和KVM虚拟化，建议修改宿主机的主机名称 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16452.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16452.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS-7.x下安装使用KVM虚拟机</title>
		<link>https://www.osyunwei.com/archives/13299.html</link>
		<comments>https://www.osyunwei.com/archives/13299.html#comments</comments>
		<pubDate>Fri, 24 Feb 2023 10:24:45 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[KVM]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13299</guid>
		<description><![CDATA[KVM虚拟机简介： Kernel-based Virtual Machine的简称，是一个开源的系统虚拟化模块，目前集成在Linux的各个主要发行版本中。 KVM的虚拟化需要硬件支持（如Intel VT技术或者AMD V技术)，是基于硬件的完全虚拟化。 Xen是基于硬件支持的完全虚拟化，但Xen本身有自己的进程调度器，存储管理模块等，所以代码较为庞大。 广为流传的商业系统虚拟化软件VMware ESX系列是基于软件模拟的Full-Virtualization。 1、检查cpu是否支持虚拟化 1.1如果是在VMware虚拟机中安装，检查Intel VT设置 在VMware设置中将作为宿主机的CentOS虚拟机的Intel VT或AMD-V功能打勾选中，开启VT虚拟化，才能在虚拟机中创建虚拟机。 1.2用下列指令检查cpu是否支持vt： cat /proc/cpuinfo&#124;egrep 'vmx&#124;svm' grep -Ei 'vmx&#124;svm' /proc/cpuinfo 如果有出现vmx或者svm关键字就代表支持虚拟化，vmx代表Intel的CPU，svm代表AMD的CPU 2、关闭selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config setenforce 0 3、防火墙设置 如果使用VNC管理KVM虚拟机，需要开启相应的端口，VNC端口默认是从5901开始 CentOS 7.x默认使用的是firewall作为防火墙，这里改为iptables防火墙。 3.1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 3.2、安装iptables防火墙 yum [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13299.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13299.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
