﻿{"id":2461,"date":"2022-09-08T16:28:16","date_gmt":"2022-09-08T08:28:16","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=2461"},"modified":"2023-08-03T09:42:06","modified_gmt":"2023-08-03T01:42:06","slug":"kvm%e9%87%8c%e7%9a%84%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%a1%ac%e7%9b%98%e5%92%8c%e7%bd%91%e5%8d%a1%e4%bd%bf%e7%94%a8virtio%e9%a9%b1%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/linux\/2461","title":{"rendered":"kvm\u91cc\u7684\u865a\u62df\u673a\u786c\u76d8\u548c\u7f51\u5361\u4f7f\u7528virtio\u9a71\u52a8"},"content":{"rendered":"<p>1.\u9996\u5148\u4ece\u865a\u62df\u673a\u7684xml\u6587\u4ef6\u4e2d\u627e\u5230\u5df2\u7ecf\u4f7f\u7528virtio\u9a71\u52a8\u7684\u786c\u4ef6\uff0c\u590d\u5236\u91cc\u9762\u7684address\u8fd9\u884c\u53c2\u6570\u51fa\u6765<\/p>\n<pre><code class=\"hljs bash\">&lt;address &lt;span class=&quot;hljs-built_in&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;'pci'&lt;\/span&gt; domain=&lt;span class=&quot;hljs-string&quot;&gt;'0x0000'&lt;\/span&gt; bus=&lt;span class=&quot;hljs-string&quot;&gt;'0x00'&lt;\/span&gt; slot=&lt;span class=&quot;hljs-string&quot;&gt;'0x07'&lt;\/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;function&lt;\/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;'0x0'&lt;\/span&gt;\/&gt;\n<\/code><\/pre>\n<p>\u8bf4\u660e\uff1a\u8fd9\u91cc\u9762\u7684slot\u53c2\u6570\u662f\u9700\u8981\u4fee\u6539\u7684\uff0c\u4e0d\u80fd\u91cd\u590d<\/p>\n<p>\u56e0\u6b64\u786c\u76d8slot\u4f7f\u7528<code>0x08<\/code>,\u7f51\u5361\u4f7f\u7528<code>0x09<\/code><\/p>\n<p>2.\u627e\u5230\u786c\u76d8\u7684\u914d\u7f6e\u5185\u5bb9\u6240\u5728<\/p>\n<pre><code class=\"hljs xml\">    &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;disk&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'file'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;device&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'disk'&lt;\/span&gt;&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;driver&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;name&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'qemu'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'qcow2'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;source&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;file&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'\/home\/kvm\/generic.qcow2'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;target&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;dev&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'hda'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;bus&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'ide'&lt;\/span&gt;\/&gt;&lt;\/span&gt; # \u6362\u6210virtio \n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;address&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'drive'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;controller&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;bus&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;target&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;unit&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0'&lt;\/span&gt;\/&gt;&lt;\/span&gt; # \u8fd9\u884c\u6362\u6210\u8fd9\u4e2a\uff1a&lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;address&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'pci'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;domain&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0000'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;bus&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x00'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;slot&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x08'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;function&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n    &lt;span class=&quot;hljs-tag&quot;&gt;&lt;\/&lt;span class=&quot;hljs-title&quot;&gt;disk&lt;\/span&gt;&gt;&lt;\/span&gt;\n<\/code><\/pre>\n<p>3.\u627e\u5230\u7f51\u5361\u7684\u914d\u7f6e\u5185\u5bb9\u6240\u5728<\/p>\n<p>\u6ca1\u6709\u5207\u6362\u4f7f\u7528\u6865\u63a5\u7f51\u7edc\u7684\u914d\u7f6e\uff0c\u9ed8\u8ba4\u7684NAT\u914d\u7f6e<\/p>\n<pre><code class=\"hljs xml\">    &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;interface&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'network'&lt;\/span&gt;&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;mac&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;address&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'52:54:00:30:06:32'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;source&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;network&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'default'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;model&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'rtl8139'&lt;\/span&gt;\/&gt;&lt;\/span&gt; # \u9700\u8981\u4fee\u6539\u8fd9\u4e2artl8139\u4e3avirtio\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;address&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'pci'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;domain&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0000'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;bus&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x00'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;slot&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x03'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;function&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0'&lt;\/span&gt;\/&gt;&lt;\/span&gt; # \u8fd9\u884c\u4fee\u6539\u6210 &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;address&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'pci'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;domain&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0000'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;bus&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x00'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;slot&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x09'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;function&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n    &lt;span class=&quot;hljs-tag&quot;&gt;&lt;\/&lt;span class=&quot;hljs-title&quot;&gt;interface&lt;\/span&gt;&gt;&lt;\/span&gt;\n<\/code><\/pre>\n<p>\u5207\u6362\u4f7f\u7528\u6865\u63a5\u7f51\u7edc\u7684\u914d\u7f6e<\/p>\n<pre><code class=\"hljs xml\">    &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;interface&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'bridge'&lt;\/span&gt;&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;mac&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;address&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'52:54:00:30:06:32'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;source&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;network&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'br0'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;model&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'rtl8139'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n      &lt;span class=&quot;hljs-tag&quot;&gt;&lt;&lt;span class=&quot;hljs-title&quot;&gt;address&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'pci'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;domain&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0000'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;bus&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x00'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;slot&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x03'&lt;\/span&gt; &lt;span class=&quot;hljs-attribute&quot;&gt;function&lt;\/span&gt;=&lt;span class=&quot;hljs-value&quot;&gt;'0x0'&lt;\/span&gt;\/&gt;&lt;\/span&gt;\n    &lt;span class=&quot;hljs-tag&quot;&gt;&lt;\/&lt;span class=&quot;hljs-title&quot;&gt;interface&lt;\/span&gt;&gt;&lt;\/span&gt;\n<\/code><\/pre>\n<p>\u5207\u6362\u4f7f\u7528virtio\u9a71\u52a8\u7684\u914d\u7f6e<\/p>\n<pre><code class=\"hljs bash\">    &lt;interface &lt;span class=&quot;hljs-built_in&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;'bridge'&lt;\/span&gt;&gt;\n      &lt;mac address=&lt;span class=&quot;hljs-string&quot;&gt;'52:54:00:30:06:32'&lt;\/span&gt;\/&gt;\n      &lt;&lt;span class=&quot;hljs-built_in&quot;&gt;source&lt;\/span&gt; bridge=&lt;span class=&quot;hljs-string&quot;&gt;'br0'&lt;\/span&gt;\/&gt;\n      &lt;model &lt;span class=&quot;hljs-built_in&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;'virtio'&lt;\/span&gt;\/&gt;  &lt;span class=&quot;hljs-comment&quot;&gt;# \u4fee\u6539\u540e\u7684\u6548\u679c&lt;\/span&gt;\n      &lt;address &lt;span class=&quot;hljs-built_in&quot;&gt;type&lt;\/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;'pci'&lt;\/span&gt; domain=&lt;span class=&quot;hljs-string&quot;&gt;'0x0000'&lt;\/span&gt; bus=&lt;span class=&quot;hljs-string&quot;&gt;'0x00'&lt;\/span&gt; slot=&lt;span class=&quot;hljs-string&quot;&gt;'0x09'&lt;\/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;function&lt;\/span&gt;=&lt;span class=&quot;hljs-string&quot;&gt;'0x0'&lt;\/span&gt;\/&gt;  &lt;span class=&quot;hljs-comment&quot;&gt;# \u4fee\u6539\u540e\u7684\u6548\u679c&lt;\/span&gt;\n    &lt;\/interface&gt;<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u521b\u5efa\u4e34\u65f6\u7684virtio\u9a71\u52a8\u7684\u78c1\u76d8\u6587\u4ef6\nqemu-img create -f qcow2 \/opt\/<a class=\"hl hl-1\" href=\"https:\/\/so.csdn.net\/so\/search?q=kvm&#038;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noopener\" data-report-click=\"{\"spm\":\"1001.2101.3001.7020\",\"dest\":\"https:\/\/so.csdn.net\/so\/search?q=kvm&#038;spm=1001.2101.3001.7020\",\"extra\":\"{\\\"searchword\\\":\\\"kvm\\\"}\"}\" data-tit=\"kvm\" data-pretit=\"kvm\">kvm<\/a>-img\/re-fastdfs.img 1G<\/p>\n<p>attach-disk win10 \/data2\/virtio-win-0.1.221.iso hda &#8211;type cdrom &#8211;mode readonly<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u521b\u5efa\u7684vm\u7684\u89c6\u9891RAM\u9650\u5236\u4e3a\u00a0<code>16MB<\/code>\u00a0\u3002\u5728win\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5206\u8fa8\u7387\u6700\u9ad8\u5c31\u53ea\u80fd\u8c03\u5230\u00a0<code>1024x768<\/code>\u00a0\u3002<\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"tag\"><video><\/span>\n  <span class=\"tag\"><model<\/span> <span class=\"atn\">type<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'cirrus'<\/span> <span class=\"atn\">vram<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'16384'<\/span> <span class=\"atn\">heads<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'1'<\/span> <span class=\"atn\">primary<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'yes'<\/span>\n<span class=\"tag\">\/><\/span>\n  <span class=\"tag\"><address<\/span> <span class=\"atn\">type<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'pci'<\/span> <span class=\"atn\">domain<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x0000'<\/span> <span class=\"atn\">bus<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x00'<\/span> <span class=\"atn\">slot<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x02'<\/span> <span class=\"atn\">function<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x0'<\/span>\n<span class=\"tag\">\/><\/span>\n<span class=\"tag\"><\/video><\/span><\/pre>\n<p>\u5355\u5355\u4fee\u6539ram\u5927\u5c0f\u5e76\u4e0d\u7ba1\u7528\uff0c\u5728vm\u4e2d\u6700\u9ad8\u5206\u8fa8\u7387\u8fd8\u662f1024\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2585\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/2023\/08\/image.png\" alt=\"\" width=\"373\" height=\"282\" srcset=\"https:\/\/nick.txtcc.com\/wp-content\/uploads\/2023\/08\/image.png 373w, https:\/\/nick.txtcc.com\/wp-content\/uploads\/2023\/08\/image-300x227.png 300w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/>\n<p>\u4e5f\u5c31\u662f\u8bf4\u53ef\u80fd\u8fd8\u9700\u8981\u5176\u4ed6\u7684\u8bbe\u7f6e\u3002<\/p>\n<h2>\u589e\u52a0\u5fc5\u8981\u7684\u89c6\u9891RAM<\/h2>\n<p>\u9ed8\u8ba4\u7684\u5177\u6709\u00a0<code>16MB<\/code>\u00a0\u7684\u89c6\u9891RAM\uff0c4k\u5206\u8fa8\u7387(3840 x 2160)\u6765\u8ba1\u7b97\u3002<\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"lit\">3840<\/span>\n<span class=\"pln\"> x <\/span>\n<span class=\"lit\">2160<\/span> <span class=\"pun\">=<\/span> <span class=\"lit\">8294400<\/span>     <span class=\"com\"># \u603b\u5171\u50cf\u7d20\u70b9<\/span>\n<span class=\"lit\">8294400<\/span>\n<span class=\"pln\"> x <\/span>\n<span class=\"lit\">32<\/span> <span class=\"pun\">=<\/span> <span class=\"lit\">265420800<\/span>  <span class=\"com\"># \u6bcf\u4e2a\u50cf\u7d20\u70b9\u5360 4 \u4e2a\u5b57\u8282<\/span>\n<span class=\"lit\">265420800<\/span>\n<span class=\"pun\">\/<\/span>\n<span class=\"lit\">8<\/span> <span class=\"pun\">=<\/span> <span class=\"lit\">33177600<\/span>    <span class=\"com\"># \u8f6c\u4e3a Byte \u5355\u4f4d<\/span>\n<span class=\"lit\">33177600<\/span> <span class=\"pun\">\/\uff08<\/span>\n<span class=\"lit\">1024<\/span> <span class=\"pun\">*<\/span> <span class=\"lit\">1024<\/span>\n<span class=\"pun\">\uff09=<\/span> <span class=\"lit\">31.640625<\/span>\n<span class=\"pln\"> MB<\/span><\/pre>\n<p>\u6240\u4ee532 MB\u89c6\u9891RAM\u8db3\u4ee5\u8fbe\u52304k\u5206\u8fa8\u7387\uff0c\u8003\u8651\u5230\u4e00\u4e9b\u5f00\u9500\uff0c\u6211\u4eec\u5c06\u89c6\u9891RAM\u589e\u52a0\u523064 MB\u3002<\/p>\n<p>\u89c6\u9891\u7c7b\u578b\u8bbe\u7f6e\u4e3a\u00a0<code>qxl<\/code>\u00a0\uff0c\u5982\u4e0b\u66f4\u65b0\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u8bbe\u7f6e:<\/p>\n<pre class=\"prettyprint prettyprinted\"><span class=\"tag\"><video><\/span>\n  <span class=\"tag\"><model<\/span> <span class=\"atn\">type<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'qxl'<\/span> <span class=\"atn\">ram<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'65536'<\/span> <span class=\"atn\">vram<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'65536'<\/span> <span class=\"atn\">vgamem<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'65536'<\/span> <span class=\"atn\">heads<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'1'<\/span> <span class=\"atn\">primary<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'yes'<\/span>\n<span class=\"tag\">\/><\/span>\n  <span class=\"tag\"><address<\/span> <span class=\"atn\">type<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'pci'<\/span> <span class=\"atn\">domain<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x0000'<\/span> <span class=\"atn\">bus<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x00'<\/span> <span class=\"atn\">slot<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x02'<\/span> <span class=\"atn\">function<\/span>\n<span class=\"pun\">=<\/span>\n<span class=\"atv\">'0x0'<\/span>\n<span class=\"tag\">\/><\/span>\n<span class=\"tag\"><\/video><\/span><\/pre>\n<p>\u91cd\u65b0\u542f\u52a8vm\u5c31\u80fd\u770b\u5230\u652f\u6301\u7684\u5206\u8fa8\u7387\u4e86\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2587\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/2023\/08\/2_image.png\" alt=\"\" width=\"550\" height=\"424\" srcset=\"https:\/\/nick.txtcc.com\/wp-content\/uploads\/2023\/08\/2_image.png 550w, https:\/\/nick.txtcc.com\/wp-content\/uploads\/2023\/08\/2_image-300x231.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/>","protected":false},"excerpt":{"rendered":"<p>1.\u9996\u5148\u4ece\u865a\u62df\u673a\u7684xml\u6587\u4ef6\u4e2d\u627e\u5230\u5df2\u7ecf\u4f7f\u7528virtio\u9a71\u52a8\u7684\u786c\u4ef6\uff0c\u590d\u5236\u91cc\u9762\u7684address\u8fd9\u884c\u53c2\u6570\u51fa\u6765 <address <span class=\"hljs-built_in&#038;q&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[436,462,528],"class_list":["post-2461","post","type-post","status-publish","format-standard","hentry","category-linux","tag-cdrom","tag-kvm","tag-virtio"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=2461"}],"version-history":[{"count":5,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2461\/revisions"}],"predecessor-version":[{"id":2588,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2461\/revisions\/2588"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=2461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=2461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=2461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}