{"id":508,"date":"2026-01-06T12:12:55","date_gmt":"2026-01-06T04:12:55","guid":{"rendered":"https:\/\/blog.libra5.cool\/?p=508"},"modified":"2026-01-06T12:12:55","modified_gmt":"2026-01-06T04:12:55","slug":"cloudstack-%e5%ad%a6%e4%b9%a0%e5%b0%8f%e8%ae%b0-6-%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/blog.libra5.cool\/?p=508","title":{"rendered":"CloudStack \u5b66\u4e60\u5c0f\u8bb0 6\u00a0\u2014\u2014\u00a0\u5feb\u901f\u5b89\u88c5\u6307\u5357"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u201cHi\uff0c\u8fd9\u662f\u5c0f5\u81ea\u5b66 CloudStack \u76f8\u5173\u77e5\u8bc6\u7684\u7b2c6\u7bc7\u7b14\u8bb0\u3002\u5728\u5b66\u4e60\u65f6\u6211\u4eec\u4f1a\u9700\u8981\u5bf9 CloudStack \u8fdb\u884c\u5feb\u901f\u90e8\u7f72\u4ee5\u5b8c\u6210\u5b9e\u64cd\u3002\u672c\u671f\u5c06\u4ecb\u7ecd\u5feb\u901f\u90e8\u7f72\u7684\u57fa\u7840\u77e5\u8bc6\u3002\u201d<\/p>\n<cite>\u6458\u8981<\/cite><\/blockquote>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6982\u8ff0<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u6784\u5efa\u57fa\u7840\u8bbe\u65bd\u5373\u670d\u52a1 (IaaS) \u4e91\u5e73\u53f0\u53ef\u80fd\u975e\u5e38\u590d\u6742\uff0c\u987e\u540d\u601d\u4e49\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u9009\u9879\uff0c\u8fd9\u5e38\u5e38\u4f1a\u8ba9\u5373\u4f7f\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u7ba1\u7406\u5458\u5728\u521d\u6b21\u63a5\u89e6\u4e91\u5e73\u53f0\u6784\u5efa\u65f6\u611f\u5230\u56f0\u60d1\u3002\u672c\u7ae0\u65e8\u5728\u63d0\u4f9b\u4e00\u5957\u7b80\u660e\u6613\u61c2\u7684\u8bf4\u660e\uff0c\u5e2e\u52a9\u5feb\u901f\u542f\u52a8\u5e76\u8fd0\u884c CloudStack\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-color has-text-color has-link-color has-small-font-size wp-elements-73016c96fbd7357d97b2261966b1d274\">* \u4ec5\u7528\u4e8e\u6784\u5efa CloudStack \u6d4b\u8bd5\/\u6f14\u793a\u4e91\u73af\u5883\uff0c\u5176\u4e2d\u5df2\u505a\u51fa\u4e00\u4e9b\u7f51\u7edc\u914d\u7f6e\u9009\u62e9\uff0c\u4ee5\u4fbf\u80fd\u4ee5\u6700\u77ed\u7684\u65f6\u95f4\u5feb\u901f\u542f\u52a8\u5e76\u8fd0\u884c\u3002\u672c\u7ae0\u5185\u5bb9\u4e0d\u80fd\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u90e8\u7f72\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-color has-text-color has-link-color has-small-font-size wp-elements-fb66c2d6b51356deb1aef48b4165a83c\">** \u5982\u679c\u60a8\u6ca1\u6709\u7269\u7406\u670d\u52a1\u5668\u53ef\u4f9b\u201c\u6d4b\u8bd5\u201d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4f8b\u5982 Oracle VirtualBox 6.1+\u3002\u524d\u63d0\u662f\u60a8\u9700\u8981\u5728\u5b9e\u4f8b\u8bbe\u7f6e\u7684\u201c\u7cfb\u7edf\u201d\u9875\u9762\u4e2d\u542f\u7528\u201c\u542f\u7528\u5d4c\u5957 VT-x\/AMD-V\u201d\u4f5c\u4e3a\u6269\u5c55\u529f\u80fd\u3002\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u201cRed Hat (64 \u4f4d)\u201d\u7c7b\u578b\u7684\u5b9e\u4f8b\uff0c\u5e76\u5206\u914d 40GB \u4ee5\u4e0a\u7684\u78c1\u76d8\u7a7a\u95f4\u3002\u5b9e\u4f8b\u9700\u8981\u914d\u5907\u4e00\u4e2a\u7f51\u5361\uff0c\u5e76\u5c06\u5176\u6865\u63a5\u5230\u7b14\u8bb0\u672c\u7535\u8111\/\u53f0\u5f0f\u673a\u7684\u7f51\u5361\uff08\u6865\u63a5\u5230\u65e0\u7ebf\u7f51\u5361\u901a\u5e38\u4f1a\u5bfc\u81f4\u8fde\u63a5\u95ee\u9898\uff0c\u56e0\u6b64\u8bf7\u907f\u514d\u8fd9\u6837\u505a\uff0c\u800c\u5e94\u6865\u63a5\u5230\u6709\u7ebf\u7f51\u5361\uff09\u3002\u4e3a\u4e86\u83b7\u5f97\u66f4\u597d\u7684\u7f51\u7edc\u6027\u80fd\uff0c\u5efa\u8bae\u5c06\u9002\u914d\u5668\u7c7b\u578b\u8bbe\u7f6e\u4e3a\u201c\u534a\u865a\u62df\u5316\u7f51\u7edc (virtio-net)\u201d\uff08\u5728\u5b9e\u4f8b\u8bbe\u7f6e\u4e2d\uff0c\u9009\u62e9\u201c\u7f51\u7edc\u201d\u90e8\u5206\uff0c\u627e\u5230\u9002\u914d\u5668 1\uff0c\u5c55\u5f00\u201c\u9ad8\u7ea7\u201d\u9009\u9879\uff09\u3002\u8bf7\u786e\u4fdd\u5b9e\u4f8b\u4e0a\u7684\u7f51\u5361\u914d\u7f6e\u4e3a\u6df7\u6742\u6a21\u5f0f\uff08\u5728 VirtualBox \u4e2d\uff0c\u6df7\u6742\u6a21\u5f0f\u9009\u62e9\u201c\u5141\u8bb8\u6240\u6709\u201d\u6216\u201c\u5141\u8bb8\u5b9e\u4f8b\u201d\uff09\uff0c\u4ee5\u4fbf\u5b83\u53ef\u4ee5\u5c06 CloudStack \u7cfb\u7edf\u865a\u62df\u673a\u7684\u6d41\u91cf\u8f6c\u53d1\u5230\u7f51\u5173\u3002\u6b64\u5916\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u4e3a\u6f14\u793a\u76ee\u7684\u5206\u914d\u4e86\u8db3\u591f\u7684\u5185\u5b58\uff086GB \u4ee5\u4e0a\uff09\u548c CPU \u6838\u5fc3\uff083 \u4e2a\u4ee5\u4e0a\uff09\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6d41\u7a0b\u6982\u8ff0<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u672c\u7bc7\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u5728 EL8 \u53d1\u884c\u7248\u4e0a\u4f7f\u7528 KVM \u6784\u5efa CloudStack \u4e91\uff0c\u8be5\u4e91\u91c7\u7528 NFS \u5b58\u50a8\u548c VLAN \u5b9e\u73b0\u4e8c\u5c42\u9694\u79bb\uff08\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6241\u5e73\u5bb6\u5ead\u7f51\u7edc\uff09\uff0c\u5e76\u4e14\u6240\u6709\u64cd\u4f5c\u90fd\u5728\u5355\u4e2a\u786c\u4ef6\uff08\u670d\u52a1\u5668\/\u865a\u62df\u673a\uff09\u4e0a\u5b8c\u6210\u3002<\/p>\n\n\n\n<p>KVM\uff0c\u5373\u57fa\u4e8e\u5185\u6838\u7684\u865a\u62df\u673a\uff0c\u662f\u4e00\u79cd\u7528\u4e8e Linux \u5185\u6838\u7684\u865a\u62df\u5316\u6280\u672f\u3002KVM \u652f\u6301\u5728\u5177\u6709\u786c\u4ef6\u865a\u62df\u5316\u6269\u5c55\u7684\u5904\u7406\u5668\u4e0a\u8fdb\u884c\u539f\u751f\u865a\u62df\u5316\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5148\u51b3\u6761\u4ef6<\/strong><\/li>\n<\/ul>\n\n\n\n<p>1. \u81f3\u5c11\u6709\u4e00\u53f0\u652f\u6301\u5e76\u5df2\u542f\u7528\u786c\u4ef6\u865a\u62df\u5316\u7684\u8ba1\u7b97\u673a\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. \u4e00\u4e2a\u6781\u7b80\u7684 EL8 \u53d1\u884c\u7248\uff0c\u5982\uff1a<\/p>\n\n\n\n<p><strong>Oracle Linux 8<\/strong>&nbsp;&#8211; https:\/\/yum.oracle.com\/oracle-linux-isos.html<\/p>\n\n\n\n<p><strong>Rocky Linux 8<\/strong>&nbsp;&#8211; https:\/\/rockylinux.org\/download<\/p>\n\n\n\n<p><strong>AlmaLinux 8<\/strong>&nbsp;&#8211; https:\/\/almalinux.org\/get-almalinux\/<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>3. \u4e00\u4e2a\u7f51\u5173\u5730\u5740\u4e3a xxx.xxx.xxx.1 \u7684 \/24 \u7f51\u7edc\uff0c\u8be5\u7f51\u7edc\u4e0d\u9700\u8981 DHCP\uff0c\u8fd0\u884c CloudStack \u7684\u6240\u6709\u8ba1\u7b97\u673a\u90fd\u4e0d\u4f1a\u4f7f\u7528\u52a8\u6001\u5730\u5740\u3002\u8fd9\u6837\u505a\u662f\u4e3a\u4e86\u7b80\u5316\u914d\u7f6e\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u73af\u5883<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>\u64cd\u4f5c\u7cfb\u7edf<\/strong><\/p>\n\n\n\n<p>\u5728\u786c\u4ef6\u4e0a\u5b89\u88c5\u9996\u9009\u7684 EL8 \u53d1\u884c\u7248\u3002\u9ed8\u8ba4\u8bbe\u7f6e\u901a\u5e38\u53ef\u4ee5\u6ee1\u8db3\u672c\u6b21\u5b89\u88c5\u9700\u6c42\uff0c\u4f46\u8bf7\u52a1\u5fc5\u914d\u7f6e IP \u5730\u5740\/\u53c2\u6570\uff0c\u4ee5\u4fbf\u7a0d\u540e\u53ef\u4ee5\u4ece\u4e92\u8054\u7f51\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002\u4e4b\u540e\u5c06\u6839\u636e\u9700\u8981\u66f4\u6539\u7f51\u7edc\u914d\u7f6e\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u8981\u901a\u8fc7 SSH \u8bbf\u95ee\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n<p>\u542f\u52a8\u524d\u6700\u597d\u5148\u66f4\u65b0\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf -y upgrade<\/em><\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u914d\u7f6e\u7f51\u7edc<\/strong><\/p>\n\n\n\n<p>\u4ece EL8 \u5f00\u59cb\uff0c\u5fc5\u987b\u4f7f\u7528\u7f51\u7edc\u7ba1\u7406\u5668\u6765\u914d\u7f6e\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u5c06\u9996\u5148\u521b\u5efa Cloudstack \u7528\u4e8e\u7f51\u7edc\u8fde\u63a5\u7684\u6865\u63a5\u5668\u3002\u4e3a\u907f\u514d\u8fdc\u7a0b\uff08SSH\uff09\u8fde\u63a5\u65ad\u5f00\uff0c\u60a8\u5e94\u8be5\u901a\u8fc7\u63a7\u5236\u53f0\/\u7269\u7406\u5c4f\u5e55\u5728\u672c\u5730\u767b\u5f55\u670d\u52a1\u5668\uff08\u6216\u8005\u5c06\u4ee5\u4e0b\u547d\u4ee4\u4fdd\u5b58\u4e3a\u811a\u672c\uff0c\u7136\u540e\u901a\u8fc7\u8fdc\u7a0b SSH \u4f1a\u8bdd\u8fd0\u884c\u5b83\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#create an \"empty\u201d bridge, add eth0 to the bridge, set static IP and reactivate the whole configuration\nnmcli connection add type bridge con-name cloudbr0 ifname cloudbr0\nnmcli connection modify eth0 master cloudbr0\nnmcli connection up eth0\nnmcli connection modify cloudbr0 ipv4.addresses '172.16.10.2\/24' ipv4.gateway '172.16.10.1' ipv4.dns '8.8.8.8' ipv4.method manual &amp;&amp; nmcli connection up cloudbr0<\/code><\/pre>\n\n\n\n<p>\u8fd8\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u7f51\u7edc\u5de5\u5177\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf install net-tools -y<\/em><\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u914d\u7f6e\u6587\u4ef6\u5df2\u7ecf\u6b63\u786e\u8bbe\u7f6e\u597d\u4e86\uff0c\u8ba9\u6211\u4eec\u91cd\u542f\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># reboot<\/em><\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u4e3b\u673a\u540d<\/strong><\/p>\n\n\n\n<p>CloudStack \u8981\u6c42\u6b63\u786e\u8bbe\u7f6e\u4e3b\u673a\u540d\u3002\u5982\u679c\u60a8\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4f7f\u7528\u4e86\u9ed8\u8ba4\u9009\u9879\uff0c\u5219\u5f53\u524d\u4e3b\u673a\u540d\u8bbe\u7f6e\u4e3a localhost.localdomain\u3002\u4e3a\u4e86\u6d4b\u8bd5\u8fd9\u4e00\u70b9\uff0c\u6211\u4eec\u5c06\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># hostname --fqdn<\/em><\/code><\/pre>\n\n\n\n<p>\u6b64\u65f6\u5b83\u5f88\u53ef\u80fd\u4f1a\u8fd4\u56de\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost<\/code><\/pre>\n\n\n\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u5c06\u4e3b\u673a\u540d\u8bbe\u7f6e\u4e3a\u4e0e\u4ee5\u4e0b\u793a\u4f8b\u7c7b\u4f3c\u7684\u683c\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hostnamectl&nbsp;set-hostname server.local --static<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539\u5b8c\u8be5\u6587\u4ef6\u540e\uff0c\u8bf7\u91cd\u542f\u7535\u8111\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># reboot<\/em><\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u7528\u4ee5\u4e0b\u547d\u4ee4\u91cd\u65b0\u68c0\u67e5\u4e3b\u673a\u540d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># hostname --fqdn<\/em><\/code><\/pre>\n\n\n\n<p>\u5e76\u786e\u4fdd\u5b83\u8fd4\u56de FQDN \u54cd\u5e94\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>SELinux<\/strong><\/p>\n\n\n\n<p>\u7406\u60f3\u60c5\u51b5\u4e0b\uff0cSELinux \u5e94\u8bbe\u7f6e\u4e3a\u5f3a\u5236\u6a21\u5f0f\uff0c\u5e76\u521b\u5efa\u5fc5\u8981\u7684 SELinux \u7b56\u7565\u4ee5\u5141\u8bb8\u670d\u52a1\u8fd0\u884c\u3002\u4f46\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u4eec\u5c06 SELinux \u8bbe\u7f6e\u4e3a\u5bbd\u5bb9\u6a21\u5f0f\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u65e0\u9700\u62c5\u5fc3 SELinux \u7b56\u7565\u7684\u60c5\u51b5\u4e0b\u5b89\u88c5\u548c\u914d\u7f6e\u670d\u52a1\u3002<\/p>\n\n\n\n<p>\u8981\u5728\u8fd0\u884c\u7684\u7cfb\u7edf\u4e2d\u5c06 SELinux \u914d\u7f6e\u4e3a\u5bbd\u5bb9\u6a21\u5f0f\uff0c\u6211\u4eec\u9700\u8981\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># setenforce 0<\/em><\/code><\/pre>\n\n\n\n<p>\u4e3a\u4e86\u786e\u4fdd\u5b83\u4fdd\u6301\u8fd9\u79cd\u72b6\u6001\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6e \/etc\/selinux\/config \u6587\u4ef6\u4ee5\u53cd\u6620\u5bbd\u5bb9\u72b6\u6001\uff0c\u5982\u4e0b\u4f8b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># This file controls the state of SELinux on the system.\n# SELINUX= can take one of these three values:\n# enforcing - SELinux security policy is enforced.\n# permissive - SELinux prints warnings instead of enforcing.\n# disabled - No SELinux policy is loaded.\nSELINUX=permissive\n# SELINUXTYPE= can take one of these two values:\n# targeted - Targeted processes are protected,\n# mls - Multi Level Security protection.\nSELINUXTYPE=targeted<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>NTP (Chrony)<\/strong><\/p>\n\n\n\n<p>NTP \u914d\u7f6e\u5bf9\u4e8e\u4fdd\u6301\u4e91\u670d\u52a1\u5668\u4e0a\u6240\u6709\u65f6\u949f\u540c\u6b65\u81f3\u5173\u91cd\u8981\u3002\u4f46\u662f\uff0cNTP \u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5e76\u672a\u5b89\u88c5\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5c06\u5728\u6b64\u9636\u6bb5\u5b89\u88c5\u5e76\u914d\u7f6e NTP\u3002\u5b89\u88c5\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf -y install chrony<\/em><\/code><\/pre>\n\n\n\n<p>\u9ed8\u8ba4\u914d\u7f6e\u5b8c\u5168\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\uff0c\u6240\u4ee5\u6211\u4eec\u53ea\u9700\u8981\u542f\u7528\u5b83\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u5f00\u673a\u542f\u52a8\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl enable chronyd\n# systemctl start chronyd<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u914d\u7f6e CloudStack \u8f6f\u4ef6\u5305\u4ed3\u5e93<\/strong><\/p>\n\n\n\n<p>\u9700\u8981\u914d\u7f6e\u673a\u5668\u4ee5\u4f7f\u7528 CloudStack \u8f6f\u4ef6\u5305\u4ed3\u5e93\u3002\u8981\u6dfb\u52a0 CloudStack \u5b58\u50a8\u5e93\uff0c\u8bf7\u521b\u5efa \/etc\/yum.repos.d\/cloudstack.repo \u5e76\u63d2\u5165\u4ee5\u4e0b\u4fe1\u606f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;cloudstack] \nname=cloudstack \nbaseurl=http:\/\/download.cloudstack.org\/centos\/$releasever\/4.22\/ \nenabled=1 \ngpgcheck=0<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>NFS<\/strong><\/p>\n\n\n\n<p>\u6211\u4eec\u7684\u914d\u7f6e\u5c06\u4f7f\u7528 NFS \u4f5c\u4e3a\u4e3b\u5b58\u50a8\u548c\u8f85\u52a9\u5b58\u50a8\u3002\u6211\u4eec\u5c06\u4e3a\u6b64\u8bbe\u7f6e\u4e24\u4e2a NFS \u5171\u4eab\u3002\u9996\u5148\uff0c\u6211\u4eec\u5c06\u5b89\u88c5 nfs-utils\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf -y install nfs-utils<\/em><\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u9700\u8981\u914d\u7f6e NFS \u4ee5\u63d0\u4f9b\u4e24\u4e2a\u4e0d\u540c\u7684\u5171\u4eab\u3002\u8fd9\u5728 \/etc\/exports \u6587\u4ef6\u4e2d\u8fdb\u884c\u914d\u7f6e\u3002\u60a8\u5e94\u8be5\u786e\u4fdd\u8be5\u6587\u4ef6\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/export\/secondary *(rw,async,no_root_squash,no_subtree_check) \n\/export\/primary *(rw,async,no_root_squash,no_subtree_check)<\/code><\/pre>\n\n\n\n<p>\u60a8\u4f1a\u6ce8\u610f\u5230\uff0c\u6211\u4eec\u6307\u5b9a\u4e86\u4e24\u4e2a\u7cfb\u7edf\u4e2d\u5c1a\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u8fd9\u4e9b\u76ee\u5f55\u5e76\u8bbe\u7f6e\u76f8\u5e94\u7684\u6743\u9650\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mkdir -p \/export\/primary\n# mkdir \/export\/secondary<\/code><\/pre>\n\n\n\n<p>NFSv4 \u8981\u6c42\u6240\u6709\u5ba2\u6237\u7aef\u7684\u57df\u8bbe\u7f6e\u5fc5\u987b\u4e00\u81f4\u3002\u5728\u672c\u4f8b\u4e2d\uff0c\u57df\u4e3a\u201clocal\u201d\uff0c\u56e0\u6b64\u8bf7\u786e\u4fdd \/etc\/idmapd.conf \u4e2d\u7684\u57df\u8bbe\u7f6e\u5df2\u53d6\u6d88\u6ce8\u91ca\uff0c\u5e76\u6309\u5982\u4e0b\u65b9\u5f0f\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Domain&nbsp;= local<\/code><\/pre>\n\n\n\n<p>\u4e3a\u4e86\u7b80\u5316\u64cd\u4f5c\uff0c\u6211\u4eec\u9700\u8981\u7981\u7528\u9632\u706b\u5899\uff0c\u4ee5\u514d\u5b83\u963b\u6b62\u8fde\u63a5\u3002\u4e3a\u6b64\uff0c\u53ea\u9700\u4f7f\u7528\u4ee5\u4e0b\u4e24\u4e2a\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl stop firewalld\n# systemctl disable firewalld<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u9700\u8981\u914d\u7f6e nfs \u670d\u52a1\u4ee5\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c\uff0c\u5e76\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5728\u4e3b\u673a\u4e0a\u5b9e\u9645\u542f\u52a8\u5b83\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl enable rpcbind\n# systemctl enable nfs-server\n# systemctl start rpcbind\n# systemctl start nfs-server<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7ba1\u7406\u670d\u52a1\u5668\u5b89\u88c5<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>\u6570\u636e\u5e93\u5b89\u88c5\u548c\u914d\u7f6e<\/strong><\/p>\n\n\n\n<p>\u6211\u4eec\u5c06\u9996\u5148\u5b89\u88c5 MySQL \u5e76\u914d\u7f6e\u4e00\u4e9b\u9009\u9879\uff0c\u4ee5\u786e\u4fdd\u5b83\u80fd\u4e0e CloudStack \u826f\u597d\u8fd0\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf -y install mysql-server<\/em><\/code><\/pre>\n\n\n\n<p>MySQL \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u5bf9 `\/etc\/my.cnf.d\/mysql-server.cnf` \u6587\u4ef6\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\u66f4\u6539\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u6211\u4eec\u9700\u8981\u5728 `[mysqld]` \u90e8\u5206\u6dfb\u52a0\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>innodb_rollback_on_timeout=1\ninnodb_lock_wait_timeout=600\nmax_connections=350\nlog_bin=mysql-bin\nbinlog_format=ROW<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728 MySQL \u5df2\u7ecf\u914d\u7f6e\u5b8c\u6bd5\uff0c\u6211\u4eec\u53ef\u4ee5\u542f\u52a8\u5b83\u5e76\u5c06\u5176\u914d\u7f6e\u4e3a\u5f00\u673a\u542f\u52a8\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl enable mysqld\n# systemctl start mysqld<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u5b89\u88c5<\/strong><\/p>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u8981\u5b89\u88c5\u7ba1\u7406\u670d\u52a1\u5668\u3002\u6211\u4eec\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b8c\u6210\u6b64\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf -y install cloudstack-management<\/em><\/code><\/pre>\n\n\n\n<p>CloudStack 4.22 \u9700\u8981 Java 17 JRE\u3002\u5b89\u88c5\u7ba1\u7406\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u5b89\u88c5 Java 17\uff0c\u4f46\u6700\u597d\u660e\u786e\u786e\u8ba4 Java 17 \u662f\u5df2\u9009\u62e9\/\u6fc0\u6d3b\u7684\u7248\u672c\uff08\u4ee5\u9632\u60a8\u4e4b\u524d\u5df2\u5b89\u88c5\u8fc7\u5176\u4ed6 Java \u7248\u672c\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$&nbsp;alternatives --config java<\/code><\/pre>\n\n\n\n<p>\u5e94\u7528\u7a0b\u5e8f\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u6211\u4eec\u73b0\u5728\u53ef\u4ee5\u8bbe\u7f6e\u6570\u636e\u5e93\u4e86\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u548c\u9009\u9879\u6765\u5b8c\u6210\u6b64\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cloudstack-setup-databases cloud:password@localhost --deploy-as=root<\/code><\/pre>\n\n\n\n<p>\u8be5\u8fc7\u7a0b\u5b8c\u6210\u540e\uff0c\u60a8\u5e94\u8be5\u4f1a\u770b\u5230\u7c7b\u4f3c\u201cCloudStack \u5df2\u6210\u529f\u521d\u59cb\u5316\u6570\u636e\u5e93\u201d\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n<p>\u6570\u636e\u5e93\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b8c\u6210\u7ba1\u7406\u670d\u52a1\u5668\u7684\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># cloudstack-setup-management<\/em><\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u7cfb\u7edf\u6a21\u677f\u8bbe\u7f6e<\/strong><\/p>\n\n\n\n<p>CloudStack \u4f7f\u7528\u591a\u4e2a\u7cfb\u7edf\u865a\u62df\u673a\u6765\u63d0\u4f9b\u8bbf\u95ee\u5b9e\u4f8b\u63a7\u5236\u53f0\u3001\u63d0\u4f9b\u5404\u79cd\u7f51\u7edc\u670d\u52a1\u4ee5\u53ca\u7ba1\u7406\u5b58\u50a8\u5404\u4e2a\u65b9\u9762\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u9700\u8981\u4e0b\u8f7d systemVM \u6a21\u677f\u5e76\u5c06\u5176\u90e8\u7f72\u5230\u8f85\u52a9\u5b58\u50a8\u3002\u7531\u4e8e\u6211\u4eec\u5df2\u7ecf\u5728 NFS \u670d\u52a1\u5668\u4e0a\uff0c\u56e0\u6b64\u5c06\u4f7f\u7528\u672c\u5730\u8def\u5f84 (\/export\/secondary)\u3002\u5426\u5219\uff0c\u60a8\u9700\u8981\u5c06\u8f85\u52a9\u5b58\u50a8\u6302\u8f7d\u5230\u4e34\u65f6\u6302\u8f7d\u70b9\uff0c\u5e76\u4f7f\u7528\u8be5\u6302\u8f7d\u70b9\u800c\u4e0d\u662f \/export\/secondary \u8def\u5f84\u3002\u6267\u884c\u4ee5\u4e0b\u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/share\/cloudstack-common\/scripts\/storage\/secondary\/cloud-install-sys-tmplt -m \/export\/secondary -u http:\/\/download.cloudstack.org\/systemvm\/4.22\/systemvmtemplate-4.22.0-x86_64-kvm.qcow2.bz2&nbsp;-h kvm&nbsp;-F<\/code><\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0c\u7ba1\u7406\u670d\u52a1\u5668\u7684\u914d\u7f6e\u5c31\u5b8c\u6210\u4e86\u3002\u6211\u4eec\u8fd8\u9700\u8981\u914d\u7f6e CloudStack\uff0c\u4f46\u4f1a\u5728\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u8bbe\u7f6e\u5b8c\u6210\u540e\u518d\u8fdb\u884c\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>KVM \u8bbe\u7f6e\u548c\u5b89\u88c5<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>\u5b89\u88c5<\/strong><\/p>\n\n\n\n<p>\u6211\u4eec\u8fd8\u628a\u7ba1\u7406\u670d\u52a1\u5668\u7528\u4f5c\u8ba1\u7b97\u8282\u70b9\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u5728\u8bbe\u7f6e\u7ba1\u7406\u670d\u52a1\u5668\u65f6\u5df2\u7ecf\u5b8c\u6210\u4e86\u8bb8\u591a\u5148\u51b3\u6b65\u9aa4\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5 KVM \u4ee3\u7406\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u4e00\u6761\u547d\u4ee4\u5373\u53ef\uff0c\u4f46\u4e4b\u540e\u6211\u4eec\u9700\u8981\u914d\u7f6e\u4e00\u4e9b\u4e1c\u897f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># dnf -y install cloudstack-agent<\/em><\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>KVM \u914d\u7f6e<\/strong><\/p>\n\n\n\n<p>QEMU\u914d\u7f6e<\/p>\n\n\n\n<p>\u6211\u4eec\u9700\u8981\u7f16\u8f91 QEMU VNC \u914d\u7f6e\u3002\u5177\u4f53\u64cd\u4f5c\u65b9\u6cd5\u662f\u7f16\u8f91 \/etc\/libvirt\/qemu.conf \u6587\u4ef6\uff0c\u5e76\u786e\u4fdd\u4ee5\u4e0b\u884c\u5b58\u5728\u4e14\u672a\u88ab\u6ce8\u91ca\u6389\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vnc_listen=0.0.0.0<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Libvirt \u914d\u7f6e<\/p>\n\n\n\n<p>CloudStack \u4f7f\u7528 libvirt \u6765\u7ba1\u7406\u5b9e\u4f8b\u3002\u56e0\u6b64\uff0c\u6b63\u786e\u914d\u7f6e libvirt \u81f3\u5173\u91cd\u8981\u3002Libvirt \u662f cloud-agent \u7684\u4f9d\u8d56\u9879\uff0c\u5e94\u8be5\u5df2\u7ecf\u5b89\u88c5\u3002<\/p>\n\n\n\n<p>1. \u5373\u4f7f\u6211\u4eec\u53ea\u4f7f\u7528\u4e00\u53f0\u4e3b\u673a\uff0c\u4e5f\u5efa\u8bae\u60a8\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\u6765\u719f\u6089\u4e00\u822c\u8981\u6c42\u3002\u4e3a\u4e86\u5b9e\u73b0\u5b9e\u65f6\u8fc1\u79fb\uff0clibvirt \u5fc5\u987b\u76d1\u542c\u4e0d\u5b89\u5168\u7684 TCP \u8fde\u63a5\u3002\u6211\u4eec\u8fd8\u9700\u8981\u5173\u95ed libvirt \u5c1d\u8bd5\u4f7f\u7528\u591a\u64ad DNS \u5e7f\u64ad\u7684\u529f\u80fd\u3002\u8fd9\u4e24\u4e2a\u8bbe\u7f6e\u90fd\u5728 `\/etc\/libvirt\/libvirtd.conf` \u6587\u4ef6\u4e2d\u3002\u8bbe\u7f6e\u4ee5\u4e0b\u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>listen_tls = 0\nlisten_tcp = 1\ntcp_port = \"16509\"\nauth_tcp = \"none\"\nmdns_adv = 0<\/code><\/pre>\n\n\n\n<p>2. \u4ec5\u4ec5\u5728 libvirtd.conf \u4e2d\u542f\u7528\u201clisten_tcp\u201d\u662f\u4e0d\u591f\u7684\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u4fee\u6539\u53c2\u6570\uff0c\u8fd8\u9700\u8981\u4fee\u6539 \/etc\/sysconfig\/libvirtd\u3002\u53d6\u6d88\u6ce8\u91ca\u4ee5\u4e0b\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#LIBVIRTD_ARGS=\"--listen\"<\/code><\/pre>\n\n\n\n<p>\u4ece EL8 \u5f00\u59cb\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u5957\u63a5\u5b57\u63a9\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket<\/em><\/code><\/pre>\n\n\n\n<p>3. \u91cd\u542f libvirt<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># systemctl restart libvirtd<\/em><\/code><\/pre>\n\n\n\n<p>KVM\u914d\u7f6e\u5b8c\u6210<\/p>\n\n\n\n<p>\u4e3a\u4e86\u786e\u4fdd\u4e07\u65e0\u4e00\u5931\uff0c\u60a8\u5e94\u8be5\u68c0\u67e5 KVM \u5728\u60a8\u7684\u673a\u5668\u4e0a\u662f\u5426\u8fd0\u884c\u6b63\u5e38\uff08\u60a8\u5e94\u8be5\u770b\u5230 kvm_intel \u6216 kvm_amd \u6a21\u5757\u663e\u793a\u4e3a\u5df2\u52a0\u8f7d\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># lsmod | grep kvm\nkvm_intel              55496  0\nkvm                   337772  1 kvm_intel\nkvm_amd # if you are in AMD cpu<\/code><\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0cKVM \u7684\u5b89\u88c5\u548c\u914d\u7f6e\u5c31\u5b8c\u6210\u4e86\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u4f7f\u7528 CloudStack UI \u6765\u5b9e\u9645\u914d\u7f6e\u6211\u4eec\u7684\u4e91\u5e73\u53f0\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u914d\u7f6e<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>\u7528\u6237\u754c\u9762\u8bbf\u95ee<\/strong><\/p>\n\n\n\n<p>\u8981\u8bbf\u95ee CloudStack \u7684 Web \u754c\u9762\uff0c\u53ea\u9700\u5c06\u6d4f\u89c8\u5668\u6307\u5411\u60a8\u673a\u5668\u7684 IP \u5730\u5740\uff0c\u4f8b\u5982http:\/\/172.16.10.2:8080\/client\u3002\u9ed8\u8ba4\u7528\u6237\u540d\u662f\u201cadmin\u201d\uff0c\u9ed8\u8ba4\u5bc6\u7801\u662f\u201cpassword\u201d\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u8bbe\u7f6e\u533a\u57df\uff08Zone\uff09<\/strong><\/p>\n\n\n\n<p>\u533a\u57df\u662f CloudStack \u4e2d\u6700\u5927\u7684\u7ec4\u7ec7\u5b9e\u4f53\u2014\u2014\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u533a\u57df\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u7ee7\u7eed\u5b89\u88c5\u201d\u7ee7\u7eed &#8211; \u7cfb\u7edf\u4f1a\u63d0\u793a\u60a8\u66f4\u6539 root \u7ba1\u7406\u5458\u5bc6\u7801 &#8211; \u8bf7\u66f4\u6539\u5bc6\u7801\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/p>\n\n\n\n<p>\u6b64\u65f6\u4f1a\u5f39\u51fa\u4e00\u4e2a\u65b0\u7684\u533a\u57df\u5411\u5bfc\u3002\u8bf7\u9009\u62e9\u201c\u9ad8\u7ea7\u201d\uff08\u4e0d\u8981\u52fe\u9009\u201c\u5b89\u5168\u7ec4\u201d\uff09\uff0c\u7136\u540e\u5355\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/p>\n\n\n\n<p class=\"has-light-gray-color has-text-color has-link-color has-small-font-size wp-elements-e34dc824301ed07c3dbf19c7a23e159f\">* \u6211\u4eec\u5c06\u914d\u7f6e\u4e00\u4e2a\u9ad8\u7ea7\u533a\u57df\uff0c\u4ee5\u4fbf\u80fd\u591f\u8bbf\u95ee\u4e91\u7684\u201c\u7ba1\u7406\u201d\u7f51\u7edc\u548c\u201c\u516c\u5171\u201d\u7f51\u7edc\u2014\u2014\u6211\u4eec\u5c06\u4f7f\u7528\u76f8\u540c\u7684 CIDR\uff08\u4f46\u4f7f\u7528\u4e0d\u540c\u7684\u90e8\u5206\uff0c\u5373\u4e0d\u540c\u7684 IP \u5730\u5740\u8303\u56f4\uff09\u6765\u8bbf\u95ee\u201c\u7ba1\u7406\u201d\uff08Pod\uff09\u7f51\u7edc\u548c\u201c\u516c\u5171\u201d\u7f51\u7edc\u2014\u2014\u8fd9\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u662f\u7edd\u5bf9\u4e0d\u5141\u8bb8\u7684\u2014\u2014\u5728\u672c\u6307\u5357\u4e2d\uff0c\u8fd9\u6837\u505a\u4ec5\u7528\u4e8e\u6d4b\u8bd5\u76ee\u7684\uff01<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u533a\u57df\u8be6\u60c5<\/p>\n\n\n\n<p>\u5728\u6b64\u9875\u9762\u4e0a\uff0c\u6211\u4eec\u8f93\u5165 DNS \u670d\u52a1\u5668\u7684\u4f4d\u7f6e\u3002CloudStack \u533a\u5206\u5185\u90e8 DNS \u548c\u516c\u5171 DNS\u3002\u5185\u90e8 DNS \u4ec5\u7528\u4e8e\u89e3\u6790\u5185\u90e8\u4e3b\u673a\u540d\uff0c\u4f8b\u5982 NFS \u670d\u52a1\u5668\u7684 DNS \u540d\u79f0\u3002\u516c\u5171 DNS \u5219\u63d0\u4f9b\u7ed9\u8bbf\u5ba2\u5b9e\u4f8b\uff0c\u7528\u4e8e\u89e3\u6790\u516c\u5171 IP \u5730\u5740\u3002\u60a8\u53ef\u4ee5\u4e3a\u8fd9\u4e24\u79cd\u7c7b\u578b\u7684 DNS \u670d\u52a1\u5668\u6307\u5b9a\u540c\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u4f46\u5982\u679c\u8fd9\u6837\u505a\uff0c\u5219\u5fc5\u987b\u786e\u4fdd\u5185\u90e8 IP \u5730\u5740\u548c\u516c\u5171 IP \u5730\u5740\u90fd\u80fd\u8def\u7531\u5230\u8be5 DNS \u670d\u52a1\u5668\u3002\u5728\u6211\u4eec\u7684\u5177\u4f53\u6848\u4f8b\u4e2d\uff0c\u6211\u4eec\u4e0d\u4f1a\u4e3a\u5185\u90e8\u8d44\u6e90\u4f7f\u7528\u4efb\u4f55\u540d\u79f0\uff0c\u5e76\u4e14\u6211\u4eec\u4f1a\u5c06\u5b83\u4eec\u8bbe\u7f6e\u4e3a\u6307\u5411\u540c\u4e00\u4e2a\u5916\u90e8\u8d44\u6e90\uff0c\u8fd9\u6837\u5c31\u65e0\u9700\u989d\u5916\u914d\u7f6e\u540d\u79f0\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n<p>1. \u540d\u79f0 &#8211; \u6211\u4eec\u5c06\u628a\u6b64\u540d\u79f0\u8bbe\u7f6e\u4e3a\u5177\u6709\u63cf\u8ff0\u6027\u7684\u201cZone1\u201d\uff0c\u7528\u4e8e\u6211\u4eec\u7684\u4e91\u5e73\u53f0\u3002<\/p>\n\n\n\n<p>2. IPv4 DNS 1 &#8211; \u6211\u4eec\u5c06\u4e3a8.8.8.8\u6211\u4eec\u7684\u4e91\u8bbe\u7f6e\u6b64\u503c\u3002<\/p>\n\n\n\n<p>3. IPv4 DNS 2 &#8211; \u6211\u4eec\u5c06\u4e3a\u6211\u4eec\u7684\u4e91\u5e73\u53f0\u8bbe\u7f6e\u6b64\u98798.8.4.4\u3002<\/p>\n\n\n\n<p>4. \u5185\u90e8 DNS1 &#8211; \u6211\u4eec\u4e5f\u4f1a\u5c06\u5176\u8bbe\u7f6e8.8.8.8\u4e3a\u6211\u4eec\u7684\u4e91\u5e73\u53f0\u3002<\/p>\n\n\n\n<p>5. \u5185\u90e8 DNS2 &#8211; \u6211\u4eec\u4e5f\u4f1a\u5c06\u5176\u8bbe\u7f6e8.8.4.4\u4e3a\u6211\u4eec\u7684\u4e91\u5e73\u53f0\u3002<\/p>\n\n\n\n<p>6. \u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u2014\u2014\u8fd9\u5c06\u662f\u6b64\u533a\u57df\u4e2d\u4f7f\u7528\u7684\u4e3b\u8981\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u3002\u5728\u672c\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u9009\u62e9 KVM\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u7269\u7406\u7f51\u7edc<\/p>\n\n\n\n<p>Cloudstack \u652f\u6301\u591a\u79cd\u7f51\u7edc\u9694\u79bb\u65b9\u6cd5\u3002\u9ed8\u8ba4\u7684 VLAN \u9009\u9879\u8db3\u4ee5\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\u3002\u4e3a\u4e86\u63d0\u5347\u6027\u80fd\u548c\/\u6216\u5b89\u5168\u6027\uff0cCloudstack \u5141\u8bb8\u4e0d\u540c\u7c7b\u578b\u7684\u6d41\u91cf\u901a\u8fc7\u8fde\u63a5\u5230\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u7684\u4e13\u7528\u7f51\u5361\u4f20\u8f93\u3002\u6211\u4eec\u4e0d\u4f1a\u5728\u6b64\u5904\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\uff0c\u9ed8\u8ba4\u8bbe\u7f6e\u5bf9\u4e8e\u672c\u6b21 Cloudstack \u6f14\u793a\u5b89\u88c5\u6765\u8bf4\u5df2\u7ecf\u8db3\u591f\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u516c\u5171\u6d41\u91cf<\/p>\n\n\n\n<p>\u5728\u6b63\u5e38\u7684\/\u516c\u5171\u4e91\u90e8\u7f72\u4e2d\uff0c\u5fc5\u987b\u4e3a\u6b64\u76ee\u7684\u5206\u914d\u53ef\u516c\u5f00\u8bbf\u95ee\u7684 IP \u5730\u5740\uff0c\u4f46\u7531\u4e8e\u6211\u4eec\u53ea\u662f\u90e8\u7f72\u4e00\u4e2a\u6f14\u793a\/\u6d4b\u8bd5\u73af\u5883\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u672c\u5730\u7f51\u7edc\u7684\u4e00\u90e8\u5206\uff08\u4f8b\u5982\u4ece .11 \u5230 .20 \u6216\u5176\u4ed6\u53ef\u7528\u8303\u56f4\uff09\u3002<\/p>\n\n\n\n<p>1. \u7f51\u5173 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528172.16.10.1# \u6216\u60a8\u7684\u7269\u7406\u7f51\u5173\u5730\u5740\uff0c\u4f8b\u5982 192.168.1.1<\/p>\n\n\n\n<p>2. \u5b50\u7f51\u63a9\u7801 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528255.255.255.0<\/p>\n\n\n\n<p>3. VLAN\/VNI &#8211; \u6b64\u9879\u7559\u7a7a<\/p>\n\n\n\n<p>4. \u8d77\u59cb IP \u5730\u5740 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528172.16.10.11#\uff08\u4f8b\u5982 192.168.1.11\uff09<\/p>\n\n\n\n<p>5. \u7ed3\u675f IP \u5730\u5740 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528172.16.10.20#\uff08\u4f8b\u5982 192.168.1.20\uff09<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u6dfb\u52a0\u201d\u4ee5\u6dfb\u52a0\u8303\u56f4\u3002\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Pod \u914d\u7f6e<\/p>\n\n\n\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u4e3a CloudStack \u7684\u5185\u90e8\u7ba1\u7406\u6d41\u91cf\u914d\u7f6e\u4e00\u4e2a IP \u5730\u5740\u8303\u56f4\u2014\u2014CloudStack \u4f1a\u5c06\u6b64\u8303\u56f4\u5185\u7684 IP \u5730\u5740\u5206\u914d\u7ed9\u7cfb\u7edf\u865a\u62df\u673a\u3002\u8fd9\u4e5f\u5c06\u6210\u4e3a\u6211\u4eec\u672c\u5730\u7f51\u7edc\u7684\u4e00\u90e8\u5206\uff08\u5373\u60a8\u672c\u5730\u5bb6\u5ead\u7f51\u7edc\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u8303\u56f4\u4ece .21 \u5230 .30\uff09\uff0c\u5176\u4f59 IP \u53c2\u6570\uff08\u5b50\u7f51\u63a9\u7801\/\u7f51\u5173\uff09\u4e0e\u516c\u5171\u6d41\u91cf\u4f7f\u7528\u7684\u53c2\u6570\u76f8\u540c\u3002<\/p>\n\n\n\n<p>1. Pod \u540d\u79f0 &#8211; \u6211\u4eec\u5c06\u7528\u4e8ePod1\u6211\u4eec\u7684\u4e91\u5e73\u53f0\u3002<\/p>\n\n\n\n<p>2. \u9884\u7559\u7cfb\u7edf\u7f51\u5173 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528172.16.10.1#\uff08\u6216\u60a8\u7684\u7269\u7406\u7f51\u5173\u5730\u5740\uff0c\u4f8b\u5982 192.168.1.1\uff09<\/p>\n\n\n\n<p>3. \u9884\u7559\u7cfb\u7edf\u5b50\u7f51\u63a9\u7801 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528255.255.255.0<\/p>\n\n\n\n<p>4. \u5f00\u59cb\u4f7f\u7528\u9884\u7559\u7cfb\u7edf IP \u5730\u5740 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528172.16.10.21#\uff08\u4f8b\u5982 192.168.1.21\uff09<\/p>\n\n\n\n<p>5. \u4fdd\u7559\u7cfb\u7edf IP \u5730\u5740\u7ed3\u675f &#8211; \u6211\u4eec\u5c06\u4f7f\u7528172.16.10.30#\uff08\u4f8b\u5982 192.168.1.30\uff09<\/p>\n\n\n\n<p>* \u4e0a\u8ff0\u7f51\u7edc\u5fc5\u987b\u662f\u7ba1\u7406\u7f51\u7edc\u7684\u5b50\u7f51\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u8bbf\u5ba2\u6d41\u91cf<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4e3a\u8bbf\u5ba2\u5b9e\u4f8b\u914d\u7f6e\u4e00\u7cfb\u5217 VLAN ID\u3002\u901a\u5e38 100-200\u7684\u8303\u56f4\u5c31\u8db3\u591f\u4e86\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u96c6\u7fa4 \uff08Cluster\uff09<\/strong><\/p>\n\n\n\n<p>\u4e00\u4e2a Pod \u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u96c6\u7fa4\uff0c\u4e00\u4e2a\u96c6\u7fa4\u4e5f\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u4e3b\u673a\u3002\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u96c6\u7fa4\uff0c\u5e76\u4e14\u9700\u8981\u4e3a\u8be5\u96c6\u7fa4\u547d\u540d\u3002\u8fdb\u5165Cluster1\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u4e3b\u673a \uff08Host\uff09<\/strong><\/p>\n\n\n\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u9700\u8981\u6307\u5b9a\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u4e3b\u673a\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u5728\u672c\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u7ba1\u7406\u670d\u52a1\u5668\u8fd0\u884c\u5728\u4e0e\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u76f8\u540c\u7684\u673a\u5668\u4e0a\u3002<\/p>\n\n\n\n<p>1. \u4e3b\u673a\u540d\u2014\u2014\u6211\u4eec\u5c06\u4f7f\u7528 IP \u5730\u5740\uff0c172.16.10.2\u56e0\u4e3a\u6211\u4eec\u6ca1\u6709\u8bbe\u7f6e DNS \u670d\u52a1\u5668\u8fdb\u884c\u540d\u79f0\u89e3\u6790\u3002\uff08\u8fd9\u662f\u60a8\u7684\u672c\u5730\u670d\u52a1\u5668\uff0c\u8bf7\u66ff\u6362\u4e3a\u6b63\u786e\u7684 IP \u5730\u5740\uff09<\/p>\n\n\n\n<p>2. \u7528\u6237\u540d &#8211; \u6211\u4eec\u5c06\u4f7f\u7528root<\/p>\n\n\n\n<p>3. \u5bc6\u7801 &#8211; \u8f93\u5165 root \u7528\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf\u5bc6\u7801<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u4e3b\u5b58\u50a8<\/strong><\/p>\n\n\n\n<p>\u96c6\u7fa4\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u60a8\u8f93\u5165\u4e3b\u5b58\u50a8\u4fe1\u606f\u3002\u8bf7\u5728\u76f8\u5e94\u5b57\u6bb5\u4e2d\u8f93\u5165\u4ee5\u4e0b\u503c\uff1a<\/p>\n\n\n\n<p>1. \u540d\u79f0 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528Primary1<\/p>\n\n\n\n<p>2. \u8303\u56f4\uff08Scope \uff09 \u2014\u2014 \u867d\u7136\u4e24\u79cd\u8303\u56f4\u53ef\u4ee5\uff0c\u4f46\u6211\u4eec\u8fd9\u91cc\u4f7f\u7528Cluster\u201c\u533a\u57df\u201d\u8303\u56f4\u3002\u6240\u6709\u96c6\u7fa4\u4e2d\u7684\u6240\u6709\u4e3b\u673a\u90fd\u53ef\u4ee5\u8bbf\u95ee\u6b64\u5b58\u50a8\u6c60\u3002<\/p>\n\n\n\n<p>3. \u534f\u8bae &#8211; \u6211\u4eec\u5c06\u4f7f\u7528NFS<\/p>\n\n\n\n<p>4. \u670d\u52a1\u5668 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528 IP \u5730\u5740172.16.10.2\uff08\u8fd9\u662f\u60a8\u7684\u672c\u5730\u670d\u52a1\u5668\uff0c\u8bf7\u66ff\u6362\u4e3a\u6b63\u786e\u7684 IP \u5730\u5740\uff09<\/p>\n\n\n\n<p>5. \u8def\u5f84\u2014\u2014\u6211\u4eec\u5c06\u5176\u5b9a\u4e49\/export\/primary\u4e3a\u6211\u4eec\u6b63\u5728\u4f7f\u7528\u7684\u8def\u5f84\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>\u4e8c\u7ea7\u5b58\u50a8<\/strong><\/p>\n\n\n\n<p>\u7cfb\u7edf\u4f1a\u63d0\u793a\u60a8\u8f93\u5165\u4e8c\u7ea7\u5b58\u50a8\u4fe1\u606f &#8211; \u8bf7\u6309\u5982\u4e0b\u65b9\u5f0f\u586b\u5199\uff1a<\/p>\n\n\n\n<p>1. \u63d0\u4f9b\u5546 &#8211; \u9009\u62e9NFS<\/p>\n\n\n\n<p>2. \u540d\u79f0 -Secondary1<\/p>\n\n\n\n<p>3. NFS \u670d\u52a1\u5668 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528 IP \u5730\u5740172.16.10.2\uff08\u8fd9\u662f\u60a8\u7684\u672c\u5730\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u8bf7\u66ff\u6362\u4e3a\u6b63\u786e\u7684 IP \u5730\u5740\uff09<\/p>\n\n\n\n<p>4. \u8def\u5f84 &#8211; \u6211\u4eec\u5c06\u4f7f\u7528\/export\/secondary<\/p>\n\n\n\n<p>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u73b0\u5728\uff0c\u70b9\u51fb\u201c\u542f\u52a8\u533a\u57df\u201d\uff0c\u60a8\u7684\u4e91\u670d\u52a1\u5e94\u8be5\u4f1a\u5f00\u59cb\u8bbe\u7f6e\u2014\u2014\u8bbe\u7f6e\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u624d\u80fd\u5b8c\u6210\u3002\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201c\u542f\u7528\u533a\u57df\u201d\uff0c\u60a8\u7684\u533a\u57df\u5373\u53ef\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u81f3\u6b64\uff0c\u60a8\u7684 Apache CloudStack \u6f14\u793a\u4e91\u5df2\u5b89\u88c5\u5b8c\u6bd5\u3002<\/p>\n\n\n\n<p>\u8981\u68c0\u67e5 CloudStack \u5b89\u88c5\u7684\u8fd0\u884c\u72b6\u51b5\uff0c\u8bf7\u8f6c\u5230\u201c\u57fa\u7840\u67b6\u6784\u201d-&gt;\u201c\u7cfb\u7edf\u865a\u62df\u673a\u201d\uff0c\u5e76\u5b9a\u671f\u5237\u65b0\u7528\u6237\u754c\u9762\u3002\u60a8\u5e94\u8be5\u770b\u5230\u201cS-1-VM\u201d\u548c\u201cV-2-VM\u201d\u7cfb\u7edf\u865a\u62df\u673a\uff08SSVM \u548c CPVM\uff09\u7684\u72b6\u6001\u5206\u522b\u4e3a\u201c\u8fd0\u884c\u4e2d\u201d\u548c\u201c\u4ee3\u7406\u72b6\u6001\u201d\u3002<\/p>\n\n\n\n<p>\u4e4b\u540e\uff0c\u60a8\u53ef\u4ee5\u8f6c\u5230\u201c\u955c\u50cf\u201d-&gt;\u201c\u6a21\u677f\u201d\uff0c\u70b9\u51fb\u540d\u4e3a\u201cCentOS 5.5(64 \u4f4d) \u65e0 GUI (KVM)\u201d\u7684\u5185\u7f6e\u6a21\u677f\uff0c\u7136\u540e\u70b9\u51fb\u201c\u533a\u57df\u201d\u9009\u9879\u5361\uff0c\u89c2\u5bdf\u72b6\u6001\u5982\u4f55\u4ece\u51e0\u4e2a\u767e\u5206\u70b9\u7684\u4e0b\u8f7d\u8fdb\u5ea6\u9010\u6e10\u53d8\u4e3a\u5b8c\u5168\u4e0b\u8f7d\uff0c\u4e4b\u540e\u72b6\u6001\u5c06\u663e\u793a\u4e3a\u201c\u4e0b\u8f7d\u5b8c\u6210\u201d\uff0c\u201c\u5c31\u7eea\u201d\u5217\u5c06\u663e\u793a\u4e3a\u201c\u662f\u201d\u3002\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u4f7f\u7528\u6b64\u6a21\u677f\u90e8\u7f72\u5b9e\u4f8b\u4e86\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<p>\u4ee5\u4e0a\u5185\u5bb9\u4e3b\u8981\u6765\u81ea\u5bf9&nbsp;docs.cloudstack.apache.org \u7684\u5b66\u4e60\uff0c\u5728\u6b64\u7279\u522b\u58f0\u660e\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cHi\uff0c\u8fd9\u662f\u5c0f5\u81ea\u5b66 CloudStack \u76f8\u5173\u77e5\u8bc6\u7684\u7b2c6\u7bc7\u7b14\u8bb0\u3002\u5728\u5b66\u4e60\u65f6\u6211\u4eec\u4f1a\u9700\u8981\u5bf9 CloudStack \u8fdb\u884c\u5feb\u901f\u90e8\u7f72\u4ee5\u5b8c\u6210\u5b9e\u64cd\u3002\u672c\u671f\u5c06\u4ecb\u7ecd\u5feb\u901f\u90e8\u7f72\u7684\u57fa\u7840\u77e5\u8bc6\u3002\u201d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-508","post","type-post","status-publish","format-standard","hentry","category-9","entry"],"_links":{"self":[{"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=508"}],"version-history":[{"count":12,"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=\/wp\/v2\/posts\/508\/revisions\/520"}],"wp:attachment":[{"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.libra5.cool\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}