<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>KVM - Tag - Mulinux | Linux &amp; DevOps Notes</title>
    <link>https://blog.mulinux.com/en/tags/kvm/</link>
    <description>Mulinux - Linux Operations &amp; DevOps blog. Notes on Linux, Kubernetes, Docker and backend engineering.</description>
    <generator>Hugo 0.160.0 &amp; FixIt v0.4.5</generator>
    <language>en</language>
    <lastBuildDate>Wed, 16 Dec 2020 11:23:23 +0800</lastBuildDate>
    <atom:link href="https://blog.mulinux.com/en/tags/kvm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Kvm Windows时间异常问题</title>
      <link>https://blog.mulinux.com/en/kvm-windows%E6%97%B6%E9%97%B4%E5%BC%82%E5%B8%B8%E9%97%AE%E9%A2%98/</link>
      <pubDate>Wed, 16 Dec 2020 11:23:23 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/kvm-windows%E6%97%B6%E9%97%B4%E5%BC%82%E5%B8%B8%E9%97%AE%E9%A2%98/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;kvm-xml配置&#34;&gt;&lt;span&gt;KVM xml配置&lt;/span&gt;&#xA;  &lt;a href=&#34;#kvm-xml%e9%85%8d%e7%bd%ae&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;clock offset=&amp;#39;localtime&amp;#39;&amp;gt;&#xA;  &amp;lt;timer name=&amp;#39;rtc&amp;#39; tickpolicy=&amp;#39;catchup&amp;#39; track=&amp;#39;guest&amp;#39;/&amp;gt;&#xA;  &amp;lt;timer name=&amp;#39;pit&amp;#39; tickpolicy=&amp;#39;delay&amp;#39;/&amp;gt;&#xA;  &amp;lt;timer name=&amp;#39;hpet&amp;#39; present=&amp;#39;no&amp;#39;/&amp;gt;&#xA;&amp;lt;/clock&amp;gt;&#xA;&#xA;or&#xA;&#xA;&amp;lt;clock offset=&amp;#39;timezone&amp;#39; timezone=&amp;#39;Asia/Shanghai&amp;#39;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;windows服务器配置&#34;&gt;&lt;span&gt;Windows服务器配置&lt;/span&gt;&#xA;  &lt;a href=&#34;#windows%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%85%8d%e7%bd%ae&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;bcdedit /set USEPLATFORMCLOCK on #设置&#xA;bcdedit /enum #查看是否生效&#xA;bcdedit / deletevalue useplatformclock #取消配置&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Kvm QGA(Qemu Guest Agent)部署</title>
      <link>https://blog.mulinux.com/en/kvm-qemu-guest-agent/</link>
      <pubDate>Tue, 11 Aug 2020 09:33:46 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/kvm-qemu-guest-agent/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h1 class=&#34;heading-element&#34; id=&#34;解决问题&#34;&gt;&lt;span&gt;解决问题&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e8%a7%a3%e5%86%b3%e9%97%ae%e9%a2%98&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&lt;p&gt;重置KVM虚拟机密码&lt;/p&gt;</description>
    </item>
    <item>
      <title>通过进程恢复kvm qcow2文件</title>
      <link>https://blog.mulinux.com/en/kvm-process-restore-qcow2/</link>
      <pubDate>Mon, 15 Jun 2020 09:51:09 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/kvm-process-restore-qcow2/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;删除镜像与配置文件&#34;&gt;&lt;span&gt;删除镜像与配置文件&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%88%a0%e9%99%a4%e9%95%9c%e5%83%8f%e4%b8%8e%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;virsh undefine TEST&#xA;rm -f /home/images/TEST.qcow2&lt;/code&gt;&lt;/pre&gt;&lt;img src=&#34;https://cdn.jsdelivr.net/gh/jiuchan/pic1.blog.mulinux.com/img/image-20200615095204075.png&#34; alt=&#34;image-20200615095204075&#34; style=&#34;zoom:150%;&#34; /&gt;&#xA;&lt;img src=&#34;https://cdn.jsdelivr.net/gh/jiuchan/pic1.blog.mulinux.com/img/image-20200615095236340.png&#34; alt=&#34;image-20200615095236340&#34; style=&#34;zoom:150%;&#34; /&gt;&#xA;&lt;h2 class=&#34;heading-element&#34; id=&#34;查找进程并记录进程号uuidmac&#34;&gt;&lt;span&gt;查找进程并记录进程号、uuid、mac&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e6%9f%a5%e6%89%be%e8%bf%9b%e7%a8%8b%e5%b9%b6%e8%ae%b0%e5%bd%95%e8%bf%9b%e7%a8%8b%e5%8f%b7uuidmac&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;ps aux |grep TEST.qcow2&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#39;https://cdn.jsdelivr.net/gh/jiuchan/pic1.blog.mulinux.com/img/image-20200615095502171.png&#39; alt=&#34;image-20200615095502171&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>KVM-libvirt编译升级后回退问题记录(&#39;LIBVIRT_PRIVATE_0.10.2&#39; not found)</title>
      <link>https://blog.mulinux.com/en/kvm-libvirt-%E7%BC%96%E8%AF%91%E5%8D%87%E7%BA%A7%E6%81%A2%E5%A4%8D%E5%8E%9F%E7%89%88%E6%9C%AC/</link>
      <pubDate>Sun, 26 Apr 2020 09:51:09 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/kvm-libvirt-%E7%BC%96%E8%AF%91%E5%8D%87%E7%BA%A7%E6%81%A2%E5%A4%8D%E5%8E%9F%E7%89%88%E6%9C%AC/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;问题说明&#34;&gt;&lt;span&gt;问题说明&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e9%97%ae%e9%a2%98%e8%af%b4%e6%98%8e&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;物理机libvirt版本编译升级至高版本，回退到旧版本后出现报错，如下图&lt;/p&gt;</description>
    </item>
    <item>
      <title>Use Kvm</title>
      <link>https://blog.mulinux.com/en/use-kvm/</link>
      <pubDate>Mon, 23 Dec 2019 11:26:11 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/use-kvm/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;centos6部署kvm&#34;&gt;&lt;span&gt;CentOS6部署kvm&lt;/span&gt;&#xA;  &lt;a href=&#34;#centos6%e9%83%a8%e7%bd%b2kvm&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;h3 class=&#34;heading-element&#34; id=&#34;安装&#34;&gt;&lt;span&gt;安装&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%ae%89%e8%a3%85&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;yum install -y qemu-kvm.x86_64 qemu-kvm-tools.x86_64 python-virtinst.noarch qemu-img.x86_64 bridge-utils.x86_64 libvirt virt-manager yum -y groupinstall &amp;#34;desktop&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;h3 class=&#34;heading-element&#34; id=&#34;桥接网卡&#34;&gt;&lt;span&gt;桥接网卡&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e6%a1%a5%e6%8e%a5%e7%bd%91%e5%8d%a1&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;[root@KVM-PM ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 &#xA;DEVICE=eth0&#xA;#HWADDR=52:54:00:57:40:40&#xA;TYPE=Ethernet&#xA;#UUID=fe15211b-a8fd-4497-9359-d57c792ff8e2&#xA;ONBOOT=yes&#xA;NM_CONTROLLED=no&#xA;BOOTPROTO=static&#xA;IPADDR=172.16.1.11&#xA;NETMASK=255.255.0.0&#xA;BRIDGE=&amp;#34;br0&amp;#34;&#xA;[root@KVM-PM ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 &#xA;DEVICE=br0&#xA;TYPE=Bridge&#xA;ONBOOT=yes&#xA;NM_CONTROLLED=no&#xA;BOOTPROTO=static&#xA;IPADDR=192.168.168.110&#xA;NETMASK=255.255.255.0&#xA;GATEWAY=192.168.168.1&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;centos7部署kvm&#34;&gt;&lt;span&gt;CentOS7部署KVM&lt;/span&gt;&#xA;  &lt;a href=&#34;#centos7%e9%83%a8%e7%bd%b2kvm&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;yum groupinstall &amp;#34;fonts&amp;#34; &amp;#34;compat-libraries&amp;#34; &amp;#34;core&amp;#34; &amp;#34;development&amp;#34; &amp;#34;guest-agents&amp;#34; &amp;#34;virtualization-client&amp;#34; &amp;#34;virtualization-platform&amp;#34; &amp;#34;virtualization-tools&amp;#34;&#xA;yum install qemu-kvm python-virtinst virt-manager virt-top virt-viewer libvirt libvirt-client libvirt-python libguestfs-tools virt-install qemu-kvm-tools bridge-utils wget net-tools dejavu-lgc-sans-fonts xorg-x11-xauth xorg-x11-xinit xorg-x11-server-utils xorg-x11-font-utils xorg-x11-drv-ati-firmware&#xA;yum install virt-manager&#xA;yum install libvirt&#xA;yum info libvirtd&#xA;yum info libvirt&#xA;yum install qemu-kvm&#xA;yum install qemu-kvm-tools&#xA;service libvirtd start&#xA;systemctl start  libvirtd.service&#xA;systemctl enable  libvirtd.service&#xA;yum install xorg-x11-xauth&#xA;yum install xorg-x11-xauth xorg-x11-xinit xorg-x11-server-utils xorg-x11-font-utils xorg-x11-drv-ati-firmware&#xA;virt-manager&#xA;yum install dejavu-lgc-sans-fonts&#xA;yum install qemu-kvm libvirt virt-install bridge-utils&#xA;lsmod|grep kvm&#xA;brctl show&#xA;route&#xA;ip addr&#xA;yum install -y wget&#xA;yum install -y net-tools&#xA;cd /usr/local/src/&#xA;wget https://fedorapeople.org/groups/virt/virtio-win/virtio-win.repo -O /etc/yum.repos.d/virtio-win.repo&#xA;yum install -y virtio-win&#xA;virt-manager&lt;/code&gt;&lt;/pre&gt;&lt;h3 class=&#34;heading-element&#34; id=&#34;桥接网卡-1&#34;&gt;&lt;span&gt;桥接网卡&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e6%a1%a5%e6%8e%a5%e7%bd%91%e5%8d%a1-1&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;[root@a43sv ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp5s0 &#xA;TYPE=Ethernet&#xA;BOOTPROTO=static&#xA;DEFROUTE=yes&#xA;PEERDNS=yes&#xA;PEERROUTES=yes&#xA;IPV4_FAILURE_FATAL=no&#xA;IPV6INIT=yes&#xA;IPV6_AUTOCONF=yes&#xA;IPV6_DEFROUTE=yes&#xA;IPV6_PEERDNS=yes&#xA;IPV6_PEERROUTES=yes&#xA;IPV6_FAILURE_FATAL=no&#xA;NAME=enp5s0&#xA;UUID=557dfc61-71cf-4d38-86b3-2f135f862e54&#xA;DEVICE=enp5s0&#xA;ONBOOT=yes&#xA;BRIDGE=br0&#xA;[root@a43sv ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 &#xA;DEVICE=br0&#xA;TYPE=&amp;#34;Bridge&amp;#34;&#xA;BOOTPROTO=&amp;#34;static&amp;#34;&#xA;ONBOOT=&amp;#34;yes&amp;#34;&#xA;DELAY=&amp;#34;0&amp;#34;&#xA;STP=&amp;#34;yes&amp;#34;&#xA;IPADDR=192.168.168.76&#xA;NETMASK=255.255.255.0&#xA;GATEWAY=192.168.168.1&#xA;DNS1=114.114.114.114&#xA;DNS2=129.29.29.29&#xA;NM_CONTROLLED=no&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;命令行创建windows2016&#34;&gt;&lt;span&gt;命令行创建windows2016&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%88%9b%e5%bb%bawindows2016&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;virt-install \&#xA;--name w2k16 \&#xA;--os-type=windows \&#xA;--ram=2048 --vcpus=2 \&#xA;--disk /home/images/w2k16.qcow2,bus=virtio,size=50 \&#xA;--disk /home/images/virtio-win-0.1.171_amd64.vfd,device=floppy \&#xA;--cdrom=/home/images/cn_windows_server_2016_x64_dvd_9718765.iso \&#xA;--network bridge=br0,model=virtio \&#xA;--virt-type kvm&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;收缩镜像&#34;&gt;&lt;span&gt;收缩镜像&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e6%94%b6%e7%bc%a9%e9%95%9c%e5%83%8f&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;qemu-img convert -c -O qcow2 test.qcow2 test2.qcow2 # test2.qcow2是目标镜像&#xA;qemu-img convert -O qcow2 windows.qcow2 windows_new.qcow2&#xA;virt-sparsify --compress /tmp/centos.qcow2 centos-new.qcow2&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;清除网络相关硬件生成信息&#34;&gt;&lt;span&gt;清除网络相关硬件生成信息&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e6%b8%85%e9%99%a4%e7%bd%91%e7%bb%9c%e7%9b%b8%e5%85%b3%e7%a1%ac%e4%bb%b6%e7%94%9f%e6%88%90%e4%bf%a1%e6%81%af&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;virt-sysprep -d centos7&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Deepin安装使用KVM</title>
      <link>https://blog.mulinux.com/en/deepin-kvm/</link>
      <pubDate>Wed, 21 Nov 2018 11:20:19 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/deepin-kvm/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;安装&#34;&gt;&lt;span&gt;安装&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%ae%89%e8%a3%85&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;sudo apt-get install kvm qtemu ##安装kvm和qt前端&#xA;apt install qemu-kvm libvirt-clients qemu-utils libvirt-daemon-system    # deepin 15.8&#xA;sudo apt-get install qemu-system    #deepin 15.8&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;卸载&#34;&gt;&lt;span&gt;卸载&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%8d%b8%e8%bd%bd&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;sudo apt-get remove kvm qtemu ##卸载kvm和qt前端&#xA;apt-get install libvirt-bin virt-manager ##工作常用工具&lt;/code&gt;&lt;/pre&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;ovf-to-qcow2&#34;&gt;&lt;span&gt;ovf to qcow2&lt;/span&gt;&#xA;  &lt;a href=&#34;#ovf-to-qcow2&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;sudo apt-get install qemu-utils&#xA;qemu-img convert -O qcow2 input.vmdk output.qcow2&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>CentOS6/7开启nested嵌套虚拟化</title>
      <link>https://blog.mulinux.com/en/kvm-enable-nested/</link>
      <pubDate>Sat, 06 Oct 2018 14:25:16 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/kvm-enable-nested/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h1 class=&#34;heading-element&#34; id=&#34;启用nested&#34;&gt;&lt;span&gt;启用nested&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%90%af%e7%94%a8nested&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h1&gt;&lt;h2 class=&#34;heading-element&#34; id=&#34;centos6&#34;&gt;&lt;span&gt;CentOS6&lt;/span&gt;&#xA;  &lt;a href=&#34;#centos6&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;升级系统内核到Linux 3.X版本&#xA;rpm -ivh kernel-ml-3.18.3-1.el6.elrepo.x86_64.rpm&#xA;修改grub.conf&#xA;vi /etc/grub.conf&#xA;将default=1改为default=0；且在 kernel 那一行的末端加上 &amp;ldquo;kvm-intel.nested=1&amp;rdquo;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
