{"id":357,"date":"2025-10-18T07:33:41","date_gmt":"2025-10-18T07:33:41","guid":{"rendered":"https:\/\/blog.chaiyakul.com\/?p=357"},"modified":"2025-10-18T07:33:41","modified_gmt":"2025-10-18T07:33:41","slug":"kvm-linux-virtualbox","status":"publish","type":"post","link":"https:\/\/blog.chaiyakul.com\/index.php\/2025\/10\/18\/kvm-linux-virtualbox\/","title":{"rendered":"\u0e1b\u0e31\u0e0d\u0e2b\u0e32 KVM \u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a Linux \u0e17\u0e33\u0e43\u0e2b\u0e49 VirtualBox \u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49"},"content":{"rendered":"\n<p>\u0e1b\u0e31\u0e0d\u0e2b\u0e32 <strong>\u201cVirtualBox can&#8217;t operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE)\u201d<\/strong><br>\u0e40\u0e01\u0e34\u0e14\u0e08\u0e32\u0e01 <strong>KVM (Kernel-based Virtual Machine)<\/strong> \u0e16\u0e39\u0e01\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a Linux \u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27<br>\u0e41\u0e15\u0e48 <strong>VirtualBox \u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a KVM \u0e44\u0e14\u0e49\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e31\u0e19<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83e\uddf0 \u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32 (\u0e1a\u0e19 Linux Mint \/ Ubuntu)<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u2705 1. \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32 KVM \u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/h5>\n\n\n\n<p>\u0e40\u0e1b\u0e34\u0e14 Terminal \u0e41\u0e25\u0e49\u0e27\u0e23\u0e31\u0e19:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlsmod | grep kvm\n<\/pre><\/div>\n\n\n<p>\u0e16\u0e49\u0e32\u0e02\u0e36\u0e49\u0e19\u0e27\u0e48\u0e32:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nkvm_intel ... \nkvm ...\n<\/pre><\/div>\n\n\n<p>\u0e41\u0e1b\u0e25\u0e27\u0e48\u0e32 KVM \u0e16\u0e39\u0e01\u0e42\u0e2b\u0e25\u0e14\u0e2d\u0e22\u0e39\u0e48 \u2705<\/p>\n\n\n\n<p>\ud83e\uddfc 2. \u0e1b\u0e34\u0e14 (unload) \u0e42\u0e21\u0e14\u0e39\u0e25 KVM \u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo modprobe -r kvm_intel\nsudo modprobe -r kvm\n<\/pre><\/div>\n\n\n<p>\u26a0\ufe0f \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a CPU AMD \u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 <code>kvm_amd<\/code> \u0e41\u0e17\u0e19 <code>kvm_intel<\/code><\/p>\n\n\n\n<p>\ud83d\udd12 3. \u0e1b\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19\u0e44\u0e21\u0e48\u0e43\u0e2b\u0e49 KVM \u0e42\u0e2b\u0e25\u0e14\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 (\u0e16\u0e32\u0e27\u0e23)<\/p>\n\n\n\n<p>\u0e2a\u0e23\u0e49\u0e32\u0e07 blacklist:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\necho &quot;blacklist kvm&quot; | sudo tee \/etc\/modprobe.d\/blacklist-kvm.conf\necho &quot;blacklist kvm_intel&quot; | sudo tee \/etc\/modprobe.d\/blacklist-kvm-intel.conf\n<\/pre><\/div>\n\n\n<p>\u0e16\u0e49\u0e32\u0e43\u0e0a\u0e49 AMD:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\necho &quot;blacklist kvm_amd&quot; | sudo tee \/etc\/modprobe.d\/blacklist-kvm-amd.conf\n<\/pre><\/div>\n\n\n<p>\ud83d\udd01 4. \u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15 initramfs \u0e41\u0e25\u0e49\u0e27\u0e23\u0e35\u0e1a\u0e39\u0e15<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo update-initramfs -u\nsudo reboot\n<\/pre><\/div>\n\n\n<p>\ud83e\udde0 5. (\u0e17\u0e32\u0e07\u0e40\u0e25\u0e37\u0e2d\u0e01) \u0e43\u0e0a\u0e49 VirtualBox \u0e1a\u0e19 KVM \u0e1c\u0e48\u0e32\u0e19 Nested Virtualization <em>(\u0e02\u0e31\u0e49\u0e19\u0e2a\u0e39\u0e07)<\/em><\/p>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 KVM \u0e41\u0e25\u0e30 VirtualBox \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e31\u0e19\u0e08\u0e23\u0e34\u0e07 \u0e46<br>\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a Nested Virtualization \u0e41\u0e25\u0e30\u0e43\u0e0a\u0e49\u0e42\u0e2b\u0e21\u0e14 <code>--nested-hw-virt on<\/code> \u0e0b\u0e36\u0e48\u0e07\u0e22\u0e38\u0e48\u0e07\u0e22\u0e32\u0e01\u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e40\u0e2a\u0e16\u0e35\u0e22\u0e23\u0e40\u0e17\u0e48\u0e32\u0e44\u0e23\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e17\u0e31\u0e48\u0e27\u0e44\u0e1b<\/p>\n\n\n\n<p>\u26a0\ufe0f \u0e27\u0e34\u0e18\u0e35\u0e19\u0e35\u0e49\u0e44\u0e21\u0e48\u0e41\u0e19\u0e30\u0e19\u0e33\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e17\u0e31\u0e48\u0e27\u0e44\u0e1b \u2014 \u0e07\u0e48\u0e32\u0e22\u0e2a\u0e38\u0e14\u0e04\u0e37\u0e2d <strong>\u0e1b\u0e34\u0e14 KVM<\/strong> \u0e01\u0e48\u0e2d\u0e19\u0e43\u0e0a\u0e49 VirtualBox<\/p>\n\n\n\n<p>\ud83e\udded \u0e40\u0e0a\u0e47\u0e04\u0e2b\u0e25\u0e31\u0e07\u0e23\u0e35\u0e1a\u0e39\u0e15<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlsmod | grep kvm\n<\/pre><\/div>\n\n\n<p>\u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c \u2192 \u2705 VirtualBox \u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e34\u0e14 VM \u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e1b\u0e01\u0e15\u0e34<\/p>\n\n\n\n<p>\u0e2b\u0e32\u0e01\u0e04\u0e38\u0e13\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 <strong>QEMU \/ Virt-Manager<\/strong> \u0e21\u0e32\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49 \u0e19\u0e31\u0e48\u0e19\u0e04\u0e37\u0e2d\u0e40\u0e2b\u0e15\u0e38\u0e1c\u0e25\u0e2b\u0e25\u0e31\u0e01\u0e17\u0e35\u0e48\u0e17\u0e33\u0e43\u0e2b\u0e49 VirtualBox \u0e02\u0e36\u0e49\u0e19 error \u0e19\u0e35\u0e49<br>\u0e04\u0e38\u0e13\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e25\u0e31\u0e1a\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e17\u0e35\u0e25\u0e30\u0e15\u0e31\u0e27 (VirtualBox \u2194 KVM) \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e34\u0e14\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1b\u0e31\u0e0d\u0e2b\u0e32 \u201cVirtualBox can&#8217;t operate in VMX root mode. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[9,165,159],"tags":[],"class_list":["post-357","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux-mint","category-virtualbox"],"_links":{"self":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":1,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/357\/revisions\/358"}],"wp:attachment":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}