{"id":505,"date":"2012-06-09T16:26:26","date_gmt":"2012-06-09T08:26:26","guid":{"rendered":"http:\/\/ykyi.net\/?p=505"},"modified":"2012-06-09T16:26:26","modified_gmt":"2012-06-09T08:26:26","slug":"kvm%e4%bd%a0%e9%97%ae%e6%88%91%e7%ad%94-faq-%e4%ba%8c","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=505","title":{"rendered":"KVM\u4f60\u95ee\u6211\u7b54 FAQ (\u4e8c)"},"content":{"rendered":"<h2 dir=\"ltr\">\u5982\u679c\u6211\u7684\u6ca1\u6709root\u6743\u9650\uff0c\u600e\u4e48\u4f7f\u7528KVM\u5462\uff1f<\/h2>\n<p><strong><strong>\u6700\u7b80\u6d01\u7684\u505a\u6cd5\u5c31\u662f\u521b\u5efa\u4e00\u4e2a\u7ec4\uff0c\u6bd4\u5982kvm\u7ec4\uff0c\u7136\u540e\u628a\u5c06\u8981\u4f7f\u7528kvm\u7684\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u91cc\u9762\u3002\u7136\u540e\u7528chown\u547d\u4ee4\u628a\/dev\/kvm\u7684\u6240\u6709\u7ec4\u6539\u6210kvm\u3002\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u91cc\u5b89\u88c5\u4e86udev\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6eudev\u7684\u65b9\u5f0f\u4f7f\u5f97linux\u81ea\u52a8\u628a\u65b0\u521b\u5efa\u7684\u8bbe\u5907\u8bbe\u6210\u6b63\u786e\u7684\u7ec4\u3002\u6bd4\u5982\u5728ubuntu\u7684\/etc\/udev\/rules.d\/40-permissions.rules\u6587\u4ef6\u4e2d\u589e\u52a0\u4e00\u884c\uff1a<br \/>\nKERNEL==&#8221;kvm&#8221;, GROUP=&#8221;kvm&#8221;<\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><strong><strong><br \/>\n<\/strong><\/strong><\/p>\n<h3 dir=\"ltr\">\u600e\u4e48\u505a\u624d\u80fd\u5f97\u5230kvm\u7684\u6700\u4f73\u6027\u80fd\u5462\uff1f<\/h3>\n<h3 dir=\"ltr\">See the <a href=\"http:\/\/www.linux-kvm.org\/page\/Tuning_KVM\">Tuning KVM<\/a> page.<\/h3>\n<hr \/>\n<p><strong><strong><br \/>\n<\/strong><\/strong><\/p>\n<h3 dir=\"ltr\">KVM\u7a33\u5b9a\u5417\uff1f<\/h3>\n<p><strong><strong>KVM\u975e\u5e38\u7a33\u5b9a\u800c\u4e14\u5df2\u7ecf\u7528\u4e8e\u5de5\u4f5c\u751f\u4ea7\u73af\u5883\u4e4b\u4e2d\u3002\u5bf9\u4e8e\u6240\u6709\u7684\u5f00\u59cb\u5de5\u7a0b\uff0c\u5f00\u53d1\u7248\u7684\u7a33\u5b9a\u6027\u603b\u662f\u900a\u4e8e\u7a33\u5b9a\u53d1\u884c\u7248\u3002\u5efa\u8bae\u4f7f\u7528\u7a33\u5b9a\u53d1\u884c\u7248\u3002KVM\u5df2\u7ecf\u88ab\u4f7f\u7528\u6bd4\u8f83\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u6a21\u62df\u5e38\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u914d\u7f6e\u3002\u4e00\u4f46\u6709\u95ee\u9898\u51fa\u73b0\uff0c\u5f00\u53d1\u8005\u4f1a\u5728\u7b2c\u4e00\u65f6\u95f4\u4fee\u590d\u3002\u53c2\u770b<a href=\"http:\/\/www.linux-kvm.org\/page\/Guest_Support_Status\">Guest Support Status<\/a>\uff0c\u5217\u4e3e\u4e86\u76ee\u524d\u8fd0\u884c\u826f\u597d\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<\/strong><\/strong>zausiu&#8217;s blog\u00a0<a href=\"http:\/\/ykyi.net\" target=\"_blank\" rel=\"noopener\">http:\/\/ykyi.net<\/a><\/p>\n<hr \/>\n<p><strong><strong><br \/>\n<\/strong><\/strong><\/p>\n<h3 dir=\"ltr\">KVM\u771f\u7684\u53ef\u4ee5\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u5417\uff1f<\/h3>\n<p><strong><strong>\u4e3a\u4e86\u7a33\u5b9a\u6027\uff0c\u5f3a\u5217\u5efa\u8bae\u4f60\u4f7f\u7528\u4f60\u4f7f\u7528\u7684\u53d1\u884c\u7248\u63d0\u4f9b\u7684KVM\u6a21\u5757\u3002\u5982\u524d\u9762\u6240\u8ff0\uff0c\u53ca\u65e9\u4f7f\u7528\u65b0\u7279\u6027\u603b\u662f\u4ee4\u4eba\u5f00\u5fc3\u7684\u4e8b\u60c5\u3002\u4f46\u662f\uff0c\u4f60\u5e38\u5e38\u8981\u8981\u627f\u62c5\u4e00\u5b9a\u7684\u98ce\u9669\uff0c\u4e00\u4e9b\u672a\u77e5\u7684\u95ee\u9898\u53ef\u80fd\u5728\u4f7f\u7528\u65f6\u66b4\u9732\u51fa\u6765\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u6700\u597d\u4f7f\u7528\u4f60\u4f7f\u7528\u7684\u53d1\u884c\u7248\u63d0\u4f9b\u7684\u7a33\u5b9a\u7248\uff0c\u800c\u5f00\u53d1\u7248\u672c\uff0c\u5982\u679c\u4f60\u613f\u610f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5728\u4e0d\u662f\u90a3\u4e48\u91cd\u8981\u7684\u73af\u5883\u4e0b\u3002<br \/>\n<\/strong><\/strong><\/p>\n<hr \/>\n<p><strong><strong><br \/>\n<\/strong><\/strong><\/p>\n<h3 dir=\"ltr\">\u5982\u679c\u6211\u7528kill -9\u6740\u6389VM\u8fdb\u7a0b\u4f1a\u53d1\u751f\u4ec0\u4e48\u4e8b\u5462\uff1f<\/h3>\n<p><strong><strong>From the guest&#8217;s perspective, it is as if you yanked the power cord out. From the host&#8217;s perspective, the process is killed and all resources it uses are reclaimed.<br \/>\n\u4ece\u5ba2\u6237\u865a\u62df\u673a\u7684\u7acb\u573a\u6765\u770b\uff0c\u8fd9\u5c31\u5982\u540c\u88ab\u62e8\u6389\u4e86\u7535\u6e90\u3002\u4eceHost\u673a\u7684\u7acb\u573a\u770b\uff0c\u4ec5\u4ec5\u662fVM\u8fdb\u7a0b\u88ab\u6740\u6b7b\u4e86\uff0c\u8fd9\u4e2aVM\u8fdb\u7a0b\u6240\u7533\u8bf7\u7684\u6240\u6709\u7cfb\u7edf\u8d44\u6e90\u88ab\u56de\u6536\u7ed9\u64cd\u4f5c\u7cfb\u7edf\u3002\u5982\u524d\u6587\u6240\u8bf4\uff0c\u5bf9\u4e8elinux\u5185\u6838\uff0cVM\u8fdb\u7a0b\u5c31\u662f\u4e00\u4e2a\u666e\u901a\u7684\u8fdb\u7a0b\u3002<br \/>\n<\/strong><\/strong><\/p>\n<hr \/>\n<p><strong><strong><br \/>\n<\/strong><\/strong><\/p>\n<h3 dir=\"ltr\">\u8bf7\u5e2e\u52a9\u6211\u8bbe\u7f6e\u5ba2\u6237\u673a\u7684\u7f51\u7edc\u3002<\/h3>\n<p><strong><strong>\u53ef\u4ee5\u53c2\u8003\u8fd9\u91cc <a href=\"http:\/\/www.linux-kvm.org\/page\/Networking\">Networking<\/a> \u8bbe\u7f6e\u7f51\u7ad9\uff0c\u4e5f\u53ef\u4ee5\u627e\u627eQEMU\u7684\u7f51\u7edc\u8bbe\u7f6e\u76f8\u5173\u6587\u6863\u3002<br \/>\n<\/strong><\/strong><\/p>\n<hr \/>\n<p><strong><strong><br \/>\n<\/strong><\/strong><\/p>\n<h3 dir=\"ltr\">\u54ea\u91cc\u6709\u66f4\u591aKVM\u7684\u6587\u6863\u5462\uff1f<\/h3>\n<p><strong><strong>\u7edd\u5927\u591a\u6570\u95ee\u9898\u90fd\u5728QEMU\u7684 <a href=\"http:\/\/www.nongnu.org\/qemu\/user-doc.html\">documentation<\/a>\u4e2d\u88ab\u63d0\u5230\u4e86\uff0c\u8fd8\u6709\u90e8\u5206\u5728\u6269\u5c55<a href=\"http:\/\/qemu-buch.de\/cgi-bin\/moin.cgi\/FrequentlyAskedQuestions\">FAQ<\/a> ( \u5df2\u7ecf\u5e9f\u5f03\u7684\u8001\u677f <a href=\"http:\/\/kidsquid.com\/cgi-bin\/moin.cgi\/FrequentlyAskedQuestions\">FAQ<\/a>).<\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u6211\u7684\u6ca1\u6709root\u6743\u9650\uff0c\u600e\u4e48\u4f7f\u7528KVM\u5462\uff1f \u6700\u7b80\u6d01\u7684\u505a\u6cd5\u5c31\u662f\u521b\u5efa\u4e00\u4e2a\u7ec4\uff0c\u6bd4\u5982kvm\u7ec4\uff0c\u7136\u540e\u628a\u5c06\u8981\u4f7f\u7528kvm\u7684\u7528\u6237\u6dfb\u52a0\u5230\u7ec4\u91cc\u9762\u3002\u7136\u540e\u7528chown\u547d\u4ee4\u628a\/dev\/kvm\u7684\u6240\u6709\u7ec4\u6539\u6210kvm\u3002\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u91cc\u5b89\u88c5\u4e86udev\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6eudev\u7684\u65b9\u5f0f\u4f7f\u5f97linux\u81ea\u52a8\u628a\u65b0\u521b\u5efa\u7684\u8bbe\u5907\u8bbe\u6210\u6b63\u786e\u7684\u7ec4\u3002\u6bd4\u5982\u5728ubuntu\u7684\/etc\/udev\/rules.d\/40-permissions.rules\u6587\u4ef6\u4e2d\u589e\u52a0\u4e00\u884c\uff1a KERNEL==&#8221;kvm&#8221;, GROUP=&#8221;kvm&#8221; &nbsp; \u600e\u4e48\u505a\u624d\u80fd\u5f97\u5230kvm\u7684\u6700\u4f73\u6027\u80fd\u5462\uff1f See the Tuning KVM page. KVM\u7a33\u5b9a\u5417\uff1f KVM\u975e\u5e38\u7a33\u5b9a\u800c\u4e14\u5df2\u7ecf\u7528\u4e8e\u5de5\u4f5c\u751f\u4ea7\u73af\u5883\u4e4b\u4e2d\u3002\u5bf9\u4e8e\u6240\u6709\u7684\u5f00\u59cb\u5de5\u7a0b\uff0c\u5f00\u53d1\u7248\u7684\u7a33\u5b9a\u6027\u603b\u662f\u900a\u4e8e\u7a33\u5b9a\u53d1\u884c\u7248\u3002\u5efa\u8bae\u4f7f\u7528\u7a33\u5b9a\u53d1\u884c\u7248\u3002KVM\u5df2\u7ecf\u88ab\u4f7f\u7528\u6bd4\u8f83\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u6a21\u62df\u5e38\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u914d\u7f6e\u3002\u4e00\u4f46\u6709\u95ee\u9898\u51fa\u73b0\uff0c\u5f00\u53d1\u8005\u4f1a\u5728\u7b2c\u4e00\u65f6\u95f4\u4fee\u590d\u3002\u53c2\u770bGuest Support Status\uff0c\u5217\u4e3e\u4e86\u76ee\u524d\u8fd0\u884c\u826f\u597d\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002zausiu&#8217;s blog\u00a0http:\/\/ykyi.net KVM\u771f\u7684\u53ef\u4ee5\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u5417\uff1f \u4e3a\u4e86\u7a33\u5b9a\u6027\uff0c\u5f3a\u5217\u5efa\u8bae\u4f60\u4f7f\u7528\u4f60\u4f7f\u7528\u7684\u53d1\u884c\u7248\u63d0\u4f9b\u7684KVM\u6a21\u5757\u3002\u5982\u524d\u9762\u6240\u8ff0\uff0c\u53ca\u65e9\u4f7f\u7528\u65b0\u7279\u6027\u603b\u662f\u4ee4\u4eba\u5f00\u5fc3\u7684\u4e8b\u60c5\u3002\u4f46\u662f\uff0c\u4f60\u5e38\u5e38\u8981\u8981\u627f\u62c5\u4e00\u5b9a\u7684\u98ce\u9669\uff0c\u4e00\u4e9b\u672a\u77e5\u7684\u95ee\u9898\u53ef\u80fd\u5728\u4f7f\u7528\u65f6\u66b4\u9732\u51fa\u6765\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u6700\u597d\u4f7f\u7528\u4f60\u4f7f\u7528\u7684\u53d1\u884c\u7248\u63d0\u4f9b\u7684\u7a33\u5b9a\u7248\uff0c\u800c\u5f00\u53d1\u7248\u672c\uff0c\u5982\u679c\u4f60\u613f\u610f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5728\u4e0d\u662f\u90a3\u4e48\u91cd\u8981\u7684\u73af\u5883\u4e0b\u3002 \u5982\u679c\u6211\u7528kill -9\u6740\u6389VM\u8fdb\u7a0b\u4f1a\u53d1\u751f\u4ec0\u4e48\u4e8b\u5462\uff1f From the guest&#8217;s perspective, it is as if you yanked the power cord out. From the host&#8217;s perspective, the process is killed and all resources it uses are reclaimed. \u4ece\u5ba2\u6237\u865a\u62df\u673a\u7684\u7acb\u573a\u6765\u770b\uff0c\u8fd9\u5c31\u5982\u540c\u88ab\u62e8\u6389\u4e86\u7535\u6e90\u3002\u4eceHost\u673a\u7684\u7acb\u573a\u770b\uff0c\u4ec5\u4ec5\u662fVM\u8fdb\u7a0b\u88ab\u6740\u6b7b\u4e86\uff0c\u8fd9\u4e2aVM\u8fdb\u7a0b\u6240\u7533\u8bf7\u7684\u6240\u6709\u7cfb\u7edf\u8d44\u6e90\u88ab\u56de\u6536\u7ed9\u64cd\u4f5c\u7cfb\u7edf\u3002\u5982\u524d\u6587\u6240\u8bf4\uff0c\u5bf9\u4e8elinux\u5185\u6838\uff0cVM\u8fdb\u7a0b\u5c31\u662f\u4e00\u4e2a\u666e\u901a\u7684\u8fdb\u7a0b\u3002 \u8bf7\u5e2e\u52a9\u6211\u8bbe\u7f6e\u5ba2\u6237\u673a\u7684\u7f51\u7edc\u3002 \u53ef\u4ee5\u53c2\u8003\u8fd9\u91cc Networking \u8bbe\u7f6e\u7f51\u7ad9\uff0c\u4e5f\u53ef\u4ee5\u627e\u627eQEMU\u7684\u7f51\u7edc\u8bbe\u7f6e\u76f8\u5173\u6587\u6863\u3002 \u54ea\u91cc\u6709\u66f4\u591aKVM\u7684\u6587\u6863\u5462\uff1f &hellip; <a href=\"https:\/\/ykyi.net\/?p=505\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;KVM\u4f60\u95ee\u6211\u7b54 FAQ (\u4e8c)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,8],"tags":[48,122],"class_list":["post-505","post","type-post","status-publish","format-standard","hentry","category-tech_articles","category-unix_linux","category-virtualization","tag-kvm","tag--virtulization"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=505"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/505\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}