{"id":2984,"date":"2023-10-15T02:28:53","date_gmt":"2023-10-14T18:28:53","guid":{"rendered":"https:\/\/www.wjxy.net.cn\/?p=2984"},"modified":"2023-10-15T14:46:48","modified_gmt":"2023-10-15T06:46:48","slug":"%e5%9c%a8pve%e7%8e%af%e5%a2%83%e4%b8%8b%e6%89%93%e5%bc%80sriov","status":"publish","type":"post","link":"https:\/\/www.wjxy.net.cn\/?p=2984","title":{"rendered":"\u5728PVE\u73af\u5883\u4e0b\u6253\u5f00SRIOV"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>Single root input\/output virtualization<\/strong>(<strong>SR-IOV<\/strong>), \u662f\u4e00\u79cd\u5148\u8fdb\u7684\u865a\u62df\u5316\u6280\u672f\uff0c\u4ee5\u7f51\u5361\u4e3a\u4f8b\uff0c\u5b83\u53ef\u4ee5\u5728\u4e00\u4e2a\u7269\u7406\u529f\u80fdPF(\u4e00\u4e2a\u7f51\u53e3)\u4e0a\u5f00\u51fa\u591a\u4e2a\u865a\u62df\u529f\u80fd(\u865a\u62df\u7f51\u5361)\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u4ee4\u865a\u62df\u673a\u4e0e\u5916\u754c\u7684\u8fde\u63a5\u9ad8\u6548\u53ef\u9760\uff0c\u5f80\u5f80\u4f1a\u91c7\u7528\u76f4\u901a\u7f51\u5361(PCIE Passthrough)\u7684\u65b9\u6cd5\uff0c\u4f46\u82e5\u662f\u7269\u7406\u673a\u4e2d\u5b58\u5728\u8f83\u591a\u7684\u865a\u62df\u673a\uff0c\u8fd9\u4e00\u65b9\u6cd5\u4fbf\u4e0d\u518d\u53ef\u884c\u3002\u6b64\u5916\uff0c\u91c7\u53d6\u76f4\u901a\u7f51\u5361\u7684\u8bf8\u591a\u865a\u62df\u673a\u4e4b\u95f4\uff0c\u5e76\u6ca1\u6709\u7f51\u7edc\u8fde\u63a5\u3002<\/p>\n\n\n\n<p>SR-IOV\u9488\u5bf9\u6027\u7684\u89e3\u51b3\u4e86\u4ee5\u4e0a\u4e24\u4e2a\u95ee\u9898\uff0c\u5f00\u542fSR-IOV\u4e4b\u540e\uff0c\u7269\u7406\u7f51\u53e3PF\u4e0e\u865a\u62df\u7f51\u53e3VFs(\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a)\u95f4\u4f1a\u5efa\u7acb\u4e00\u4e2a\u865a\u62df\u4ea4\u6362\u673a\uff0c\u8fd9\u4e2a\u865a\u62df\u4ea4\u6362\u673a\u5177\u6709\u5f88\u597d\u7684\u6027\u80fd\uff0c\u5f80\u5f80\u8fd8\u652f\u6301RDMA\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002\u5018\u82e5\u5c06VF\u76f4\u901a\u8fdb\u5165\u865a\u62df\u673a\uff0c\u8fd9\u4e00\u865a\u62df\u673a\u5c31\u4f1a\u4e0e\u5916\u754c\u3001\u4e0e\u5176\u4ed6\u6302\u5728\u540c\u4e00PF\u4e0b\u7684\u865a\u62df\u673a\uff0c\u5efa\u7acb\u9ad8\u6548\u7684\u8fde\u63a5\u3002\u8fd9\u4e9b\u8fde\u63a5\u662f\u7ed5\u8fc7\u5bbf\u4e3b\u673a\u5185\u6838\u7684\uff0c\u8fd9\u5c06\u5e26\u6765\u6781\u597d\u7684\u7f51\u7edc\u6027\u80fd\u3002<\/p>\n\n\n\n<p>Proxmox VE(PVE)\u662f\u5e38\u7528\u7684\u865a\u62df\u5316\u5e73\u53f0\uff0c\u672c\u6587\u5c06\u8ba8\u8bba\uff0c\u5982\u4f55\u5728PVE\u4e2d\u6253\u5f00SR-IOV\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>1. \u914d\u7f6eBIOS<\/p>\n\n\n\n<p>\u5728BIOS\u4e2d\u6253\u5f00\u4e0b\u9762\u8fd9\u4e9b\u9009\u9879<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>Vd-t, IO-MMU, SR-IOV<\/p>\n<\/blockquote>\n\n\n\n<p>2. \u5f00\u542fiommu<\/p>\n\n\n\n<p>\u4fee\u6539grub\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># vi \/etc\/default\/grub<\/code><\/pre>\n\n\n\n<p>\u5728GRUB_CMDLINE_LINUX_DEFAULT\u9879\u672b\u5c3e\u52a0\u4e0a\u4e0b\u9762\u7684\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># intel_iommu=on iommu=pt<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1246\" height=\"223\" src=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image.webp\" alt=\"\" class=\"wp-image-2985\" srcset=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image.webp 1246w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-300x54.webp 300w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1024x183.webp 1024w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-768x137.webp 768w\" sizes=\"(max-width: 1246px) 100vw, 1246px\" \/><\/figure>\n\n\n\n<p><strong>\u68c0\u67e5IOMMO\u529f\u80fd\u662f\u5426\u5f00\u542f<\/strong><\/p>\n\n\n\n<p>dmesg | grep -e DMAR -e IOMMU -e\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/pinpai.smzdm.com\/1701\/\" target=\"_blank\">AMD<\/a>-Vi<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"684\" height=\"355\" src=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1.png\" alt=\"\" class=\"wp-image-2995\" srcset=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1.png 684w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1-300x156.png 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/><\/figure>\n\n\n\n<p>\u663e\u793a IOMMU enabled\u8868\u793a\u5df2\u5f00\u542f<\/p>\n\n\n\n<p>\u5982\u679c\u6ca1\u6709\u51fa\u73b0\uff0c\u90a3\u4e48\u5728\/etc\/modprobe.d\/\u7684\u4efb\u610f\u4e00\u4e2a.conf\u4e0b\u589e\u52a0\u8fd9\u4e9b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> options vfio_iommu_type1 allow_unsafe_interrupts=1\n\u7136\u540e\nupdate-initramfs -u -k all\r\nreboot<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u652f\u6301\u591a\u5c11\u4e2a\u865a\u62df\u7f51\u5361:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>cat<\/code><code>\/sys\/class\/net\/eno1\/device\/sriov_totalvfs<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5f00\u542f\u865a\u62df\u6570\u91cf\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>echo <\/code><code>7 > <\/code><code>\/sys\/class\/net\/eno1\/device\/sriov_numvfs<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5173\u542f\u865a\u62df\u6570\u91cf\uff08\u4fee\u6539\u6570\u91cf\u5fc5\u987b\u5148\u5c06\u865a\u62df\u6570\u91cf\u6539\u4e3a0\u540e\u624d\u80fd\u5f00\u542f\uff09\uff1a<\/p>\n\n\n\n<p><code>echo 0 > \/sys\/class\/net\/eno1\/device\/sriov_numvfs<\/code><\/p>\n\n\n\n<p>3. \u7f16\u5199service\uff0c\u5728\u5f00\u673a\u8fc7\u7a0b\u4e2d\u6253\u5f00SR-IOV VFs<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cd \/etc\/init.d\n# vi net-sriov<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u7f51\u5361\u540d\u79f0\u4e0epci\u5730\u5740\u5bf9\u5e94\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>ls<\/code><code>-l <\/code><code>\/sys\/class\/net\/<\/code><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">\u5217\u51fa\u6240\u6709\u7f51\u5361\uff0c\u53ef\u89c1\u865a\u62df\u7f51\u5361\u5df2\u8bc6\u522b\u3002<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"891\" height=\"210\" src=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2.png\" alt=\"\" class=\"wp-image-2996\" srcset=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2.png 891w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2-300x71.png 300w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2-768x181.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u9762\u662f\u793a\u4f8b\u5185\u5bb9\uff0c\u53ef\u6839\u636e\u5177\u4f53\u60c5\u51b5\u4fee\u6539<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u6ce8\u518c\u7cfb\u7edf\u670d\u52a1\n\ncd \/etc\/systemd\/system\n\nvi sriov.service\n\n\u586b\u5165\u5185\u5bb9\n\n&#91;Unit]\n\nDescription=Script to enable SR-IOV on boot\n\n&#91;Service]\n\nType=simple\n\n#start SR-IOV\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/echo 12 &gt; \/sys\/class\/net\/enp1s0f0\/device\/sriov_numvfs'\n\n#&#91;echo 12 ]\u4e2d\u768412\u4e3a\u9700\u8981\u865a\u62df\u7684\u7f51\u5361\u6570\u91cf &#91;enp1s0f0]\u4e3a\u9700\u8981\u865a\u62df\u7684\u7f51\u5361\n\n#set VF MAC\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 0 mac 00:54:00:00:00:00'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 1 mac 00:54:00:00:00:01'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 2 mac 00:54:00:00:00:02'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 3 mac 00:54:00:00:00:03'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 4 mac 00:54:00:00:00:04'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 5 mac 00:54:00:00:00:05'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 6 mac 00:54:00:00:00:06'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 7 mac 00:54:00:00:00:07'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 8 mac 00:54:00:00:00:08'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 9 mac 00:54:00:00:00:09'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 10 mac 00:54:00:00:00:10'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set dev enp1s0f0 vf 11 mac 00:54:00:00:00:11'\n\n#set PF up\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0 up'\n\n#set VF up\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v0 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v1 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v2 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v3 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v4 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v5 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v6 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v7 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v8 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v9 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v10 up'\n\nExecStartPre=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v11 up'\n\nExecStart=\/usr\/bin\/bash -c '\/usr\/bin\/ip link set enp1s0f0v11 up'\n\nRestart=on-failure\n\n&#91;Install]\n\nWantedBy=multi-user.target\n\n\u4fdd\u5b58\n\n\u6309\u201cESC\u201d\u952e\uff0c\u7136\u540e\u8f93\u5165\":wq\"\n\n\u6ce8\u518c\u5f00\u673a\u542f\u52a8\u670d\u52a1\n\nsystemctl daemon-reload\n\nsystemctl enable sriov.service\n\n\u91cd\u542f\n\nreboot\n\ncase $1 in\n    start)\n        start\n        ;;\n    stop | force-stop)\n        stop\n        ;;\n    *)\n        echo \"Usage: $0 {start|stop}\" &gt;&amp;2\n        exit 1\n        ;;\nesac\n\nexit 0<\/code><\/pre>\n\n\n\n<p>\u4e4b\u540e\u542f\u7528\u670d\u52a1\uff0c\u91cd\u542fPVE\uff0c\u5c31\u80fd\u770b\u5230Sriov\u5f00\u51fa\u6765\u7684VF\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># chmod +x \/etc\/init.d\/net-sriov\n# systemctl enable net-sriov\n# update-initramfs -u -k all\n# update-grub\n# reboot<\/code><\/pre>\n\n\n\n<p>4. \u521b\u5efaVM<\/p>\n\n\n\n<p>\u5728VM\u7684Hardware\u680f\u4e2d\u8fdb\u884c\u6709\u5173\u914d\u7f6e<\/p>\n\n\n\n<p>Add-&gt;Pci Device\uff0c\u53ef\u4ee5\u770b\u5230Sriov\u529f\u80fd\u5f00\u51fa\u7684VF<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"554\" height=\"224\" src=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2.webp\" alt=\"\" class=\"wp-image-2987\" srcset=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2.webp 554w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-2-300x121.webp 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/figure>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">\u5728Hardware\u4e2d\uff0c\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\uff0c\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u9700\u8981\u5c06\u5185\u5b58\u8bbe\u7f6e\u4e3a &#8220;balloon=0&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1055\" height=\"566\" src=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1.webp\" alt=\"\" class=\"wp-image-2986\" srcset=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1.webp 1055w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1-300x161.webp 300w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1-1024x549.webp 1024w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-1-768x412.webp 768w\" sizes=\"(max-width: 1055px) 100vw, 1055px\" \/><\/figure>\n\n\n\n<p>\u53e6\u5916\uff0c\u53ef\u4ee5\u5728Options\u680f\u4e2d\uff0c\u8bbe\u7f6eStartup delay\uff0c\u4fdd\u8bc1SR-IOV\u670d\u52a1\u5f00\u542f\u540e\uff0c\u518d\u542f\u52a8\u865a\u62df\u673a\u3002<\/p>\n\n\n\n<p>2. \u6548\u679c<\/p>\n\n\n\n<p>\u7ecf\u8fc7\u8fd9\u4e9b\u8bbe\u7f6e\uff0cSR-IOV\u5c31\u6210\u529f\u5f00\u542f\u5566\uff0c\u5728\u865a\u62df\u673a\u4e2d\u53ef\u4ee5\u770b\u5230VF\u88ab\u6210\u529f\u8bc6\u522b\uff0c\u5e76\u4e14MAC\u5730\u5740\u4e0e\u6211\u4eec\u5728\u524d\u9762\u7684\u914d\u7f6e\u76f8\u7b26\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1246\" height=\"602\" src=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-3.webp\" alt=\"\" class=\"wp-image-2988\" srcset=\"https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-3.webp 1246w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-3-300x145.webp 300w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-3-1024x495.webp 1024w, https:\/\/www.wjxy.net.cn\/wp-content\/uploads\/2023\/10\/image-3-768x371.webp 768w\" sizes=\"(max-width: 1246px) 100vw, 1246px\" \/><\/figure>\n\n\n\n<p>\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u7ecf\u8fc7\u6d4b\u8bd5\uff0cSR-IOV\u6240\u5f00\u51fa\u7684VF\uff0c\u4e0d\u80fd\u88ab\u52a0\u5165Linux Bridge\u6216\u8005OVS-Bridge\uff0c\u53ea\u80fd\u4f5c\u4e3a\u57fa\u672c\u7684\u7f51\u7edc\u7aef\u53e3\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>Ubuntu\u3001CentOS\u8fd9\u4e9b\u7cfb\u7edf\u7528\u4e8e\u865a\u62df\u673a\uff0c\u90fd\u80fd\u76f4\u63a5\u4f7f\u7528VF\uff0c\u4f46\u5e38\u7528\u7684\u8f6f\u8def\u7531\u7cfb\u7edf\uff0c\u201dOpenWRT\u201d\uff0c\u5219\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u7f51\u5361\u9a71\u52a8\u624d\u80fd\u542f\u7528\u3002\u8fd9\u90e8\u5206\u7684\u5185\u5bb9\u53ef\u4ee5\u53c2\u7167\u6211\u7684Github\u7f51\u9875\uff0c\u5728release\u90e8\u5206\u6709\u5df2\u7ecf\u7f16\u8bd1\u597d\u7684\u56fa\u4ef6\u53ef\u4f9b\u4f7f\u7528\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/github.com\/allegro0132\/\n<\/div><\/figure>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Single root input\/output virtualization(SR-IOV), \u662f\u4e00\u79cd\u5148\u8fdb\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2984"}],"collection":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2984"}],"version-history":[{"count":5,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2984\/revisions"}],"predecessor-version":[{"id":3001,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2984\/revisions\/3001"}],"wp:attachment":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}