{"id":905,"date":"2024-07-30T18:30:00","date_gmt":"2024-07-30T09:30:00","guid":{"rendered":"https:\/\/seuheu.com\/?p=905"},"modified":"2024-07-30T21:33:41","modified_gmt":"2024-07-30T12:33:41","slug":"rocky-kvm-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/seuheu.com\/?p=905","title":{"rendered":"[Rocky] KVM \uc124\uce58"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"[Rocky] KVM \uc124\uce58\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/K7faeMS7BxY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p><br><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\ubaa9\ucc28<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"\ubaa9\ucc28 \ud1a0\uae00\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/seuheu.com\/?p=905\/#1_%EA%B0%9C%EC%9A%94\" >1. \uac1c\uc694<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/seuheu.com\/?p=905\/#2_%EB%B2%84%EC%A0%84\" >2. \ubc84\uc804<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/seuheu.com\/?p=905\/#3_%EC%84%A4%EB%AA%85\" >3. \uc124\uba85<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/seuheu.com\/?p=905\/#3-1_KVM_%EC%9D%B4%EB%9E%80\" >3-1. KVM \uc774\ub780?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/seuheu.com\/?p=905\/#4_KVM\" >4. KVM<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/seuheu.com\/?p=905\/#4-1_%EC%8B%9C%EC%8A%A4%ED%85%9C_%EA%B0%80%EC%83%81%ED%99%94_%EC%A7%80%EC%9B%90_%ED%99%95%EC%9D%B8\" >4-1. \uc2dc\uc2a4\ud15c \uac00\uc0c1\ud654 \uc9c0\uc6d0 \ud655\uc778<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/seuheu.com\/?p=905\/#4-2_%ED%8C%A8%ED%82%A4%EC%A7%80_%EC%84%A4%EC%B9%98\" >4-2. \ud328\ud0a4\uc9c0 \uc124\uce58<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/seuheu.com\/?p=905\/#4-3_%EC%84%9C%EB%B9%84%EC%8A%A4_%EC%8B%9C%EC%9E%91_%EB%B0%8F_%ED%99%9C%EC%84%B1%ED%99%94\" >4-3. \uc11c\ube44\uc2a4 \uc2dc\uc791 \ubc0f \ud65c\uc131\ud654<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"1-%EA%B0%9C%EC%9A%94\"><span class=\"ez-toc-section\" id=\"1_%EA%B0%9C%EC%9A%94\"><\/span>1. \uac1c\uc694<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"has-text-align-center\">KVM \uc124\uce58<\/p>\n\n\n\n<p><br><br><br><br><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"2-%EB%B2%84%EC%A0%84\"><span class=\"ez-toc-section\" id=\"2_%EB%B2%84%EC%A0%84\"><\/span>2. \ubc84\uc804<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"has-text-align-center\">Rocky 9.4 Minimal<\/p>\n\n\n\n<p><br><br><br><br><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"3-%EC%84%A4%EB%AA%85\"><span class=\"ez-toc-section\" id=\"3_%EC%84%A4%EB%AA%85\"><\/span>3. \uc124\uba85<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p><br><br><br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"3-1-kvm-%EC%9D%B4%EB%9E%80\"><span class=\"ez-toc-section\" id=\"3-1_KVM_%EC%9D%B4%EB%9E%80\"><\/span>3-1. KVM \uc774\ub780?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-text-align-center\">KVM(Kernel-based Virtual Machine)\uc740 \ub9ac\ub205\uc2a4 \ucee4\ub110\uc5d0 \ud1b5\ud569\ub41c \ud558\uc774\ud37c\ubc14\uc774\uc800<br>KVM\uc740 \uae30\ubcf8\uc801\uc73c\ub85c \ub9ac\ub205\uc2a4 \ucee4\ub110 \ubaa8\ub4c8\uc744 \ud1b5\ud574 \uc791\ub3d9\ud558\uba70,<br>\ud558\ub4dc\uc6e8\uc5b4 \uac00\uc0c1\ud654 \uae30\uc220(Intel VT-x \ub610\ub294 AMD-V)\uc744 \uc0ac\uc6a9\ud558\uc5ec \uac00\uc0c1\ud654\ub97c \uad6c\ud604<\/p>\n\n\n\n<p><br><br><br><br><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"4-kvm\"><span class=\"ez-toc-section\" id=\"4_KVM\"><\/span>4. KVM<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p><br><br><br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"4-1-%EC%8B%9C%EC%8A%A4%ED%85%9C-%EA%B0%80%EC%83%81%ED%99%94-%EC%A7%80%EC%9B%90-%ED%99%95%EC%9D%B8\"><span class=\"ez-toc-section\" id=\"4-1_%EC%8B%9C%EC%8A%A4%ED%85%9C_%EA%B0%80%EC%83%81%ED%99%94_%EC%A7%80%EC%9B%90_%ED%99%95%EC%9D%B8\"><\/span>4-1. \uc2dc\uc2a4\ud15c \uac00\uc0c1\ud654 \uc9c0\uc6d0 \ud655\uc778<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-text-align-center\"># lscpu | grep Virtualization<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Virtualization:      VT-x<\/code><\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Intel: VT-x\nAMD: AMD-V<\/code><\/pre>\n\n\n\n<p><br><br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"4-2-%ED%8C%A8%ED%82%A4%EC%A7%80-%EC%84%A4%EC%B9%98\"><span class=\"ez-toc-section\" id=\"4-2_%ED%8C%A8%ED%82%A4%EC%A7%80_%EC%84%A4%EC%B9%98\"><\/span>4-2. \ud328\ud0a4\uc9c0 \uc124\uce58<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-text-align-center\"># dnf -y install qemu-kvm libvirt libvirt-daemon libvirt-client virt-install virt-viewer virt-manager<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>QEMU-KVM (Kernel-based Virtual Machine)\n- \uc124\uba85\n    - QEMU\ub294 \ud558\ub4dc\uc6e8\uc5b4 \uc5d0\ubbac\ub808\uc774\ud130\n    - KVM\uc740 \ub9ac\ub205\uc2a4 \ucee4\ub110\uc758 \uc77c\ubd80\ub85c, \ud558\ub4dc\uc6e8\uc5b4 \uac00\uc18d\uc744 \uc0ac\uc6a9\ud558\uc5ec \uac00\uc0c1 \uba38\uc2e0\uc744 \uc2e4\ud589\n    - QEMU\ub294 KVM\uacfc \ud568\uaed8 \uc0ac\uc6a9\ub420 \ub54c \ud480 \uac00\uc0c1\ud654\ub97c \uc81c\uacf5\ud558\uc5ec \ub9ac\uc5bc \ud558\ub4dc\uc6e8\uc5b4\uc640 \uac70\uc758 \uac19\uc740 \uc131\ub2a5\uc744 \ub0bc \uc218 \uc788\uc74c\n- \uc6a9\ub3c4\n    - \ub2e4\uc591\ud55c \uc6b4\uc601 \uccb4\uc81c\ub97c \ud638\uc2a4\ud2b8 \uc2dc\uc2a4\ud15c \uc704\uc5d0\uc11c \uc2e4\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\uba70, \uac1c\ubc1c, \ud14c\uc2a4\ud2b8, \uad50\uc721, \ub610\ub294 \uc11c\ubc84 \ud1b5\ud569 \uc6a9\ub3c4\ub85c \uc0ac\uc6a9\n\nLibvirt\n- \uc124\uba85\n    - libvirt\ub294 \uac00\uc0c1\ud654 \uad00\ub9ac\ub97c \uc704\ud55c \uc624\ud508 \uc18c\uc2a4 API, \ub370\ubaac \ubc0f \ub3c4\uad6c \ubaa8\uc74c\n    - \uc5ec\ub7ec \uac00\uc0c1\ud654 \uae30\uc220(KVM, Xen \ub4f1)\uc744 \uc9c0\uc6d0\ud558\uba70, \uac00\uc0c1 \uba38\uc2e0\uacfc \uae30\ud0c0 \uac00\uc0c1\ud654 \uae30\ub2a5\uc744 \uad00\ub9ac\ud558\ub294 \ud45c\uc900\ud654\ub41c \ubc29\ubc95\uc744 \uc81c\uacf5\n- \uc6a9\ub3c4\n    - \uac00\uc0c1 \uba38\uc2e0 \uc0dd\uc131, \uc218\uc815, \uad00\ub9ac, \ub9c8\uc774\uadf8\ub808\uc774\uc158, \ubc31\uc5c5 \ub4f1\uc758 \uc791\uc5c5\uc744 \ub2e8\uc21c\ud654\ud558\uace0 \uc790\ub3d9\ud654 \ud568\n\nLibvirt-daemon\n- \uc124\uba85\n    - libvirt API\ub97c \ud1b5\ud574 \uc791\uc5c5\uc744 \uc218\ud589\ud558\uae30 \uc704\ud574 \ubc31\uadf8\ub77c\uc6b4\ub4dc\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \ub370\ubaac \ud504\ub85c\uc138\uc2a4\n- \uc6a9\ub3c4\n    - \uc2e4\uc81c\ub85c \uac00\uc0c1\ud654 \uc791\uc5c5\uc744 \uc218\ud589\ud558\uace0, \uad00\ub9ac \uba85\ub839\uc744 \uc2e4\ud589\ud558\ub294 \uc11c\ubc84 \uc5ed\ud560\uc744 \ud568\n\nLibvirt-client\n- \uc124\uba85\n    - libvirt \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \ud568\uaed8 \uc81c\uacf5\ub418\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8 \ud504\ub85c\uadf8\ub7a8\ub4e4\ub85c, \uac00\uc0c1 \uba38\uc2e0\uacfc \ub9ac\uc18c\uc2a4\ub97c \uad00\ub9ac\ud558\ub294 \ub370 \uc0ac\uc6a9\n- \uc6a9\ub3c4\n    - \uac00\uc0c1 \uba38\uc2e0\uc758 \uc0c1\ud0dc\ub97c \ubaa8\ub2c8\ud130\ub9c1\ud558\uac70\ub098 \uc870\uc791\ud560 \ub54c \uc0ac\uc6a9\n\nVirt-install\n- \uc124\uba85\n    - \uba85\ub839\uc904 \uc720\ud2f8\ub9ac\ud2f0\ub85c, \uc0c8\ub85c\uc6b4 \uac00\uc0c1 \uba38\uc2e0\uc744 \uc0dd\uc131\ud558\uace0 \uc124\uce58\ud558\ub294 \ub370 \uc0ac\uc6a9\n- \uc6a9\ub3c4\n    - \uac00\uc0c1 \uba38\uc2e0\uc5d0 \uc6b4\uc601 \uccb4\uc81c\ub97c \uc124\uce58\ud558\uac70\ub098 \uac00\uc0c1 \uba38\uc2e0\uc744 \uc124\uc815\ud558\ub294 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc2e4\ud589\ud558\ub294 \ub370 \uc720\uc6a9\n\nVirt-viewer\n- \uc124\uba85\n    - \uac00\uc0c1 \uba38\uc2e0\uc5d0 \uc5f0\uacb0\ud558\uc5ec \uadf8\ub798\ud53d \ub514\uc2a4\ud50c\ub808\uc774\ub97c \uc81c\uacf5\ud558\ub294 \ub370\uc2a4\ud06c\ud0d1 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\n- \uc6a9\ub3c4\n    - \uac00\uc0c1 \uba38\uc2e0\uc758 GUI\uc5d0 \uc811\uadfc\ud558\uc5ec \uc778\ud130\ub799\ud2f0\ube0c\ud55c \uc791\uc5c5\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc74c\n\nVirt-manager\n- \uc124\uba85\n    - \uac00\uc0c1 \uba38\uc2e0 \uad00\ub9ac\ub97c \uc704\ud55c \uadf8\ub798\ud53d \uc778\ud130\ud398\uc774\uc2a4 \ud234\n    - libvirt\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac00\uc0c1 \uba38\uc2e0\uc744 \uad6c\uc131\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc90c\n- \uc6a9\ub3c4\n    - \uc0ac\uc6a9\uc790 \uce5c\ud654\uc801\uc778 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ud1b5\ud574 \uac00\uc0c1 \uba38\uc2e0\uc744 \ubcf4\ub2e4 \uc27d\uac8c \uad00\ub9ac\ud558\uace0 \ubaa8\ub2c8\ud130\ub9c1\ud560 \uc218 \uc788\uc74c<\/code><\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<p class=\"has-text-align-center\"># lsmod | grep kvm<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kvm_intel             344064  0\nkvm                   950272  61 kvm_intel\nirqbypass              16384  1 kvm<\/code><\/pre>\n\n\n\n<p><br><br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"4-3-%EC%84%9C%EB%B9%84%EC%8A%A4-%EC%8B%9C%EC%9E%91-%EB%B0%8F-%ED%99%9C%EC%84%B1%ED%99%94\"><span class=\"ez-toc-section\" id=\"4-3_%EC%84%9C%EB%B9%84%EC%8A%A4_%EC%8B%9C%EC%9E%91_%EB%B0%8F_%ED%99%9C%EC%84%B1%ED%99%94\"><\/span>4-3. \uc11c\ube44\uc2a4 \uc2dc\uc791 \ubc0f \ud65c\uc131\ud654<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"has-text-align-center\"># systemctl start libvirtd<br># systemctl enable libvirtd<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n","protected":false},"excerpt":{"rendered":"<p>1. \uac1c\uc694 KVM \uc124\uce58 2. \ubc84\uc804 Rocky 9.4 Minimal 3. \uc124\uba85 3-1. KVM \uc774\ub780? KVM(Kernel-based Virtual Machine)\uc740 \ub9ac\ub205\uc2a4 \ucee4\ub110\uc5d0 \ud1b5\ud569\ub41c \ud558\uc774\ud37c\ubc14\uc774\uc800KVM\uc740 \uae30\ubcf8\uc801\uc73c\ub85c \ub9ac\ub205\uc2a4 \ucee4\ub110 \ubaa8\ub4c8\uc744 \ud1b5\ud574 \uc791\ub3d9\ud558\uba70,\ud558\ub4dc\uc6e8\uc5b4 \uac00\uc0c1\ud654 \uae30\uc220(Intel VT-x \ub610\ub294 AMD-V)\uc744 \uc0ac\uc6a9\ud558\uc5ec \uac00\uc0c1\ud654\ub97c \uad6c\ud604 4. KVM 4-1. \uc2dc\uc2a4\ud15c \uac00\uc0c1\ud654 \uc9c0\uc6d0 \ud655\uc778 # lscpu | grep Virtualization 4-2. \ud328\ud0a4\uc9c0 \uc124\uce58 # dnf -y install qemu-kvm &#8230; <a title=\"[Rocky] KVM \uc124\uce58\" class=\"read-more\" href=\"https:\/\/seuheu.com\/?p=905\" aria-label=\"[Rocky] KVM \uc124\uce58\uc5d0 \ub300\ud574 \ub354 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uc138\uc694\">\ub354 \uc77d\uae30<\/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,11],"tags":[],"class_list":["post-905","post","type-post","status-publish","format-standard","hentry","category-linux","category-rocky"],"_links":{"self":[{"href":"https:\/\/seuheu.com\/index.php?rest_route=\/wp\/v2\/posts\/905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seuheu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seuheu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seuheu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seuheu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=905"}],"version-history":[{"count":3,"href":"https:\/\/seuheu.com\/index.php?rest_route=\/wp\/v2\/posts\/905\/revisions"}],"predecessor-version":[{"id":909,"href":"https:\/\/seuheu.com\/index.php?rest_route=\/wp\/v2\/posts\/905\/revisions\/909"}],"wp:attachment":[{"href":"https:\/\/seuheu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seuheu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seuheu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}