{"id":116743,"date":"2026-10-22T02:17:23","date_gmt":"2026-10-21T18:17:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/116743.html"},"modified":"2026-10-22T02:17:23","modified_gmt":"2026-10-21T18:17:23","slug":"%e3%80%90%e6%97%a0%e6%a0%87%e9%a2%98%e3%80%91-8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/116743.html","title":{"rendered":"\u3010\u65e0\u6807\u9898\u3011"},"content":{"rendered":"<h2>KVM \u547d\u4ee4\u884c\u865a\u62df\u673a\u7ba1\u7406 \u6838\u5fc3\u603b\u7ed3<\/h2>\n<p>\u57fa\u4e8e libvirt \u7684 virsh \u5de5\u5177\u7ba1\u7406KVM\u865a\u62df\u673a&#xff0c;\u5305\u542b\u865a\u62df\u673a\u751f\u547d\u5468\u671f\u3001\u914d\u7f6e\u3001\u5feb\u7167\u3001\u78c1\u76d8\u3001\u521b\u5efa\u865a\u62df\u673a\u3001\u7f51\u7edc\u5b58\u50a8\u3001\u5220\u9664\u3001\u5f00\u673a\u81ea\u542f\u3002<\/p>\n<h3>\u4e00\u3001\u57fa\u7840\u751f\u547d\u5468\u671f\u64cd\u4f5c&#xff08;virsh&#xff09;<\/h3>\n<table>\n<tr>\u547d\u4ee4\u529f\u80fd<\/tr>\n<tbody>\n<tr>\n<td>virsh list<\/td>\n<td>\u67e5\u770b\u8fd0\u884c\u4e2d\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>\n<td>virsh list &#8211;all<\/td>\n<td>\u67e5\u770b\u5168\u90e8&#xff08;\u542b\u5173\u673a&#xff09;\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>\n<td>virsh start \u865a\u62df\u673a\u540d<\/td>\n<td>\u542f\u52a8\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>\n<td>virsh shutdown \u865a\u62df\u673a\u540d<\/td>\n<td>\u4f18\u96c5\u5173\u673a&#xff08;ACPI&#xff0c;\u4f18\u5148\u4f7f\u7528&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>virsh destroy \u865a\u62df\u673a\u540d<\/td>\n<td>\u5f3a\u5236\u65ad\u7535&#xff0c;\u865a\u62df\u673a\u5361\u6b7b\u65f6\u4f7f\u7528&#xff0c;\u76f8\u5f53\u4e8e\u62d4\u7535\u6e90<\/td>\n<\/tr>\n<tr>\n<td>virsh reboot \u865a\u62df\u673a\u540d<\/td>\n<td>\u91cd\u542f\u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>\n<td>virsh suspend<\/td>\n<td>\u6302\u8d77\/\u6682\u505c\u865a\u62df\u673a&#xff0c;\u5185\u5b58\u6570\u636e\u843d\u78c1\u76d8<\/td>\n<\/tr>\n<tr>\n<td>virsh resume<\/td>\n<td>\u6062\u590d\u6302\u8d77\u7684\u865a\u62df\u673a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u547d\u4ee4\u8be6\u89e3&#xff1a;<\/p>\n<ul>\n<li>virsh list&#xff1a;\u4ec5\u663e\u793a\u5f53\u524d\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u7684\u865a\u62df\u673a&#xff0c;\u9002\u5408\u5feb\u901f\u786e\u8ba4\u54ea\u4e9b\u865a\u62df\u673a\u5728\u7ebf\u3002<\/li>\n<li>virsh list &#8211;all&#xff1a;\u663e\u793a\u6240\u6709\u865a\u62df\u673a&#xff0c;\u5305\u62ec\u5df2\u5173\u673a&#xff08;shut off&#xff09;\u72b6\u6001\u7684&#xff0c;\u4fbf\u4e8e\u638c\u63e1\u6574\u4f53\u8d44\u6e90\u5206\u5e03\u3002<\/li>\n<li>virsh start \u865a\u62df\u673a\u540d&#xff1a;\u542f\u52a8\u4e00\u53f0\u5df2\u5b9a\u4e49\u4f46\u5904\u4e8e\u5173\u673a\u72b6\u6001\u7684\u865a\u62df\u673a&#xff0c;\u76f8\u5f53\u4e8e\u7ed9\u865a\u62df\u673a\u901a\u7535\u5f00\u673a\u3002<\/li>\n<li>virsh shutdown \u865a\u62df\u673a\u540d&#xff1a;\u5411\u865a\u62df\u673a\u53d1\u9001 ACPI \u5173\u673a\u4fe1\u53f7&#xff0c;\u8ba9\u64cd\u4f5c\u7cfb\u7edf\u4f18\u96c5\u9000\u51fa&#xff0c;\u4f18\u5148\u4f7f\u7528&#xff0c;\u907f\u514d\u6570\u636e\u635f\u574f\u3002<\/li>\n<li>virsh destroy \u865a\u62df\u673a\u540d&#xff1a;\u76f4\u63a5\u5f3a\u5236\u65ad\u7535&#xff0c;\u76f8\u5f53\u4e8e\u62d4\u6389\u7535\u6e90\u7ebf\u3002\u4ec5\u5f53\u865a\u62df\u673a\u5361\u6b7b\u3001\u65e0\u6cd5\u54cd\u5e94 shutdown \u65f6\u4f7f\u7528&#xff0c;\u5426\u5219\u53ef\u80fd\u9020\u6210\u6587\u4ef6\u7cfb\u7edf\u635f\u574f\u3002<\/li>\n<li>virsh reboot \u865a\u62df\u673a\u540d&#xff1a;\u91cd\u542f\u865a\u62df\u673a&#xff0c;\u76f8\u5f53\u4e8e\u5148\u5173\u673a\u518d\u5f00\u673a\u3002<\/li>\n<li>virsh suspend&#xff1a;\u6302\u8d77\u865a\u62df\u673a&#xff0c;\u5c06\u5185\u5b58\u72b6\u6001\u4fdd\u5b58\u5230\u78c1\u76d8&#xff0c;\u6682\u505c CPU \u8fd0\u884c&#xff0c;\u9002\u5408\u4e34\u65f6\u817e\u51fa\u5bbf\u4e3b\u673a\u8d44\u6e90\u3002<\/li>\n<li>virsh resume&#xff1a;\u6062\u590d\u88ab\u6302\u8d77\u7684\u865a\u62df\u673a&#xff0c;\u4ece\u78c1\u76d8\u52a0\u8f7d\u5185\u5b58\u72b6\u6001\u7ee7\u7eed\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<p>\u4fe1\u606f\u67e5\u8be2&#xff1a;<\/p>\n<ul>\n<li>virsh dominfo \u865a\u62df\u673a\u540d&#xff1a;\u67e5\u770b\u865a\u62df\u673a\u57fa\u672c\u4fe1\u606f&#xff0c;\u5305\u62ec\u5185\u5b58\u3001CPU\u3001\u72b6\u6001\u3001\u81ea\u52a8\u542f\u52a8\u914d\u7f6e\u7b49\u3002<\/li>\n<li>virsh domblklist \u865a\u62df\u673a\u540d&#xff1a;\u5217\u51fa\u865a\u62df\u673a\u6302\u8f7d\u7684\u78c1\u76d8\u8bbe\u5907&#xff0c;\u786e\u8ba4\u78c1\u76d8\u8def\u5f84\u4e0e\u683c\u5f0f\u3002<\/li>\n<li>virsh domiflist \u865a\u62df\u673a\u540d&#xff1a;\u67e5\u770b\u865a\u62df\u673a\u7f51\u5361\u4fe1\u606f&#xff0c;\u5305\u62ec MAC \u5730\u5740\u3001\u7f51\u7edc\u7c7b\u578b\u4e0e\u6865\u63a5\u5173\u7cfb\u3002<\/li>\n<li>virsh vncdisplay \u865a\u62df\u673a\u540d&#xff1a;\u67e5\u770b\u865a\u62df\u673a\u5f53\u524d VNC \u7aef\u53e3\u53f7&#xff0c;\u7528\u4e8e\u8fdc\u7a0b\u56fe\u5f62\u754c\u9762\u8fde\u63a5\u3002<br \/>\n\u4ea4\u4e92\u6a21\u5f0f&#xff1a;\u5728\u7ec8\u7aef\u8f93\u5165 virsh \u5373\u53ef\u8fdb\u5165\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c&#xff0c;\u6b64\u65f6\u53ef\u76f4\u63a5\u8f93\u5165\u4e0a\u8ff0\u547d\u4ee4\u800c\u65e0\u9700\u91cd\u590d\u8f93\u5165 virsh \u524d\u7f00&#xff0c;\u8f93\u5165 quit \u9000\u51fa\u4ea4\u4e92\u6a21\u5f0f&#xff1b;virt-manager \u53ef\u8c03\u51fa\u56fe\u5f62\u5316\u7ba1\u7406\u754c\u9762&#xff0c;\u9002\u5408\u4e0d\u719f\u6089\u547d\u4ee4\u884c\u7684\u7528\u6237\u8fdb\u884c\u53ef\u89c6\u5316\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u865a\u62df\u673a\u914d\u7f6e\u5bfc\u5165\u5bfc\u51fa&#xff08;\u5907\u4efd\u914d\u7f6e\u91cd\u70b9&#xff09;<\/h3>\n<li>virsh dumpxml \u865a\u62df\u673a\u540d &gt; \/root\/xxx.xml&#xff1a;\u5bfc\u51fa xml \u914d\u7f6e\u5907\u4efd&#xff0c;\u5c06\u865a\u62df\u673a\u7684\u5b8c\u6574\u786c\u4ef6\u914d\u7f6e&#xff08;CPU\u3001\u5185\u5b58\u3001\u78c1\u76d8\u3001\u7f51\u5361\u7b49&#xff09;\u4fdd\u5b58\u4e3a xml \u6587\u4ef6&#xff0c;\u662f\u5907\u4efd\u865a\u62df\u673a\u914d\u7f6e\u7684\u6838\u5fc3\u624b\u6bb5\u3002<\/li>\n<li>virsh undefine \u865a\u62df\u673a\u540d&#xff1a;\u6ce8\u9500\u865a\u62df\u673a&#xff0c;\u53ea\u5220\u9664 libvirt \u7684 xml \u8bb0\u5f55&#xff0c;\u4e0d\u4f1a\u5220\u9664 qcow2 \u78c1\u76d8\u955c\u50cf&#xff0c;\u865a\u62df\u673a\u4ece libvirt \u7ba1\u7406\u5217\u8868\u4e2d\u79fb\u9664&#xff0c;\u4f46\u78c1\u76d8\u6570\u636e\u4ecd\u4fdd\u7559\u5728\u78c1\u76d8\u4e0a\u3002<\/li>\n<li>virsh define \/root\/xxx.xml&#xff1a;\u4ece\u5907\u4efd\u7684 xml \u6587\u4ef6\u91cd\u65b0\u6ce8\u518c\u6062\u590d\u865a\u62df\u673a&#xff0c;\u76f8\u5f53\u4e8e\u628a\u4e4b\u524d\u6ce8\u9500\u7684\u865a\u62df\u673a\u91cd\u65b0\u7eb3\u5165 libvirt \u7ba1\u7406\u3002<\/li>\n<li>virsh edit \u865a\u62df\u673a\u540d&#xff1a;\u76f4\u63a5\u7f16\u8f91\u865a\u62df\u673a xml \u914d\u7f6e\u6587\u4ef6&#xff0c;\u53ef\u4fee\u6539\u5185\u5b58\u3001CPU\u3001\u78c1\u76d8\u3001\u7f51\u5361\u7b49\u53c2\u6570&#xff0c;\u4fee\u6539\u540e\u9700\u91cd\u542f\u865a\u62df\u673a\u751f\u6548\u3002<\/li>\n<p>\u26a0\ufe0f\u91cd\u70b9&#xff1a;undefine\u4e0d\u4f1a\u5220\u78c1\u76d8&#xff0c;\u78c1\u76d8\u6587\u4ef6\u4ecd\u7136\u4fdd\u7559\u3002<\/p>\n<h3>\u4e09\u3001\u5feb\u7167\u7ba1\u7406<\/h3>\n<ul>\n<li>virsh snapshot-create-as \u865a\u62df\u673a\u540d \u5feb\u7167\u540d &#034;\u63cf\u8ff0&#034;&#xff1a;\u4e3a\u865a\u62df\u673a\u521b\u5efa\u5feb\u7167&#xff0c;\u8bb0\u5f55\u5f53\u524d\u78c1\u76d8\u4e0e\u5185\u5b58\u72b6\u6001&#xff0c;\u53ef\u7528\u4e8e\u5feb\u901f\u56de\u6eda\u3002<\/li>\n<li>virsh snapshot-list \u865a\u62df\u673a\u540d&#xff1a;\u5217\u51fa\u8be5\u865a\u62df\u673a\u7684\u6240\u6709\u5feb\u7167&#xff0c;\u663e\u793a\u5feb\u7167\u540d\u79f0\u3001\u521b\u5efa\u65f6\u95f4\u4e0e\u72b6\u6001\u3002<\/li>\n<li>virsh snapshot-revert \u865a\u62df\u673a\u540d &#8211;snapshotname \u5feb\u7167\u540d&#xff1a;\u5c06\u865a\u62df\u673a\u6062\u590d\u5230\u6307\u5b9a\u5feb\u7167\u65f6\u7684\u72b6\u6001&#xff0c;\u6062\u590d\u524d\u5efa\u8bae\u5148\u5173\u95ed\u865a\u62df\u673a&#xff0c;\u907f\u514d\u6570\u636e\u4e0d\u4e00\u81f4\u3002<\/li>\n<li>virsh snapshot-delete \u865a\u62df\u673a\u540d &#8211;snapshotname \u5feb\u7167\u540d&#xff1a;\u5220\u9664\u6307\u5b9a\u5feb\u7167&#xff0c;\u91ca\u653e\u78c1\u76d8\u7a7a\u95f4&#xff0c;\u5220\u9664\u540e\u65e0\u6cd5\u518d\u6062\u590d\u5230\u8be5\u5feb\u7167\u70b9\u3002<\/li>\n<\/ul>\n<h3>\u56db\u3001qemu\u2011img\u78c1\u76d8\u955c\u50cf\u7ba1\u7406<\/h3>\n<p>\u26a0\ufe0f\u78c1\u76d8\u64cd\u4f5c\u5efa\u8bae\u865a\u62df\u673a\u5173\u95ed&#xff0c;\u907f\u514d\u955c\u50cf\u635f\u574f<\/p>\n<li>qemu\u2011img create -f qcow2 \u8def\u5f84\/xxx.qcow2 20G \u521b\u5efaqcow2\u683c\u5f0f\u78c1\u76d8<\/li>\n<li>qemu\u2011img info \u955c\u50cf\u8def\u5f84 \u67e5\u770b\u78c1\u76d8\u955c\u50cf\u8be6\u7ec6\u4fe1\u606f<\/li>\n<h3>\u4e94\u3001virt\u2011install \u547d\u4ee4\u884c\u65b0\u5efa\u865a\u62df\u673a<\/h3>\n<p>\u5173\u952e\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>&#8211;name\u865a\u62df\u673a\u540d\u79f0&#xff1b;&#8211;memory\u5185\u5b58MiB&#xff1b;&#8211;vcpusCPU\u6838\u5fc3\u6570<\/li>\n<li>&#8211;disk path&#061;\u78c1\u76d8\u955c\u50cf\u8def\u5f84<\/li>\n<li>&#8211;locationISO\u5b89\u88c5\u955c\u50cf\u8def\u5f84<\/li>\n<li>&#8211;network network&#061;default\u4f7f\u7528KVM\u9ed8\u8ba4NAT\u7f51\u7edc<\/li>\n<li>&#8211;noautoconsole\u4e0d\u81ea\u52a8\u5f39\u51fa\u63a7\u5236\u53f0<\/li>\n<li>&#8211;vnc &#8211;vnclisten&#061;0.0.0.0 &#8211;vncport&#061;5903\u5f00\u542fVNC\u8fdc\u7a0b\u8bbf\u95ee<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>virt-install <span class=\"token parameter variable\">&#8211;name<\/span> vm2 <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">&#8211;memory<\/span> <span class=\"token number\">4096<\/span> <span class=\"token parameter variable\">&#8211;vcpus<\/span> <span class=\"token number\">2<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">&#8211;disk<\/span> <span class=\"token assign-left variable\">path<\/span><span class=\"token operator\">&#061;<\/span>\/disk\/vm2.qcow2 <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">&#8211;location<\/span> \/iso\/CentOS\u20117\u2011x86_64\u2011Minimal\u20111810.iso <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">&#8211;network<\/span> <span class=\"token assign-left variable\">network<\/span><span class=\"token operator\">&#061;<\/span>default <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">&#8211;noautoconsole<\/span><\/p>\n<p>VNC\u8bbf\u95ee&#xff1a;\u5bbf\u4e3b\u673aIP:\u7aef\u53e3&#xff1b;\u76d1\u542c0.0.0.0\u8981\u653e\u884c\u9632\u706b\u5899&#xff0c;\u5916\u90e8\u624d\u80fd\u8fde\u63a5\u3002<\/p>\n<h3>\u516d\u3001\u865a\u62df\u7f51\u7edc\u3001\u5b58\u50a8\u6c60<\/h3>\n<h4>\u865a\u62df\u7f51\u7edc<\/h4>\n<ul>\n<li>virsh net\u2011list &#8211;all\u67e5\u770b\u5168\u90e8\u865a\u62df\u7f51\u7edc<\/li>\n<li>virsh net\u2011start default\u542f\u52a8\u9ed8\u8ba4NAT\u7f51\u7edc<\/li>\n<li>virsh net\u2011autostart default\u8bbe\u7f6edefault\u7f51\u7edc\u5f00\u673a\u81ea\u542f<\/li>\n<li>virsh net\u2011dumpxml default\u5bfc\u51fa\u7f51\u7edcxml\u914d\u7f6e<\/li>\n<\/ul>\n<h4>\u5b58\u50a8\u6c60<\/h4>\n<ul>\n<li>virsh pool\u2011list &#8211;all\u67e5\u770b\u5b58\u50a8\u6c60<\/li>\n<li>virsh vol\u2011list default\u67e5\u770b\u5b58\u50a8\u6c60\u5185\u90e8\u78c1\u76d8\u955c\u50cf<\/li>\n<\/ul>\n<p>KVM\u9ed8\u8ba4\u5b58\u50a8\u6c60\u8def\u5f84&#xff1a;\/var\/lib\/libvirt\/images\/<\/p>\n<h3>\u4e03\u3001\u5220\u9664\u865a\u62df\u673a\u6d41\u7a0b<\/h3>\n<li>\u5148\u5173\u95ed\u865a\u62df\u673a&#xff08;shutdown\/destroy&#xff09;<\/li>\n<li>\u53ef\u9009&#xff1a;\u5220\u9664\u865a\u62df\u673a\u5feb\u7167<\/li>\n<li>\u4e24\u79cd\u5220\u9664\u65b9\u5f0f\n<ul>\n<li>virsh undefine vm3&#xff1a;\u4ec5\u6ce8\u9500xml\u914d\u7f6e&#xff0c;\u78c1\u76d8\u955c\u50cf\u4fdd\u7559<\/li>\n<li>virsh undefine vm3 &#8211;remove\u2011all\u2011storage&#xff1a;\u6ce8\u9500xml&#xff0c;\u540c\u65f6\u81ea\u52a8\u5220\u9664\u5173\u8054\u78c1\u76d8<\/li>\n<\/ul>\n<\/li>\n<li>\u624b\u52a8\u5220\u78c1\u76d8&#xff1a;rm -f \/var\/lib\/libvirt\/images\/vm3.qcow2<\/li>\n<p>\u6ce8\u610f&#xff1a;\u8fd0\u884c\u72b6\u6001\u865a\u62df\u673a\u4e0d\u80fd\u6267\u884cundefine\u3002<\/p>\n<h3>\u516b\u3001\u865a\u62df\u673a\u5f00\u673a\u81ea\u542f<\/h3>\n<ul>\n<li>virsh autostart \u865a\u62df\u673a\u540d&#xff1a;\u5f00\u542f\u5bbf\u4e3b\u673a\u5f00\u673a\u81ea\u542f\u865a\u62df\u673a<\/li>\n<li>virsh autostart &#8211;disable \u865a\u62df\u673a\u540d&#xff1a;\u5173\u95ed\u5f00\u673a\u81ea\u542f<\/li>\n<li>virsh list &#8211;all &#8211;autostart&#xff1a;\u67e5\u770b\u6240\u6709\u914d\u7f6e\u81ea\u542f\u7684\u865a\u62df\u673a&#xff0c;\u5fc5\u987b\u5e26\u2013all&#xff0c;\u5173\u673a\u865a\u62df\u673a\u624d\u4f1a\u663e\u793a<\/li>\n<li>virsh dominfo \u865a\u62df\u673a\u540d&#xff1a;\u67e5\u770b\u5355\u53f0\u865a\u62df\u673a\u81ea\u542f\u72b6\u6001<\/li>\n<\/ul>\n<h3>\u4e5d\u3001\u91cd\u8981\u6613\u9519\u70b9\u6c47\u603b<\/h3>\n<li>undefine\u53ea\u5220xml\u914d\u7f6e&#xff0c;\u9ed8\u8ba4\u4e0d\u4f1a\u5220\u9664qcow2\u78c1\u76d8\u955c\u50cf\u3002<\/li>\n<li>qemu\u2011img\u64cd\u4f5c\u78c1\u76d8\u955c\u50cf&#xff0c;\u52a1\u5fc5\u5173\u95ed\u865a\u62df\u673a&#xff0c;\u9632\u6b62\u955c\u50cf\u635f\u574f\u3002<\/li>\n<li>VNC\u76d1\u542c0.0.0.0&#xff0c;\u9632\u706b\u5899\u9700\u8981\u653e\u884c\u5bf9\u5e94\u7aef\u53e3&#xff0c;\u5916\u90e8\u624d\u80fd\u8fde\u63a5\u3002<\/li>\n<li>virsh list &#8211;autostart\u4e0d\u52a0&#8211;all\u770b\u4e0d\u5230\u5173\u673a\u4f46\u5f00\u542f\u81ea\u542f\u7684\u865a\u62df\u673a\u3002<\/li>\n<li>\u865a\u62df\u673a\u8fd0\u884c\u72b6\u6001\u4e0d\u80fd\u6267\u884cundefine\u6ce8\u9500\u3002<\/li>\n<li>\u5907\u4efd\u4f18\u5148dumpxml\u5bfc\u51faxml\u914d\u7f6e&#xff0c;\u78c1\u76d8\u955c\u50cf\u5355\u72ec\u5907\u4efd\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>KVM \u547d\u4ee4\u884c\u865a\u62df\u673a\u7ba1\u7406 \u6838\u5fc3\u603b\u7ed3\u57fa\u4e8e libvirt \u7684 virsh \u5de5\u5177\u7ba1\u7406KVM\u865a\u62df\u673a&#xff0c;\u5305\u542b\u865a\u62df\u673a\u751f\u547d\u5468\u671f\u3001\u914d\u7f6e\u3001\u5feb\u7167\u3001\u78c1\u76d8\u3001\u521b\u5efa\u865a\u62df\u673a\u3001\u7f51\u7edc\u5b58\u50a8\u3001\u5220\u9664\u3001\u5f00\u673a\u81ea\u542f\u3002\u4e00\u3001\u57fa\u7840\u751f\u547d\u5468\u671f\u64cd\u4f5c&#xff08;virsh&#xff09;\u547d\u4ee4\u529f\u80fdvirsh list\u67e5\u770b\u8fd0\u884c\u4e2d\u865a\u62df\u673avirsh list &#8211;all\u67e5\u770b\u5168\u90e8&#xff08;\u542b\u5173\u673a&#xff09;\u865a\u62df\u673avirsh start \u865a\u62df\u673a\u540d\u542f\u52a8\u865a\u62df\u673avirsh shutdown \u865a\u62df\u673a\u540d\u4f18\u96c5\u5173\u673a&#xff08;A<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,149,44],"topic":[],"class_list":["post-116743","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-windows","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u65e0\u6807\u9898\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/116743.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u65e0\u6807\u9898\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"KVM \u547d\u4ee4\u884c\u865a\u62df\u673a\u7ba1\u7406 \u6838\u5fc3\u603b\u7ed3\u57fa\u4e8e libvirt \u7684 virsh \u5de5\u5177\u7ba1\u7406KVM\u865a\u62df\u673a&#xff0c;\u5305\u542b\u865a\u62df\u673a\u751f\u547d\u5468\u671f\u3001\u914d\u7f6e\u3001\u5feb\u7167\u3001\u78c1\u76d8\u3001\u521b\u5efa\u865a\u62df\u673a\u3001\u7f51\u7edc\u5b58\u50a8\u3001\u5220\u9664\u3001\u5f00\u673a\u81ea\u542f\u3002\u4e00\u3001\u57fa\u7840\u751f\u547d\u5468\u671f\u64cd\u4f5c&#xff08;virsh&#xff09;\u547d\u4ee4\u529f\u80fdvirsh list\u67e5\u770b\u8fd0\u884c\u4e2d\u865a\u62df\u673avirsh list --all\u67e5\u770b\u5168\u90e8&#xff08;\u542b\u5173\u673a&#xff09;\u865a\u62df\u673avirsh start \u865a\u62df\u673a\u540d\u542f\u52a8\u865a\u62df\u673avirsh shutdown \u865a\u62df\u673a\u540d\u4f18\u96c5\u5173\u673a&#xff08;A\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/116743.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-21T18:17:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116743.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/116743.html\",\"name\":\"\u3010\u65e0\u6807\u9898\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-21T18:17:23+00:00\",\"dateModified\":\"2026-10-21T18:17:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/116743.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/116743.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116743.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u65e0\u6807\u9898\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u65e0\u6807\u9898\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/116743.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u65e0\u6807\u9898\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"KVM \u547d\u4ee4\u884c\u865a\u62df\u673a\u7ba1\u7406 \u6838\u5fc3\u603b\u7ed3\u57fa\u4e8e libvirt \u7684 virsh \u5de5\u5177\u7ba1\u7406KVM\u865a\u62df\u673a&#xff0c;\u5305\u542b\u865a\u62df\u673a\u751f\u547d\u5468\u671f\u3001\u914d\u7f6e\u3001\u5feb\u7167\u3001\u78c1\u76d8\u3001\u521b\u5efa\u865a\u62df\u673a\u3001\u7f51\u7edc\u5b58\u50a8\u3001\u5220\u9664\u3001\u5f00\u673a\u81ea\u542f\u3002\u4e00\u3001\u57fa\u7840\u751f\u547d\u5468\u671f\u64cd\u4f5c&#xff08;virsh&#xff09;\u547d\u4ee4\u529f\u80fdvirsh list\u67e5\u770b\u8fd0\u884c\u4e2d\u865a\u62df\u673avirsh list --all\u67e5\u770b\u5168\u90e8&#xff08;\u542b\u5173\u673a&#xff09;\u865a\u62df\u673avirsh start \u865a\u62df\u673a\u540d\u542f\u52a8\u865a\u62df\u673avirsh shutdown \u865a\u62df\u673a\u540d\u4f18\u96c5\u5173\u673a&#xff08;A","og_url":"https:\/\/www.wsisp.com\/helps\/116743.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-21T18:17:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/116743.html","url":"https:\/\/www.wsisp.com\/helps\/116743.html","name":"\u3010\u65e0\u6807\u9898\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-21T18:17:23+00:00","dateModified":"2026-10-21T18:17:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/116743.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/116743.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/116743.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u65e0\u6807\u9898\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=116743"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116743\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=116743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=116743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=116743"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=116743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}