{"id":2871,"date":"2024-11-06T23:08:30","date_gmt":"2024-11-06T15:08:30","guid":{"rendered":"https:\/\/yowlab.idv.tw\/wordpress\/?p=2871"},"modified":"2024-11-06T23:08:30","modified_gmt":"2024-11-06T15:08:30","slug":"%e6%89%8b%e5%8b%95%e5%8d%b8%e8%bc%89-kvm-%e6%a8%a1%e7%b5%84%ef%bc%8c%e4%bb%a5%e5%9f%b7%e8%a1%8c-virtualbox","status":"publish","type":"post","link":"https:\/\/yowlab.idv.tw\/wordpress\/?p=2871","title":{"rendered":"\u624b\u52d5\u5378\u8f09 KVM  \u6a21\u7d44\uff0c\u4ee5\u57f7\u884c VirtualBox"},"content":{"rendered":"<p>\u5728\u5c07\u81ea\u5df1\u7684 Linux kernel \u66f4\u65b0\u5f8c\uff0c\u57f7\u884c VirtualBox \u6642\uff0c\u51fa\u73fe\u4ee5\u4e0b\u7684\u932f\u8aa4\u3002<\/p>\n<div class=\"box01\">\nVBoxManage: error: VirtualBox can&#8217;t operate in VMX root mode.<br \/>\nPlease disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE)<br \/>\nVBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole\n<\/div>\n<style type=\"text\/css\">\n    li.present01 {line-height:1.5em; background-color:#F5E5C9; padding:5px; border-radius:10px; font-weight:bold; margin:5px;}\n    li.present02 {line-height:1.5em; background-color:#D1EC87; padding:5px; border-radius:10px; font-weight:bold; margin:5px;}\n    li.present03 {line-height:1.5em; background-color:#b3dffa; padding:5px; border-radius:10px; font-weight:bold; margin:5px;}\n    li.present04 {line-height:1.5em; background-color:#FDF6FF; padding:10px; border-radius:10px; font-weight:bold; margin:5px;}\n    ol.lower-alpha {list-style-type:lower-alpha;}\n    ol.lower-roman {list-style-type:lower-roman;}\n    ul.none {list-style-type:none;line-height:1.5em; padding:10px;}\n    ul.note {line-height:1.5em; padding:10px;}\n    .highlight01 {font-weight:bold; line-height:1.5em; background-color:#e7f49c; padding:0px 2px; border:1px; border-radius:10px;}\n    .highlight02 {font-weight:bold; line-height:1.5em; background-color:#F2F26B; padding:1px 1px; border:1px;}\n    .highlight03 {font-weight:bold; line-height:1.5em; background-color:#F9BF72; padding:3px 10px; border:2px; border-radius:10px;}\n    .box01 {margin: 5px; border:1px #19130B solid; border-radius:5px; padding:10px;}\n    .box02 {margin: 5px; font-weight:bold; line-height:1.5em; padding:10px; border:1px #19130B solid; border-radius:5px;}\n    h3 {border:2px #000 solid; border-width:0px 0px 1px 0px; padding-width:0px 0px 3px 0px;}\n    h4 {border:2px #000 solid; border-width:0px 0px 1px 0px; padding-width:3px 0px 3px 0px;margin: 3px 0px 10px 0px ;font-weight:bold; line-height:1.5em;  }\n    h5 {background-color:#eff0f1; padding:10px; font-weight:bold; line-height:2em; border:1px #000 solid; border-width:1px 0px 1px 0px; margin: 5px 0px 20px 0px;}<\/p>\n<p>    pre {margin: 5px; border:0px #19130B solid; border-radius:5px; padding:10px;line-height:2em;}\n<\/style>\n<p>\u4e3b\u8981\u539f\u56e0\u662f Kernel \u7684 KVM \uff08Kernel-based Virtual Machine\uff09\u6a21\u7d44\u548c Virtualbox \u767c\u751f\u885d\u7a81\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u901a\u5e38\u662f\u91cd\u65b0\u7de8\u8b6f kernel \uff0c\u5c07 KVM \u95dc\u9589\u6389\u3002<\/p>\n<p>\u4f46\u5be6\u5728\u662f\u61f6\u5f97\u518d\u91cd\u65b0\u7de8\u8b6f\u6838\u5fc3\u4e86\uff0c\u6240\u4ee5\uff0c\u63a1\u7528\u4ee5\u4e0b\u65b9\u6cd5\u4f86\u624b\u52d5\u5378\u8f09\u76f8\u95dc\u6a21\u7d44\u3002<\/p>\n<ol>\n<li class=\"present01\">\u5148\u89c0\u5bdf\u76ee\u524d\u7cfb\u7d71\u6709\u54ea\u4e9b kvm \u6a21\u7d44\u5728\u8dd1\u3002<\/li>\n<p>    <span class=\"highlight01\">lsmod | grep kvm <\/span><\/p>\n<li class=\"present01\">\u5982\u679c\u767c\u73fe\u6709 KVM \u6a21\u7d44\u5728\u8dd1\uff0c\u53ef\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f09<\/li>\n<p>    <span class=\"highlight01\"> sudo rmmod kvm_intel  # \u4f7f\u7528\u7684\u662f Intel CPU <\/span><br \/>\n    <span class=\"highlight01\"> sudo rmmod kvm        # \u5378\u8f09 KVM \u6a21\u7d44 <\/span><\/p>\n<\/ol>\n<p>\u9019\u6a23\u4fbf\u53ef\u57f7\u884c Virtualbox \u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5c07\u81ea\u5df1\u7684 Linux kernel \u66f4\u65b0\u5f8c\uff0c\u57f7\u884c VirtualBox \u6642\uff0c\u51fa\u73fe <a class=\"more-link\" href=\"https:\/\/yowlab.idv.tw\/wordpress\/?p=2871\">Continue reading <span class=\"screen-reader-text\">  \u624b\u52d5\u5378\u8f09 KVM  \u6a21\u7d44\uff0c\u4ee5\u57f7\u884c VirtualBox<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[105,80],"class_list":["post-2871","post","type-post","status-publish","format-standard","hentry","category-3","tag-kvm","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2871"}],"version-history":[{"count":1,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2871\/revisions"}],"predecessor-version":[{"id":2872,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2871\/revisions\/2872"}],"wp:attachment":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}