{"id":60,"date":"2026-10-20T12:01:00","date_gmt":"2026-10-20T20:01:00","guid":{"rendered":"\/?p=60"},"modified":"2026-10-20T12:01:00","modified_gmt":"2026-10-20T20:01:00","slug":"post-mvg5oggx","status":"publish","type":"post","link":"https:\/\/www.woiov.cn\/?p=60","title":{"rendered":"v7.1.x\uff1a595 \u4e4b\u8c1c\u2014\u2014\u4e00\u4e2a nodeId \u4e24\u79cd\u8eab\u4efd\u7684\u5751"},"content":{"rendered":"<p>\u6628\u5929\u63a5\u5165\u7b2c\u4e8c\u4e2a PVE \u8282\u70b9\u540e\uff0c\u8ba2\u5355\u4e00\u5f00\u5c31\u70b8\uff1a<strong>HTTP 595\uff0c\u54cd\u5e94\u4f53\u662f\u7a7a\u7684 <code>{\"raw\":\"\"}<\/code><\/strong>\u3002\u6392\u67e5\u4e86\u4e00\u6574\u5929\uff0c\u6a21\u677f\u4e0b\u8f7d\u4e86\u3001\u53c2\u6570\u9010\u4e2a\u6d4b\u4e86\u3001\u5b58\u50a8\u6865\u63a5\u90fd\u67e5\u4e86\u2014\u2014\u5168\u90e8\u6b63\u5e38\u3002\u6700\u540e\u53d1\u73b0\u662f\u4e00\u4e2a\u85cf\u5728\u9ed8\u8ba4\u53c2\u6570\u91cc\u7684\u4f4e\u7ea7\u9519\u8bef\uff0c\u800c\u5b83\u80fd\u6f5c\u4f0f\u8fd9\u4e48\u4e45\uff0c\u6070\u6070\u662f\u56e0\u4e3a\u300c\u5355\u8282\u70b9\u65f6\u6c38\u8fdc\u4e0d\u4f1a\u89e6\u53d1\u300d\u3002<\/p>\n<p>\u4eca\u5929\u8fde\u53d1\u56db\u4e2a\u5c0f\u7248\u672c\uff08v7.1.0 ~ v7.1.3\uff09\uff0c\u628a\u8fd9\u4ef6\u4e8b\u5f7b\u5e95\u4fee\u6389\u3002\u8fd9\u7bc7\u628a\u5168\u8fc7\u7a0b\u8bb0\u4e0b\u6765\uff0c\u56e0\u4e3a\u5b83\u66b4\u9732\u7684\u95ee\u9898\u6bd4 bug \u672c\u8eab\u66f4\u503c\u5f97\u8bf4\u3002<\/p>\n<h3>\u75c7\u72b6\uff1a595\uff0c\u6ca1\u6709\u4efb\u4f55\u4fe1\u606f<\/h3>\n<p>\u521b\u5efa\u5bb9\u5668\u7684\u65e5\u5fd7\u957f\u8fd9\u6837\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\n[02:45:54] \u90e8\u7f72\u8282\u70b9\uff1anode2\n[02:45:54] \u987a\u5e8f\u5206\u914d vmid = 202\n[02:45:54] \u8bf7\u6c42 PVE \u521b\u5efa\u5bb9\u5668\uff08vmid=202\uff0c\u6a21\u677f=debian-12-standard_12.12-1_amd64.tar.zst\uff09\n[02:45:55] \u274c \u5931\u8d25\uff1a\u521b\u5efa\u5bb9\u5668\u5931\u8d25\uff08595\uff09\uff1a{\"raw\":\"\"}\n<\/code><\/pre>\n<p>595 \u4e0d\u662f\u6807\u51c6 HTTP \u72b6\u6001\u7801\uff0c\u662f PVE \u5185\u90e8\u5f02\u5e38\u65f6\u8fd4\u56de\u7684\u3002\u5173\u952e\u662f\uff1a<strong>\u54cd\u5e94\u4f53\u662f\u7a7a\u7684<\/strong>\uff0c\u6ca1\u6709 message\uff0c\u6ca1\u6709 errors \u5b57\u6bb5\u3002\u800c PVE \u8282\u70b9\u4e0a\u8fde\u5bf9\u5e94\u7684\u4efb\u52a1\u8bb0\u5f55\u90fd\u6ca1\u6709\u2014\u2014\u8bf4\u660e\u8bf7\u6c42\u5728\u5230\u8fbe\u4efb\u52a1\u8c03\u5ea6\u5c42\u4e4b\u524d\u5c31\u88ab\u62d2\u4e86\u3002<\/p>\n<h3>\u6392\u67e5\uff1a\u5148\u628a\u80fd\u60f3\u5230\u7684\u90fd\u6392\u9664<\/h3>\n<p>\u6309\u9519\u8bef\u63d0\u793a\u7684\u5e38\u89c1\u539f\u56e0\u6328\u4e2a\u67e5\uff1a<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u6000\u7591\u5bf9\u8c61<\/th>\n<th>\u9a8c\u8bc1\u65b9\u6cd5<\/th>\n<th>\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6a21\u677f\u4e0d\u5b58\u5728<\/td>\n<td>\u76f4\u63a5\u67e5 storage content<\/td>\n<td>\u2705 debian-12 \u6a21\u677f\u5728\uff08118MB\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6a21\u677f\u67b6\u6784\u4e0d\u5bf9<\/td>\n<td>\u5217\u51fa\u5168\u90e8\u6a21\u677f<\/td>\n<td>\u2705 \u5168\u662f amd64\uff08arm64 \u7684\u5df2\u66ff\u6362\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u6570\u6709\u95ee\u9898<\/td>\n<td>\u624b\u5de5\u9010\u7ec4\u53c2\u6570 POST \u521b\u5efa<\/td>\n<td>\u2705 \u6700\u5c0f\u53c2\u6570\u3001\u52a0 swap\u3001\u52a0 ip6\u3001\u52a0 firewall\u2014\u2014\u5168\u90e8 HTTP 200<\/td>\n<\/tr>\n<tr>\n<td>\u6743\u9650\u4e0d\u8db3<\/td>\n<td>\u7528\u540c\u4e00\u4e2a token \u624b\u5de5\u521b\u5efa<\/td>\n<td>\u2705 \u6210\u529f<\/td>\n<\/tr>\n<tr>\n<td>vmid \u51b2\u7a81<\/td>\n<td>\u67e5 202 \u662f\u5426\u5b58\u5728<\/td>\n<td>\u2705 \u4e0d\u5b58\u5728<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u5168\u90e8\u6392\u9664\u4e4b\u540e\uff0c\u53ea\u5269\u4e00\u4e2a\u53ef\u80fd\uff1a<strong>\u8bf7\u6c42\u6839\u672c\u6ca1\u6253\u5230\u6b63\u786e\u7684\u8def\u5f84\u4e0a<\/strong>\u3002<\/p>\n<h3>\u6839\u56e0\uff1a\u4e00\u4e2a id\uff0c\u4e24\u79cd\u8eab\u4efd<\/h3>\n<p>\u770b createLxc \u7684\u4ee3\u7801\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\nasync createLxc({ ..., node = null }) {\n  const n = node || 'pve'                       \/\/ \u2190 \u9ed8\u8ba4\u503c\n  const r = await request(`\/nodes\/${n}\/lxc`, 'POST', null, body)\n}\n<\/code><\/pre>\n<p>\u800c\u73b0\u5b9e\u662f\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\n\u6211\u4eec\u7684 nodeId:   node2        \u2190 \u63a7\u5236\u53f0\u91cc\u7ed9\u8282\u70b9\u8d77\u7684\u540d\u5b57\nPVE \u7684\u8282\u70b9\u540d:    pve02        \u2190 PVE \u5b89\u88c5\u65f6\u7684 hostname\n\n\u8bf7\u6c42\u6253\u5230\u4e86 \/nodes\/pve\/lxc\n\u4f46 node2 \u4e0a\u6839\u672c\u6ca1\u6709\u53eb \"pve\" \u7684\u8282\u70b9\n\u2192 PVE \u8fd4\u56de 595\uff08\u8def\u5f84\u4e0d\u5b58\u5728\u8d70\u7684\u662f\u5185\u90e8\u5f02\u5e38\u5206\u652f\uff0c\u4e0d\u662f 404\uff09\n<\/code><\/pre>\n<p>\u90a3\u4e3a\u4ec0\u4e48\u4e3b\u8282\u70b9\u4e00\u76f4\u6ca1\u4e8b\uff1f<strong>\u56e0\u4e3a\u4e3b\u8282\u70b9\u7684 PVE \u8282\u70b9\u540d\u6070\u597d\u5c31\u53eb <code>pve<\/code><\/strong>\uff0c\u9ed8\u8ba4\u503c\u78b0\u5de7\u662f\u5bf9\u7684\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\n\u4e3b\u8282\u70b9\uff1anodeId='main'   PVE \u8282\u70b9\u540d='pve'    \u2190 \u9ed8\u8ba4\u503c\u78b0\u5de7\u547d\u4e2d\nnode2\uff1a nodeId='node2'  PVE \u8282\u70b9\u540d='pve02'  \u2190 \u9ed8\u8ba4\u503c\u9519\u4e86\n<\/code><\/pre>\n<p>\u5355\u8282\u70b9\u90e8\u7f72\u65f6\u8fd9\u4e2a bug \u6c38\u8fdc\u4e0d\u4f1a\u89e6\u53d1\u3002\u52a0\u7b2c\u4e8c\u4e2a\u8282\u70b9\u7684\u7b2c\u4e00\u5929\u5c31\u70b8\u4e86\u3002<\/p>\n<h3>\u4fee\u590d\uff1a\u81ea\u52a8\u63a2\u6d4b + \u7f13\u5b58\uff08v7.1.3\uff09<\/h3>\n<p>\u5728 PVE \u5ba2\u6237\u7aef\u5185\u90e8\u52a0\u8282\u70b9\u540d\u89e3\u6790\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\nlet _cachedNodeName = ''\nconst resolveNodeName = async () =&gt; {\n  if (_cachedNodeName) return _cachedNodeName\n  const nl = await api('\/nodes')\n  _cachedNodeName = (nl &amp;&amp; nl[0] &amp;&amp; nl[0].node) || 'pve'\n  return _cachedNodeName\n}\n<\/code><\/pre>\n<p>\u7136\u540e\u628a\u6240\u6709\u7528\u5230\u8282\u70b9\u540d\u7684\u65b9\u6cd5\u5168\u90e8\u6539\u6389\u2014\u2014\u4e00\u5171 9 \u4e2a\uff1a<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u6539\u524d<\/th>\n<th>\u6539\u540e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>createLxc<\/code><\/td>\n<td>`node \\<\/td>\n<td>\\<\/td>\n<td>&#8216;pve&#8217;`<\/td>\n<td>\u81ea\u52a8\u63a2\u6d4b<\/td>\n<\/tr>\n<tr>\n<td><code>destroyLxc<\/code><\/td>\n<td><code>node = 'pve'<\/code><\/td>\n<td>\u81ea\u52a8\u63a2\u6d4b<\/td>\n<\/tr>\n<tr>\n<td><code>waitForIp<\/code><\/td>\n<td>\u5185\u90e8\u5199\u6b7b<\/td>\n<td>\u81ea\u52a8\u63a2\u6d4b<\/td>\n<\/tr>\n<tr>\n<td><code>power<\/code><\/td>\n<td>\u5199\u6b7b<\/td>\n<td>\u81ea\u52a8\u63a2\u6d4b<\/td>\n<\/tr>\n<tr>\n<td><code>guestConfig<\/code> \/ <code>guestStatus<\/code> \/ <code>guestInterfaces<\/code><\/td>\n<td>\u5199\u6b7b<\/td>\n<td>\u81ea\u52a8\u63a2\u6d4b<\/td>\n<\/tr>\n<tr>\n<td><code>storages<\/code> \/ <code>storageStatus<\/code> \/ <code>templates<\/code> \/ <code>guestRrd<\/code><\/td>\n<td>\u5199\u6b7b<\/td>\n<td>\u81ea\u52a8\u63a2\u6d4b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>\u4fee\u5b8c\u540e\u7acb\u523b\u9a8c\u8bc1\uff1anode2 \u4e0a\u4e24\u53f0\u5bb9\u5668\uff08#202\u3001#205\uff09\u521b\u5efa\u6210\u529f\uff0c\u8ba2\u5355\u72b6\u6001 active\u3002<\/p>\n<h3>\u987a\u624b\u4fee\u7684\u4e09\u4ef6\u4e8b<\/h3>\n<p><strong>\u2460 595 \u9519\u8bef\u4fe1\u606f\u589e\u5f3a\uff08v7.1.1\uff09<\/strong>\uff1a\u521b\u5efa\u5931\u8d25\u65f6\u4e3b\u52a8\u62c9\u6700\u8fd1\u7684 vzcreate \u4efb\u52a1\u65e5\u5fd7\uff0c\u4ece\u91cc\u9762\u63d0\u53d6 error \u884c\u62fc\u8fdb\u9519\u8bef\u6d88\u606f\u3002\u4ee5\u540e\u518d\u9047\u5230 595\uff0c\u4e0d\u7528\u518d\u4e0a PVE \u7ffb\u65e5\u5fd7\u3002<\/p>\n<p><strong>\u2461 \u6a21\u677f\u6821\u9a8c\u52a0\u56fa\uff08v7.1.1\uff09<\/strong>\uff1a\u539f\u6765\u7684\u6a21\u677f\u5b58\u5728\u6027\u6821\u9a8c\u6709\u4e2a\u541e\u5f02\u5e38\u7684 catch\u2014\u2014<code>templates()<\/code> \u629b\u9519\u5c31\u9759\u9ed8\u8df3\u8fc7\u3002\u73b0\u5728\u6539\u6210\u53cc\u8def\u515c\u5e95\uff0c\u904d\u5386\u5b58\u50a8\u5931\u8d25\u5c31\u76f4\u63a5\u67e5 local \u5b58\u50a8\u7684 content\u3002<\/p>\n<p><strong>\u2462 \u8282\u70b9\u5220\u9664\u4fdd\u62a4\uff08v7.1.2\uff09<\/strong>\uff1a\u8fd9\u662f\u4eca\u5929\u53e6\u4e00\u573a\u5c0f\u4e8b\u6545\u3002\u914d\u7f6e\u91cc\u7684 <code>pve.nodes<\/code> \u88ab\u8bef\u6e05\u7a7a\u540e\uff0c\u7cfb\u7edf\u4e0d\u62a5\u9519\uff0c\u800c\u662f\u9759\u9ed8\u4ece\u8001\u5b57\u6bb5 <code>pve.host<\/code> \u515c\u5e95\u751f\u6210\u4e00\u4e2a main \u8282\u70b9\u2014\u2014\u754c\u9762\u4e0a\u770b\u8d77\u6765&#8221;\u6b63\u5e38&#8221;\uff0c\u5b9e\u9645\u4e0a node2 \u5df2\u7ecf\u6d88\u5931\u4e86\u3002\u73b0\u5728\uff1a\u5220\u9664\u8282\u70b9\u65f6\u5f3a\u5236\u6821\u9a8c\uff08\u4e0d\u80fd\u5220\u5230\u6ca1\u6709\u5269\u4f59\u8282\u70b9\u3001\u4e0d\u80fd\u6ca1\u6709\u4e3b\u8282\u70b9\uff09\u3001\u4e0d\u80fd\u628a\u552f\u4e00\u7684\u4e3b\u8282\u70b9\u964d\u7ea7\u3001\u542f\u52a8\u548c\u70ed\u52a0\u8f7d\u65f6\u68c0\u6d4b\u914d\u7f6e\u5f02\u5e38\u5e76\u544a\u8b66\u3002<\/p>\n<h3>\u5b66\u5230\u7684\u4e24\u4ef6\u4e8b<\/h3>\n<p><strong>\u4e00\u3001\u300c\u78b0\u5de7\u6b63\u786e\u7684\u9ed8\u8ba4\u503c\u300d\u662f\u6700\u5371\u9669\u7684 bug \u6e29\u5e8a\u3002<\/strong> \u5b83\u8ba9\u6240\u6709\u5355\u8282\u70b9\u6d4b\u8bd5\u90fd\u7eff\u7740\u901a\u8fc7\uff0c\u76f4\u5230\u7b2c\u4e8c\u4e2a\u8282\u70b9\u4e0a\u7ebf\u3002\u51e1\u662f\u300c\u6211\u4eec\u7684 id\u300d\u548c\u300c\u5916\u90e8\u7cfb\u7edf\u7684 id\u300d\u4e0d\u662f\u540c\u4e00\u4e2a\u4e1c\u897f\u7684\u5730\u65b9\uff0c\u6bcf\u6b21\u8c03\u7528\u90fd\u8981\u663e\u5f0f\u8f6c\u6362\uff0c\u4e0d\u8981\u7528\u9ed8\u8ba4\u503c\u515c\u5e95\u3002<\/p>\n<p><strong>\u4e8c\u3001\u515c\u5e95\u903b\u8f91\u5fc5\u987b Fail Soft + Fail Loud\u3002<\/strong> \u4ece\u8001\u914d\u7f6e\u5b57\u6bb5\u515c\u5e95\u751f\u6210\u8282\u70b9\u5217\u8868\uff0c\u4fdd\u8bc1\u4e86\u8001\u7528\u6237\u5347\u7ea7\u4e0d\u70b8\u2014\u2014\u8fd9\u662f Soft\uff1b\u4f46\u6ca1\u6709\u4efb\u4f55\u65e5\u5fd7\u8bf4\u300c\u6211\u5728\u515c\u5e95\u300d\u2014\u2014\u8fd9\u4e0d\u591f Loud\u3002\u6b63\u786e\u7684\u505a\u6cd5\u662f\uff1a\u670d\u52a1\u7ee7\u7eed\u8dd1\uff0c\u4f46\u65e5\u5fd7\u91cc\u5fc5\u987b\u7559\u4e0b\u75d5\u8ff9\uff0c\u5426\u5219\u6392\u67e5\u65f6\u65b9\u5411\u5b8c\u5168\u662f\u9519\u7684\u3002<\/p>\n<hr class=\"wp-block-separator\"\/>\n<p>\u4eca\u5929\u7684\u56db\u4e2a\u7248\u672c\u5df2\u7ecf\u5168\u90e8\u63a8\u5230\u7ebf\u4e0a\uff08\u5f53\u524d\u8fd0\u884c v7.1.3\uff09\uff0cnode2 \u8282\u70b9\u6b63\u5e38\u63a5\u5355\u4e2d\u3002\u63a5\u4e0b\u6765\u6392\u671f\u91cc\u7684\u662f\u76d1\u63a7\u544a\u8b66\u548c\u5f02\u5730\u5907\u4efd\u2014\u2014\u6bd5\u7adf\u4eca\u5929\u8fd9\u573a\u300c\u914d\u7f6e\u9759\u9ed8\u6d88\u5931\u300d\u5df2\u7ecf\u8bc1\u660e\uff1a\u4e0d\u51fa\u4e8b\u4e0d\u4ee3\u8868\u6ca1\u95ee\u9898\uff0c\u53ea\u662f\u8fd8\u6ca1\u53d1\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5929\u63a5\u5165\u7b2c\u4e8c\u4e2a PVE \u8282\u70b9\u540e\uff0c\u8ba2\u5355\u4e00\u5f00\u5c31\u70b8\uff1aHTTP 595\uff0c\u54cd\u5e94\u4f53\u662f\u7a7a\u7684 {&#8220;raw&#8221;:&#8221;&#8221;}\u3002\u6392\u67e5\u4e86\u4e00\u6574\u5929\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-cat-e68a80e69cafe697"],"_links":{"self":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":0,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}