<?xml version="1.0" encoding="UTF-8"?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>子方有料</title><link>https://www.ippa.top</link><atom:link href="http://rss.144-124-237-35.sslip.io/ippa" rel="self" type="application/rss+xml"></atom:link><description>子方有料 - 最新文章 - Powered by AtomRSS</description><generator>AtomRSS</generator><webMaster>contact@atomgroup.dev (AtomRSS)</webMaster><language>en</language><lastBuildDate>Sat, 08 Aug 2026 05:02:40 GMT</lastBuildDate><ttl>5</ttl><item><title>P104-100 显卡（AMD B450 平台）调优与排障指南</title><description>&lt;section&gt;
&lt;h2&gt;一、 硬件物理层：最基础也最致命&lt;/h2&gt;
&lt;h3&gt;1. 金手指清洁（头等功）&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;现象：&lt;/strong&gt; 显卡能识别（&lt;code&gt;lspci&lt;/code&gt; 有名），但一跑加速（如 ComfyUI 采样）就报错 &lt;code&gt;Xid 79&lt;/code&gt; 或掉总线。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;经验：&lt;/strong&gt; 矿卡长期处于高温、灰尘环境，金手指氧化层会严重干扰 PCIe 高频信号。&lt;strong&gt;使用橡皮擦反复擦拭金手指&lt;/strong&gt;是解决“能认卡但不能算”的第一步。&lt;/p&gt;
&lt;h3&gt;2. PCIe 链路选择（x1 vs x16）&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;经验：&lt;/strong&gt; 部分老旧/退役矿卡在 AMD 平台的 x16 插槽上可能存在信号不达标或损坏。如果 x16 槽始终掉卡，&lt;strong&gt;使用 PCIe x1 转接卡（矿卡延长线）&lt;/strong&gt; 通常能获得极高的稳定性，虽然带宽低，但足以满足 AI 绘图需求。&lt;/p&gt;
&lt;div class=&quot;note&quot;&gt;&lt;strong&gt;权衡：&lt;/strong&gt; x1 带宽（约 1GB/s）虽低但信号极稳；x16 模式（即使锁 Gen1 约 4GB/s）若物理受损则完全无法使用。&lt;/div&gt;
&lt;h3&gt;3. 平台的差异性&lt;/h3&gt;
&lt;p&gt;还有的情况，&lt;strong&gt;同样一块显卡，就是Intel主板可以识别，但是AMD主板无法识别。&lt;/strong&gt;这是不同平台的兼容及宽容性问题。&lt;br&gt;
早些年我也是AMD YES，但在虚拟化研究中，这个真的是让人苦不堪言。&lt;/p&gt;
&lt;/section&gt;
&lt;section&gt;
&lt;h2&gt;二、 BIOS 与内核层：打通地址寻址&lt;/h2&gt;
&lt;h3&gt;1. 核心 BIOS 设置&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Above 4G Decoding:&lt;/strong&gt; &lt;code&gt;Enabled&lt;/code&gt;（8GB 显存映射必开）。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CSM:&lt;/strong&gt; &lt;code&gt;Disabled&lt;/code&gt;（纯 UEFI 环境，防止寻址冲突）。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PCIe Speed:&lt;/strong&gt; 建议手动锁死 &lt;code&gt;Gen1&lt;/code&gt;（提高老旧矿卡容错率）。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ASPM:&lt;/strong&gt; &lt;code&gt;Disabled&lt;/code&gt;（关闭节能，防止空闲掉卡）。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;2. 宿主机内核参数&lt;/h3&gt;
&lt;p&gt;编辑 &lt;code&gt;/etc/default/grub&lt;/code&gt;，在启动项添加：&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;pci=realloc pci=noaer&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;pci=realloc&lt;/code&gt;: 强制重新分配 PCIe 资源（解决 [disabled] 的核心）。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pci=noaer&lt;/code&gt;: 禁用高级错误报告（屏蔽微小信号波动触发的重置）。&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section&gt;
&lt;h2&gt;三、 设备节点深度识别（多卡识别手册）&lt;/h2&gt;
&lt;p&gt;在多显卡环境下，必须准确判断哪个 &lt;code&gt;/dev&lt;/code&gt; 节点对应哪块卡。&lt;/p&gt;
&lt;h3&gt;1. 使用 by-path 建立物理映射（最准）&lt;/h3&gt;
&lt;p&gt;执行命令：&lt;code&gt;ls -l /dev/dri/by-path&lt;/code&gt;&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;# 示例输出逻辑：
pci-0000:06:00.0-card   -&amp;gt; ../card1       # 物理 06:00.0 (P104) 对应的显示节点
pci-0000:06:00.0-render -&amp;gt; ../renderD128  # 物理 06:00.0 (P104) 对应的计算节点
pci-0000:08:00.0-card   -&amp;gt; ../card2       # 物理 08:00.0 (P400) 对应的显示节点
pci-0000:08:00.0-render -&amp;gt; ../renderD129  # 物理 08:00.0 (P400) 对应的计算节点&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;判断依据：&lt;/strong&gt; 根据 &lt;code&gt;nvidia-smi&lt;/code&gt; 中的 Bus-Id（如 06:00.0）在输出中寻找对应的 cardX 和 renderDX。&lt;/p&gt;
&lt;h3&gt;2. NVIDIA 核心节点对应&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/dev/nvidia0&lt;/code&gt;: 通常对应 Bus-Id 靠前的第一块卡 (GPU 0)。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/dev/nvidia-uvm&lt;/code&gt;: 统一内存管理，CUDA 计算&lt;strong&gt;必须挂载&lt;/strong&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;3. 设备节点与物理卡精准对应（实测方案）&lt;/h3&gt;
&lt;p&gt;在多显卡环境下，必须准确判断 &lt;code&gt;/dev/nvidia-caps/nvidia-capX&lt;/code&gt; 与具体物理 GPU 的对应关系，这通常由&lt;b&gt;次设备号 (Minor Number)&lt;/b&gt; 决定。&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;一键获取映射关系：&lt;/strong&gt;执行以下命令（通过抓取上下文确认型号、总线地址与 Minor 的成组关系）：
&lt;pre class=&quot;prettyprint linenums&quot;&gt;nvidia-smi -q | grep -E &quot;Product Name|Bus Id|Minor Number&quot;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;实测输出示例：&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;Product Name    : NVIDIA P104-100
Minor Number    : 0
    Bus Id      : 00000000:06:00.0   # 确认 P104 对应 Minor 0

Product Name    : Quadro P400
Minor Number    : 1
    Bus Id      : 00000000:08:00.0   # 确认 P400 对应 Minor 1&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;匹配逻辑规则：&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;核心节点：&lt;/strong&gt; &lt;code&gt;/dev/nvidia&lt;b&gt;X&lt;/b&gt;&lt;/code&gt; 中的 &lt;b&gt;X&lt;/b&gt; 直接对应 &lt;b&gt;Minor Number&lt;/b&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;能力节点：&lt;/strong&gt; &lt;code&gt;/dev/nvidia-caps/nvidia-cap&lt;b&gt;Y&lt;/b&gt;&lt;/code&gt; 中的 &lt;b&gt;Y&lt;/b&gt; 对应 &lt;b&gt;Minor Number + 1&lt;/b&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;本例映射结果：&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;显卡型号&lt;/th&gt;
&lt;th&gt;次设备号 (Minor)&lt;/th&gt;
&lt;th&gt;对应核心节点&lt;/th&gt;
&lt;th&gt;能力节点 (Caps)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr style=&quot;background-color: #eef7ff;&quot;&gt;
&lt;td&gt;&lt;b&gt;P104-100&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/dev/nvidia0&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;nvidia-cap1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;Quadro P400&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/dev/nvidia1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;nvidia-cap2&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;note&quot;&gt;&lt;strong&gt;💡 映射口诀：&lt;/strong&gt; nvidia&lt;b&gt;X&lt;/b&gt; 对应 Minor；nvidia-cap&lt;b&gt;Y&lt;/b&gt; 对应 Minor + 1。&lt;/div&gt;
&lt;div class=&quot;note&quot;&gt;&lt;strong&gt;排障备注：&lt;/strong&gt; 若 LXC 内 &lt;code&gt;nvidia-smi&lt;/code&gt; 报错权限不足，需在宿主机执行：&lt;br&gt;
&lt;code&gt;chmod 444 /dev/nvidia-caps/nvidia-cap*&lt;/code&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section&gt;
&lt;h2&gt;四、 虚拟化实战配置&lt;/h2&gt;
&lt;h3&gt;1. LXC 容器（ComfyUI 专用精准映射）&lt;/h3&gt;
&lt;p&gt;在 &lt;code&gt;/etc/pve/lxc/ID.conf&lt;/code&gt; 中，建议仅挂载 P104 相关节点：&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;dev0: /dev/nvidia0
dev1: /dev/nvidiactl
dev2: /dev/nvidia-uvm
dev3: /dev/nvidia-uvm-tools
dev4: /dev/nvidia-caps/nvidia-cap1
dev5: /dev/nvidia-caps/nvidia-cap2
dev6: /dev/dri/card1,gid=44
dev7: /dev/dri/renderD128,gid=105&lt;/pre&gt;
&lt;h3&gt;2. VM 虚拟机（P104 特殊直通）&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;机型/BIOS:&lt;/strong&gt; 必须使用 &lt;code&gt;i440fx&lt;/code&gt; + &lt;code&gt;SeaBIOS (Legacy)&lt;/code&gt;。&lt;/p&gt;
&lt;p class=&quot;important&quot;&gt;原因: P104 的 VBIOS 多不支持 UEFI GOP，使用 OVMF (UEFI) 引导会导致虚拟机无法初始化显卡。&lt;/p&gt;
&lt;/section&gt;
&lt;hr&gt;
&lt;section&gt;
&lt;h2&gt;五、 总结建议&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;性能优化：&lt;/strong&gt; 如果使用 x1 链路，启动 ComfyUI 建议添加 &lt;code&gt;--lowvram --disable-cuda-malloc&lt;/code&gt;，防止瞬时总线压力过载。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;多卡管理：&lt;/strong&gt; 容器内使用 &lt;code&gt;export CUDA_VISIBLE_DEVICES=0&lt;/code&gt; 锁定 P104，避免程序错误调用 2GB 显存的副卡。&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;note&quot;&gt;&lt;strong&gt;说明：&lt;/strong&gt; 本指南重点在于解决 AMD 平台下非标 NVIDIA 计算卡的“物理连接稳定性”与“设备节点精准隔离”。&lt;/div&gt;
&lt;/section&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1343.html</link><guid isPermaLink="false">https://www.ippa.top/1343.html</guid><pubDate>Sun, 08 Mar 2026 17:58:13 GMT</pubDate></item><item><title>NVIDIA Quadro P400 显卡直通与 OCLP 驱动注入实战教程</title><description>&lt;p&gt;本教程针对在 Proxmox (PVE) 环境下，通过 OpenCore 虚拟机直通 NVIDIA Quadro P400 显卡并。不过，p400无法实现硬件加速，或者说是不完整的，他不能脱离pve显示独立输出，也不具备完整的加速功能。&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;lzp@lzps-iMac-Pro ~ % nvram -p | grep boot-args
boot-argskeepsyms=1 debug=0x100 amfi_get_out_of_my_way=1 ngfxgl=1 ngfxcompat=1 nvda_drv_vrl=1
lzp@lzps-iMac-Pro ~ % csrutil status
System Integrity Protection status: unknown (Custom Configuration).

Configuration:
Apple Internal: disabled
Kext Signing: disabled
Filesystem Protections: disabled
Debugging Restrictions: enabled
DTrace Restrictions: enabled
NVRAM Protections: enabled
BaseSystem Verification: enabled

This is an unsupported configuration, likely to break in the future and leave your machine in an unknown state.
lzp@lzps-iMac-Pro ~ %&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;important&quot;&gt;&lt;strong&gt;核心原理：&lt;/strong&gt; 由于 macOS Monterey 删除了对 Pascal 架构（P400）的原生支持，必须通过彻底关闭系统安全限制（SIP/AMFI）来强行注入旧版驱动补丁。&lt;/div&gt;
&lt;h2&gt;1. 解除系统安全锁定 (修改 config.plist)&lt;/h2&gt;
&lt;p&gt;使用 ProperTree 修改硬盘 EFI 分区中的 &lt;code&gt;config.plist&lt;/code&gt;，确保以下参数准确无误：&lt;/p&gt;
&lt;h3&gt;A. 彻底禁用 SIP&lt;/h3&gt;
&lt;p&gt;路径：&lt;code&gt;NVRAM -&amp;gt; Add -&amp;gt; 7C436110-AB2A-4BBB-A880-FE41995C9F82&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;键名：&lt;/strong&gt; &lt;code&gt;csr-active-config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;修改值：&lt;/strong&gt; &lt;code&gt;EF0F0000&lt;/code&gt; (Data 类型)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;注：&lt;/strong&gt; 必须在 &lt;code&gt;NVRAM -&amp;gt; Delete&lt;/code&gt; 下的对应 UUID 列表中包含 &lt;code&gt;csr-active-config&lt;/code&gt; 字符串。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;B. 注入启动参数&lt;/h3&gt;
&lt;p&gt;在同一路径下的 &lt;code&gt;boot-args&lt;/code&gt; 中添加以下内容：&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;keepsyms=1 debug=0x100 amfi_get_out_of_my_way=1 ngfxgl=1 ngfxcompat=1 nvda_drv_vrl=1&lt;/pre&gt;
&lt;h3&gt;C. 禁用安全启动&lt;/h3&gt;
&lt;p&gt;路径：&lt;code&gt;Misc -&amp;gt; Security -&amp;gt; SecureBootModel&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;值：&lt;/strong&gt; &lt;code&gt;Disabled&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;2. 刷新 NVRAM (关键步骤)&lt;/h2&gt;
&lt;p&gt;&lt;span class=&quot;step-number&quot;&gt;1&lt;/span&gt; 保存并重启虚拟机。&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;step-number&quot;&gt;2&lt;/span&gt; 在 OpenCore 引导图标界面，立即按下 &lt;strong&gt;空格键&lt;/strong&gt; 弹出隐藏选单。&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;step-number&quot;&gt;3&lt;/span&gt; 选择 &lt;strong&gt;Reset NVRAM&lt;/strong&gt; 并回车。系统将自动重启以应用新的安全设置。&lt;/p&gt;
&lt;h2&gt;3. 执行 Root Patch 驱动注入&lt;/h2&gt;
&lt;p&gt;进入桌面后，如果 &lt;code&gt;loginwindow&lt;/code&gt; 不再报错，即可进行最后的驱动安装：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;打开 &lt;strong&gt;OpenCore Legacy Patcher.app&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;点击 &lt;strong&gt;Post-Install Root Patch&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;系统应识别到 &lt;code&gt;Graphics: Nvidia Pascal&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;点击 &lt;strong&gt;Start Root Patching&lt;/strong&gt;，完成后按提示重启。&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;4. 故障排查汇总&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;故障现象&lt;/th&gt;
&lt;th&gt;根本原因&lt;/th&gt;
&lt;th&gt;解决方案&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;loginwindow 进程崩溃报告&lt;/td&gt;
&lt;td&gt;SIP 或 AMFI 仍在拦截未签名驱动&lt;/td&gt;
&lt;td&gt;确认 &lt;code&gt;csrutil status&lt;/code&gt; 显示各分项均为 disabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;物理显示器黑屏无输出&lt;/td&gt;
&lt;td&gt;驱动加载失败或 PVE 虚拟显卡冲突&lt;/td&gt;
&lt;td&gt;关闭 PVE 虚拟显卡，仅保留直通的 P400 硬件&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;系统报告显示显存 7MB/14MB&lt;/td&gt;
&lt;td&gt;Root Patch 补丁未成功写入内核&lt;/td&gt;
&lt;td&gt;检查 SIP 值是否为 &lt;code&gt;EF0F0000&lt;/code&gt; 并重新执行补丁&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1341.html</link><guid isPermaLink="false">https://www.ippa.top/1341.html</guid><pubDate>Sun, 01 Mar 2026 20:18:42 GMT</pubDate></item><item><title>PVE 虚拟化环境黑苹果 Monterey 视觉化指南</title><description>&lt;article&gt;本教程专为在 Proxmox VE (PVE) 虚拟化平台上运行 macOS Monterey 的黑苹果爱好者准备。侧重于&lt;strong&gt;抹平虚拟化延迟&lt;/strong&gt;与&lt;strong&gt;压榨系统响应速度&lt;/strong&gt;，不讨论纯视觉美化。&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;核心原则：&lt;/strong&gt; 减少 CPU 指令模拟开销，优化磁盘 I/O 路径，彻底禁用宿主机不需要的 macOS 后台服务与冗余视觉动画。&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;一、 存储与磁盘 I/O 优化&lt;/h2&gt;
&lt;p&gt;磁盘延迟是虚拟机“卡顿感”的主要来源。建议弃用 SATA 模拟，转向半虚拟化协议。&lt;/p&gt;
&lt;h3&gt;1. 选用 VirtIO Block / SCSI&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;推荐方案：&lt;/strong&gt; 在 PVE 磁盘设置中选择 &lt;code&gt;VirtIO Block&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;优化配置：&lt;/strong&gt; 开启 &lt;strong&gt;IO Thread&lt;/strong&gt;（IO 线程隔离），避免大文件读写时系统 UI 假死。（也有很多人推荐不开）&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;2. 关键参数设置&lt;/h3&gt;
&lt;table style=&quot;width: 100%; border-collapse: collapse; margin: 15px 0;&quot;&gt;
&lt;thead&gt;
&lt;tr style=&quot;background-color: #f8f9fa;&quot;&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;参数&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;建议值&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;作用&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;Discard&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;开启 (Checked)&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;支持 TRIM，防止虚拟磁盘性能衰减&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;SSD Emulation&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;开启 (Checked)&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;让 macOS 按照固态硬盘逻辑优化文件布局&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;Cache&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;Write back&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;利用宿主机缓存提升写入响应感&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h2&gt;二、 内存底层优化&lt;/h2&gt;
&lt;p&gt;macOS 有自己的一套内存压缩和释放逻辑，与 PVE 的 Ballooning 极易冲突。在内存设置中&lt;strong&gt;取消勾选&lt;/strong&gt; “Ballooning Device”，分配固定内存。这能消除由于物理内存回收导致的随机系统瞬间冻结。&lt;/p&gt;
&lt;/article&gt;
&lt;article&gt;
&lt;hr&gt;
&lt;h2&gt;三、 视觉减负：禁用系统动画&lt;/h2&gt;
&lt;p&gt;在没有完美显卡硬加速的情况下，macOS 的视觉特效是性能最大的杀手。通过终端强制关闭动画，可以瞬间提升窗口响应速度。&lt;/p&gt;
&lt;h3&gt;1. 开启“减弱动态效果”&lt;/h3&gt;
&lt;p&gt;前往 &lt;strong&gt;系统偏好设置 -&amp;gt; 辅助功能 -&amp;gt; 显示器&lt;/strong&gt;，勾选 &lt;strong&gt;“减弱动态效果” (Reduce motion)等&lt;/strong&gt;。这将取消大部分窗口切换时的平滑过渡。&lt;/p&gt;
&lt;h3&gt;2. 终端深度禁用指令&lt;/h3&gt;
&lt;p&gt;执行以下命令彻底消除窗口缩放和 Dock 栏动画：&lt;/p&gt;
&lt;pre style=&quot;background: #2d2d2d; color: #ccc; padding: 10px;&quot;&gt;# 禁用窗口打开和保存时的动画
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

# 禁用快速预览 (Quick Look) 的过渡动画
defaults write NSGlobalDomain QLPanelAnimationDuration -float 0

# 调整 Dock 栏显示/隐藏的速度 (设为0即瞬开)
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0

# 重启 Dock 生效
killall Dock&lt;/pre&gt;
&lt;hr&gt;
&lt;h2&gt;四、 macOS 系统服务“大瘦身”&lt;/h2&gt;
&lt;p&gt;在 macOS 终端执行以下命令，关闭在虚拟机环境中无意义的资源消耗：&lt;/p&gt;
&lt;h3&gt;1. 禁用 Spotlight 索引 (磁盘 I/O 大户)&lt;/h3&gt;
&lt;pre style=&quot;background: #f4f4f4; padding: 10px;&quot;&gt;sudo mdutil -a -i off&lt;/pre&gt;
&lt;h3&gt;2. 禁用休眠与睡眠&lt;/h3&gt;
&lt;pre style=&quot;background: #f4f4f4; padding: 10px;&quot;&gt;sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1&lt;/pre&gt;
&lt;h3&gt;3. 停止崩溃报告与系统日志&lt;/h3&gt;
&lt;pre style=&quot;background: #f4f4f4; padding: 10px;&quot;&gt;sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.syslogd.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/article&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1340.html</link><guid isPermaLink="false">https://www.ippa.top/1340.html</guid><pubDate>Sat, 28 Feb 2026 20:01:24 GMT</pubDate></item><item><title>模拟胜原生？R5-2600 虚拟黑苹果性能大对决：Skylake 模拟 vs Host 补丁方案跑分复盘</title><description>&lt;article&gt;
&lt;h2&gt;前言：折腾缘由与技术复盘&lt;/h2&gt;
&lt;p&gt;从几年前配合 GT 710 的初步尝试，到如今在 &lt;strong&gt;Proxmox VE (PVE) 9.1&lt;/strong&gt; 环境下深度调优，这次复盘历时一周。本文将通过多组跑分数据，深入探讨模拟架构与原生补丁方案的性能差异。&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;一、 硬件环境与实验配置&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;核心硬件：&lt;/strong&gt; AMD Ryzen 5 2600 (6C/12T) | 16GB RAM (8G*2)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;直通显卡：&lt;/strong&gt; NVIDIA Quadro P400 (Pascal 架构)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;系统平台：&lt;/strong&gt; PVE 9.1&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;对比系统：&lt;/strong&gt; macOS 12 (Monterey) vs macOS 13 (Ventura)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3&gt;二、 性能对决：跑分数据与原始报告&lt;/h3&gt;
&lt;p&gt;为了探究不同机型与引导对性能的影响，我使用了 Geekbench 6 进行了多轮测试。数据证明：&lt;strong&gt;Skylake 模拟架构配合现代机型定义，能最大程度释放物理 CPU 的性能。&lt;/strong&gt;&lt;/p&gt;
&lt;table style=&quot;width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 13px; text-align: center;&quot;&gt;
&lt;thead&gt;
&lt;tr style=&quot;background-color: #f1f1f1;&quot;&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;机型 (SMBIOS)&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;系统版本&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;引导/CPU模式&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;单核/多核&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;原始报告&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr style=&quot;background-color: #f9fff9;&quot;&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;iMac19,1&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;macOS 13.7.8&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;LongQT / Skylake&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;1119 / 3357&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;a href=&quot;https://browser.geekbench.com/v6/cpu/16760754&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;查看报告&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;MacPro7,1&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;macOS 13.7.8&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;LongQT / Skylake&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;1096 / 3301&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;a href=&quot;https://browser.geekbench.com/v6/cpu/16769054&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;查看报告&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;iMac19,1&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;macOS 12.7.6&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;LongQT / Skylake&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;1112 / 3351&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;a href=&quot;https://browser.geekbench.com/v6/cpu/16769210&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;查看报告&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;background-color: #fff9f9;&quot;&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;iMacPro1,1&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;macOS 12.7.6&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;proxmox / R5-2600&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;1056 / 2916&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;a href=&quot;https://browser.geekbench.com/v6/cpu/16762731&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;查看报告&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;background-color: #fff9f9;&quot;&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;iMac19,1&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;macOS 12.7.6&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;proxmox / R5-2600&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;1032 / 2965&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;a href=&quot;https://browser.geekbench.com/v6/cpu/16769465&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;查看报告&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h3&gt;三、 关键技术分析：为什么模拟更强？&lt;/h3&gt;
&lt;p&gt;根据跑分反馈，&lt;strong&gt;LongQT (Skylake 模拟)&lt;/strong&gt; 在多核性能上比原生补丁方案高出约 &lt;strong&gt;13%&lt;/strong&gt;。这是因为：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;内核适配：&lt;/strong&gt; macOS 对 Intel Skylake 的拓扑识别极为成熟。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;补丁开销：&lt;/strong&gt; 原生 R5-2600 依赖大量的内核补丁来修复指令集不兼容，这在某种程度上损耗了 CPU 效率。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;兼容性：&lt;/strong&gt; 在 macOS 13 下，模拟架构的稳定性明显优于原生 host 模式。&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3&gt;四、 显卡直通：Quadro P400 的驱动与体验&lt;/h3&gt;
&lt;p&gt;Quadro P400 (Pascal) 虽然无法通过 Metal 加速，但在 macOS 12/13 中通过 &lt;strong&gt;NVIDIA WebDrivers&lt;/strong&gt; 注入后，可实现桌面渲染。相比 CPU 软渲染，它极大地提升了系统的交互流畅度，是黑苹果虚拟化中极具性价比的“亮机卡”。&lt;/p&gt;
&lt;h3&gt;&lt;/h3&gt;
&lt;/article&gt;
</description><link>https://www.ippa.top/1339.html</link><guid isPermaLink="false">https://www.ippa.top/1339.html</guid><pubDate>Fri, 27 Feb 2026 19:54:12 GMT</pubDate></item><item><title>AMD Ryzen 5 2600 + PVE 9.1：黑苹果虚拟机安装与 Quadro P400 直通实战总结</title><description>&lt;article&gt;
&lt;h2&gt;折腾缘由&lt;/h2&gt;
&lt;p&gt;这一切的起点要追溯到 &lt;strong&gt;OpenClaw 私人 AI 助理&lt;/strong&gt;。几年前我曾在这台物理机上安装过黑苹果，当时配置还是 GT 710。今年春节前后，我花了大约一周时间重新钻研，对 OpenCore 和 KVM 的底层逻辑有了更深的理解。&lt;/p&gt;
&lt;p&gt;最让我感到意外的是，上次尝试在 AMD 平台上直通显卡总是导致系统锁死，而这次居然顺利跑通了。这很可能得益于 &lt;strong&gt;PVE (Proxmox VE) 内核的迭代更新&lt;/strong&gt;，对硬件直通（Passthrough）的兼容性显著增强。&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;实验环境概览&lt;/h3&gt;
&lt;table style=&quot;width: 100%; border-collapse: collapse; margin: 15px 0;&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;background-color: #f8f9fa;&quot;&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd; text-align: left;&quot;&gt;核心硬件/软件&lt;/th&gt;
&lt;th style=&quot;padding: 10px; border: 1px solid #ddd; text-align: left;&quot;&gt;详细参数&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;CPU&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;AMD Ryzen 5 2600 (Zen+)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;GPU&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;NVIDIA Quadro P400 (Pascal)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;内存&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;16GB (8GB x 2)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;strong&gt;虚拟化平台&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;padding: 10px; border: 1px solid #ddd;&quot;&gt;Proxmox VE 8.4 / 9.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h3&gt;一、 性能实测数据&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;系统版本差异：&lt;/strong&gt; 不同版本系统分数差别不大，波动约为 1-3%。对比 macOS 12 (Monterey)，&lt;strong&gt;macOS 13 (Ventura) 表现略微胜出&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;机型定义差异：&lt;/strong&gt; SMBIOS 对性能有略微影响，幅度在 3-7%。在对比测试中，&lt;strong&gt;iMac19,1 的表现优于 MacPro7,1&lt;/strong&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3&gt;二、 引导方案深度对比&lt;/h3&gt;
&lt;p&gt;在折腾过程中，我研究并对比了目前主流的几个虚拟化引导项目：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Penryn 补丁系：&lt;/strong&gt; &lt;code&gt;thenickdude&lt;/code&gt; 对 OpenCore 贡献的 PENRYN 补丁被广泛引用。&lt;code&gt;opencore-osx-proxmox-vm&lt;/code&gt; 看起来是在其基础上进行的修改（补丁内容基本一致）。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Skylake 模拟系：&lt;/strong&gt; &lt;code&gt;LongQT-OpenCore&lt;/code&gt; 主要是基于 OpenCore 的 Sample 模板修改，未使用 PENRYN 补丁，而是采用 &lt;strong&gt;Skylake 架构模拟&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;自定义尝试：&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;曾尝试基于原生 OpenCore 制作引导，但连 Logo 界面都无法进入。&lt;/li&gt;
&lt;li&gt;尝试在 &lt;code&gt;LongQT-OpenCore&lt;/code&gt; 基础上添加 AMD 内核补丁，结果能进引导但卡在 Logo 处。&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;核心发现：&lt;/strong&gt; 不同引导对 &lt;code&gt;args&lt;/code&gt; 参数的要求各异。例如：部分配置不需要 OSK 密钥也能启动，但必须严格指定处理器型号；基于 &lt;code&gt;host&lt;/code&gt; 模式时，某些引导可以启动 macOS 12 但会在 macOS 13 上引导失败。&lt;/p&gt;&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h3&gt;三、 显卡直通研究：NVIDIA Quadro P400&lt;/h3&gt;
&lt;p&gt;Pascal 架构显卡的原生驱动支持止步于 High Sierra (10.13.6)。&lt;/p&gt;
&lt;p&gt;经过实测证实：&lt;strong&gt;Quadro P400 在 macOS 12 和 13 中，通过 Nvidia’s WebDrivers 驱动注入后可以被系统识别&lt;/strong&gt;。虽然由于缺乏 Metal 硬件加速支持，它并非“完美驱动”，但作为一张亮机卡，它的体感流畅度远超纯 CPU 软件渲染。至少在桌面环境下，操作响应非常丝滑。&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;四、 特别推荐：参考资料链接&lt;/h3&gt;
&lt;h4&gt;1. 核心文档（必读）&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://dortania.github.io/getting-started/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Dortania’s Getting Started&lt;/a&gt;：最基础也是最重要的文档，解决安装诸多疑难杂症。&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/LongQT-sea/OpenCore-ISO&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;LongQT-OpenCore ISO&lt;/a&gt;：&lt;strong&gt;重点推荐引导！&lt;/strong&gt; 安装过程建议遵循其示例文档。&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;2. 实用项目与教程&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/luchina-gabriel/OSX-PROXMOX&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;OSX-PROXMOX (Gabriel Luchina)&lt;/a&gt;：我的“首亮”参考，提供了非常棒的配置脚本思路。&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/thenickdude/OSX-KVM&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;thenickdude / OSX-KVM&lt;/a&gt;：强大的工具包，支持制作恢复镜像及完整镜像。&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.nicksherlock.com/2022/10/installing-macos-13-ventura-on-proxmox/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Nick Sherlock’s 教程&lt;/a&gt;：由 KVM-Opencore 作者亲自撰写的 Ventura 安装指南。&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;3. 进阶参考阅读&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/acidanthera/OpenCorePkg&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;OpenCorePkg&lt;/a&gt;：一切引导的根源。&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kholia/OSX-KVM&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Kholia / OSX-KVM&lt;/a&gt;：针对 KVM 环境运行 macOS 的底层调优建议。&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://dortania.github.io/OpenCore-Post-Install/tree/master/gpu-patching&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;GPU Patching Guide&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://dortania.github.io/GPU-Buyers-Guide/modern-gpus/nvidia-gpu.html#unsupported-nvidia-gpus&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;NVIDIA 不支持显卡列表&lt;/a&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;/article&gt;
</description><link>https://www.ippa.top/1338.html</link><guid isPermaLink="false">https://www.ippa.top/1338.html</guid><pubDate>Thu, 26 Feb 2026 19:50:31 GMT</pubDate></item><item><title>amd处理器安装pve8时开通IOMMU分组</title><description>&lt;p&gt;在 PVE 8 中，显卡（GPU）和网卡（NIC）被分在同一个 IOMMU 组是 AMD B450/X470 等主流平台非常常见的问题。这是因为主板的 PCIe 通道划分不够精细。要强行拆分它们，需要使用 ACS Override (Access Control Services) 补丁。这相当于告诉内核：“请假装这些设备是互相独立的”。&lt;/p&gt;
&lt;h2&gt;确认引导方式&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;在 PVE 命令行输入：
[ -d /sys/firmware/efi ] &amp;amp;&amp;amp; echo &quot;UEFI 引导&quot; || echo &quot;Legacy 引导&quot;
&lt;/pre&gt;
&lt;p&gt;如果显示 UEFI：需要进一步确认是使用 GRUB 还是 systemd-boot（PVE 8 默认 ZFS 安装通常用后者）。&lt;br&gt;
执行 efibootmgr -v，如果看到 systemd-boot 字样，则是 systemd-boot；否则通常是 GRUB。&lt;/p&gt;
&lt;h2&gt;GRUB引导时的处理&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;nano /etc/default/grub

#找到并修改为
GRUB_CMDLINE_LINUX_DEFAULT=&quot;quiet amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction&quot;

update-grub
reboot
&lt;/pre&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1335.html</link><guid isPermaLink="false">https://www.ippa.top/1335.html</guid><pubDate>Wed, 11 Feb 2026 17:47:14 GMT</pubDate></item><item><title>修复exif因拍摄日期异常导致的时间断档</title><description>&lt;h2&gt;前言&lt;/h2&gt;
&lt;p&gt;由于照片移动不当，导致部分照片在时间线插队，即部分照片直接显示在移动操作的一天。为了更好的贴合原来的时间线，快速修改，拟定以下几种调整逻辑。其实就是按文件名，贴着有时间的修改日期。部分就只能指定了。&lt;/p&gt;
&lt;p&gt;通过这种“逆/正序寻锚、逐个回溯”的逻辑能非常优雅地修复因拍摄日期异常导致的时间断档。&lt;/p&gt;
&lt;h2&gt;正序（跳开异常年份数据）&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;#!/bin/bash

# 1. 待修复文件完整路径列表
FILES=(
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_8927.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9129.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9130.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9131.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9132.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9133.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9134.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9135.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9136.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201810 正序修改/IMG_9137.JPG&quot;
)

# 2. 确保路径列表按文件名正序排列 (从小到大)
IFS=$&#39;\n&#39; SORTED_FILES=($(sort &amp;lt;&amp;lt;&amp;lt; &quot;${FILES[*]}&quot;)); unset IFS

echo &quot;🚀 开始执行 [正序修改] 正序寻锚 (+30s) 修复...&quot;

for fullpath in &quot;${SORTED_FILES[@]}&quot;; do
    [ ! -f &quot;$fullpath&quot; ] &amp;amp;&amp;amp; continue

    dir=$(dirname &quot;$fullpath&quot;)
    filename=$(basename &quot;$fullpath&quot;)
    cd &quot;$dir&quot; || continue

    # 核心逻辑：寻找前序锚点 (编号比自己小、且不在待处理列表中或已修复完成的最近一张)
    # 使用 sort -r 反向排序，确保 awk 拿到的第一个就是最接近当前文件的小编号文件
    anchor_ref=$(ls | sort -r | awk -v cur=&quot;$filename&quot; &#39;$1 &amp;lt; cur&#39; | while read -r p; do if [[ &quot;$p&quot; =~ ^IMG_[0-9]{4}\. ]]; then # 实时检查 EXIF 年份，确保非 2026 p_year=$(exiftool -s3 -DateTimeOriginal &quot;$p&quot; | cut -d: -f1) if [[ -n &quot;$p_year&quot; &amp;amp;&amp;amp; &quot;$p_year&quot; != &quot;2026&quot; ]]; then echo &quot;$p&quot; break fi fi done | head -n 1) if [ -n &quot;$anchor_ref&quot; ]; then # 提取基准时间 ref_time_str=$(exiftool -d &quot;%Y-%m-%d %H:%M:%S&quot; -s3 -DateTimeOriginal &quot;$anchor_ref&quot;) # 转换为时间戳并增加 30 秒 base_ts=$(date -d &quot;${ref_time_str//:/-}&quot; +%s 2&amp;gt;/dev/null || date -d &quot;$ref_time_str&quot; +%s)
        new_ts=$((base_ts + 30))
        
        new_time=$(date -d &quot;@$new_ts&quot; +&quot;%Y:%m:%d %H:%M:%S&quot;)
        touch_time=$(date -d &quot;@$new_ts&quot; +&quot;%Y%m%d%H%M.%S&quot;)

        echo &quot;🔄 处理: $filename &amp;lt;- [锚点: $anchor_ref] | 修正为: $new_time&quot;

        # 写入 EXIF (核心日期及作者标识)
        exiftool -overwrite_original \
            &quot;-DateTimeOriginal=$new_time&quot; \
            &quot;-CreateDate=$new_time&quot; \
            &quot;-ModifyDate=$new_time&quot; \
            -Artist=&quot;Manual&quot; \
            -Author=&quot;Manual&quot; \
            &quot;$filename&quot;

        # 同步文件系统的修改日期
        touch -t &quot;$touch_time&quot; &quot;$filename&quot;
    else
        echo &quot;⚠️ 警告: $filename 之前找不到有效的参考锚点，已跳过。&quot;
    fi
done

echo &quot;✨ [正序修改] 系列修复任务全部完成！&quot;
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;逆序（跳开异常年份数据）&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;#!/bin/bash

# 1. 待修复文件列表
FILES=(
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8896.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8895.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8889.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8888.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8887.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8886.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8885.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8882.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8878.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201809 逆序修改/IMG_8877.JPG&quot;
)

# 2. 确保列表按文件名从大到小排列 (逆序处理)
IFS=$&#39;\n&#39; SORTED_FILES=($(sort -r &amp;lt;&amp;lt;&amp;lt; &quot;${FILES[*]}&quot;)); unset IFS echo &quot;开始执行 [逆序修改] 系列逆序寻锚修复...&quot; for fullpath in &quot;${SORTED_FILES[@]}&quot;; do [ ! -f &quot;$fullpath&quot; ] &amp;amp;&amp;amp; continue dir=$(dirname &quot;$fullpath&quot;) filename=$(basename &quot;$fullpath&quot;) cd &quot;$dir&quot; || continue # 核心逻辑：寻找后置锚点 # 规则：编号比自己大 ($1 &amp;gt; cur)、年份非 2026 的最近一张正确照片
    next_ref=$(ls | sort | awk -v cur=&quot;$filename&quot; &#39;$1 &amp;gt; cur&#39; | while read -r p; do
        if [[ &quot;$p&quot; =~ ^IMG_[0-9]{4}\. ]]; then
            # 检查 EXIF 年份是否已修复（非 2026）
            p_year=$(exiftool -s3 -DateTimeOriginal &quot;$p&quot; | cut -d: -f1)
            if [[ -n &quot;$p_year&quot; &amp;amp;&amp;amp; &quot;$p_year&quot; != &quot;2026&quot; ]]; then
                echo &quot;$p&quot;
                break
            fi
        fi
    done | head -n 1)

    if [ -n &quot;$next_ref&quot; ]; then
        # 提取锚点时间
        ref_time_str=$(exiftool -d &quot;%Y-%m-%d %H:%M:%S&quot; -s3 -DateTimeOriginal &quot;$next_ref&quot;)
        
        # 将 EXIF 时间转为系统秒级时间戳并减去 30 秒
        base_ts=$(date -d &quot;${ref_time_str//:/-}&quot; +%s 2&amp;gt;/dev/null || date -d &quot;$ref_time_str&quot; +%s)
        new_ts=$((base_ts - 30))
        
        new_time=$(date -d &quot;@$new_ts&quot; +&quot;%Y:%m:%d %H:%M:%S&quot;)
        touch_time=$(date -d &quot;@$new_ts&quot; +&quot;%Y%m%d%H%M.%S&quot;)

        echo &quot;🔄 修正: $filename &amp;lt;- [锚点: $next_ref] | 新时间: $new_time&quot;

        # 写入 EXIF
        exiftool -overwrite_original \
            &quot;-DateTimeOriginal=$new_time&quot; \
            &quot;-CreateDate=$new_time&quot; \
            &quot;-ModifyDate=$new_time&quot; \
            -Artist=&quot;Manual&quot; \
            -Author=&quot;Manual&quot; \
            &quot;$filename&quot;

        # 同步系统修改时间
        touch -t &quot;$touch_time&quot; &quot;$filename&quot;
    else
        echo &quot;⚠️ 警告: $filename 右侧找不到有效的参考锚点，跳过。&quot;
    fi
done

echo &quot;✨ [逆序修改] 目录处理完毕！&quot;
&lt;/pre&gt;
&lt;h2&gt;特定日期修改&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;# 1. 定义待处理文件路径
file1=&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201802 在家/DWHI5806.jpg&quot;
file2=&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201802 在家/WLZI0220.jpg&quot;

# 2. 批量执行修改
for f in &quot;$file1&quot; &quot;$file2&quot;; do
    if [ -f &quot;$f&quot; ]; then
        echo &quot;正在处理特殊命名文件: $(basename &quot;$f&quot;)&quot;
        
        # 写入 EXIF 核心日期及作者信息
        exiftool -overwrite_original \
            -Artist=&quot;Manual&quot; \
            -Author=&quot;Manual&quot; \
            -DateTimeOriginal=&quot;2018:02:17 20:10:00&quot; \
            -CreateDate=&quot;2018:02:17 20:10:00&quot; \
            -ModifyDate=&quot;2018:02:17 20:10:00&quot; \
            &quot;$f&quot;
        
        # 同步文件系统时间 (touch 格式: YYYYMMDDhhmm.ss)
        touch -t 201802172010.00 &quot;$f&quot;
        
        echo &quot;✅ $(basename &quot;$f&quot;) 修复完成&quot;
    else
        echo &quot;❌ 未找到文件: $f&quot;
    fi
done
&lt;/pre&gt;
&lt;h2&gt;正序（均为同年或不便排除异常）&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;#!/bin/bash

# 1. 待修复文件完整路径列表
FILES=(
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201911 同年正序修改/IMG_4350.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201911 同年正序修改/IMG_4351.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201911 同年正序修改/IMG_4352.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201911 同年正序修改/IMG_4353.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201911 同年正序修改/IMG_4354.JPG&quot;
&quot;/mnt/S50JW-PICT/ZSF/PHOTO/相机/201911 同年正序修改/IMG_4355.JPG&quot;
)

# 2. 确保路径列表按文件名正序排列 (从小到大)
IFS=$&#39;\n&#39; SORTED_FILES=($(sort &amp;lt;&amp;lt;&amp;lt; &quot;${FILES[*]}&quot;)); unset IFS

echo &quot;🚀 开始执行 [同年正序修改] 正序寻锚 (+30s) 修复...&quot;

for fullpath in &quot;${SORTED_FILES[@]}&quot;; do
    [ ! -f &quot;$fullpath&quot; ] &amp;amp;&amp;amp; continue

    dir=$(dirname &quot;$fullpath&quot;)
    filename=$(basename &quot;$fullpath&quot;)
    cd &quot;$dir&quot; || continue

    # 核心逻辑：寻找前序锚点 (编号比自己小、且不在待处理列表中或已修复完成的最近一张)
    # 通过 exiftool 实时检查年份，确保锚点是“正确”的
    anchor_ref=$(ls | sort -r | awk -v cur=&quot;$filename&quot; &#39;$1 &amp;lt; cur&#39; | while read -r p; do if [[ &quot;$p&quot; =~ ^IMG_[0-9]{4}\. ]]; then # 实时检查 EXIF 年份，非 2026 视为正确锚点 p_year=$(exiftool -s3 -DateTimeOriginal &quot;$p&quot; | cut -d: -f1) if [[ -n &quot;$p_year&quot; &amp;amp;&amp;amp; &quot;$p_year&quot; != &quot;2026&quot; ]]; then echo &quot;$p&quot; break fi fi done | head -n 1) if [ -n &quot;$anchor_ref&quot; ]; then # 提取基准时间 ref_time_str=$(exiftool -d &quot;%Y-%m-%d %H:%M:%S&quot; -s3 -DateTimeOriginal &quot;$anchor_ref&quot;) # 转换为时间戳并增加 30 秒 base_ts=$(date -d &quot;${ref_time_str//:/-}&quot; +%s 2&amp;gt;/dev/null || date -d &quot;$ref_time_str&quot; +%s)
        new_ts=$((base_ts + 30))
        
        new_time=$(date -d &quot;@$new_ts&quot; +&quot;%Y:%m:%d %H:%M:%S&quot;)
        touch_time=$(date -d &quot;@$new_ts&quot; +&quot;%Y%m%d%H%M.%S&quot;)

        echo &quot;🔄 处理: $filename &amp;lt;- [锚点: $anchor_ref] | 修正为: $new_time&quot;

        # 写入 EXIF (拍摄时间、创建时间及作者标识)
        exiftool -overwrite_original \
            &quot;-DateTimeOriginal=$new_time&quot; \
            &quot;-CreateDate=$new_time&quot; \
            &quot;-ModifyDate=$new_time&quot; \
            -Artist=&quot;Manual&quot; \
            -Author=&quot;Manual&quot; \
            &quot;$filename&quot;

        # 同步文件系统的修改日期
        touch -t &quot;$touch_time&quot; &quot;$filename&quot;
    else
        echo &quot;⚠️ 警告: $filename 之前找不到有效的参考锚点（或全是 2026 年文件），已跳过。&quot;
    fi
done

echo &quot;✨ [同年正序修改] 链式修复任务完成！&quot;
&lt;/pre&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1332.html</link><guid isPermaLink="false">https://www.ippa.top/1332.html</guid><pubDate>Wed, 21 Jan 2026 22:32:41 GMT</pubDate></item><item><title>机械磁盘SMART信息及sata线材稳定性测试</title><description>&lt;h2&gt;核心健康指标&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;05 (Reallocated Sector Ct)—— 头号杀手&lt;/strong&gt;&lt;br&gt;
硬盘发现某个扇区坏了，会自动从“备用仓库”里拿一个好的扇区来替换它。RAW 值必须为 0。如果这个值大于 0 且在持续增加，说明盘片正在物理脱落或磁头已经划伤盘片。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;197 (Current Pending Sector) —— 逻辑坏道与物理坏道的交界&lt;/strong&gt;&lt;br&gt;
磁头读到这里时发现读不出来，系统把它标记为“待观察”。它还没被正式判定为坏死。RAW 值最好为 0。如果大于 0，可以尝试通过全盘写零（dd）修复。如果写零后它变成了 ID 5，那是物理坏道；如果写零后它归零且 ID 5 没涨，说明是逻辑坏道（电荷干扰）。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;187 (Reported Uncorrect) —— 性能预警&lt;/strong&gt;&lt;br&gt;
磁头尝试了所有纠错手段（ECC）后依然无法读出的数据。RAW 值应为 0。哪怕只有 1 或 2，也说明这块盘读取极不稳定，随时可能导致系统 IO 卡死（IO Delay 爆表）。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;199 (UDMA_CRC_Error_Count) ——连接稳定性&lt;/strong&gt;&lt;br&gt;
如果这个值很大，只要它不涨，硬盘就是安全的。如果它正在涨，说明 SATA 线坏了。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;7(Seek_Error_Rate) —— 机械结构健康度&lt;/strong&gt;&lt;br&gt;
磁头定位到目标轨道的准确率。对于希捷（Seagate）盘，这个数值很大是正常的；但对于 西部数据（WD）或东芝（Toshiba），这个值必须为 0。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;188 (Command_Timeout) —— 通讯历史&lt;/strong&gt;&lt;br&gt;
硬盘曾因响应太慢导致超时。这通常与供电不足或上述的 SATA 线材问题共同导致&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;198 (Offline Uncorrectable)&lt;/strong&gt; —— 不可修复的扇区错误。&lt;/p&gt;
&lt;h2&gt;针对线材可能故障的检查&lt;/h2&gt;
&lt;p&gt;短自检（Short Self-test）&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;#这种测试主要检查硬盘的磁头读写功能、伺服电路以及盘片的一小部分区域，大约需要 1-2 分钟。
smartctl -t short /dev/sdX


#在 1 分钟后运行以下命令：
smartctl -l selftest /dev/sdd
&lt;/pre&gt;
&lt;p&gt;如果显示 “Completed without error”：说明磁头和电路基本功能正常。&lt;br&gt;
如果显示 “Completed: read failure”：说明磁头撞到了读不出来的点。&lt;/p&gt;
&lt;p&gt;再次检查属性值 (Attributes)： 自检结束后，再次运行 smartctl -a /dev/sdd，对比以下数值：&lt;br&gt;
ID 187 (Reported_Uncorrect)： 是否变成了更大的数字？&lt;br&gt;
ID 197 (Current_Pending_Sector)： 是否从 0 变成了非 0？（如果变了，说明刚才的自检扫出了新坏道）。&lt;br&gt;
ID 199 (UDMA_CRC_Error_Count)： 如果你在自检期间没动过线材，这个值不应该增加。如果增加了，说明你的 SATA 线已经烂到连简单的指令传输都会丢包。&lt;/p&gt;
&lt;h2&gt;稳定性测试&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;#记录原始值
smartctl -a /dev/sdX | grep UDMA_CRC

# 连续读取这块盘的前 20GB 数据，看是否会触发 CRC 增加
dd if=/dev/sdX of=/dev/null bs=1M count=20480 status=progress

#再次验证是否有增加，不增加则稳定
smartctl -a /dev/sdX | grep UDMA_CRC
&lt;/pre&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1330.html</link><guid isPermaLink="false">https://www.ippa.top/1330.html</guid><pubDate>Mon, 05 Jan 2026 17:23:03 GMT</pubDate></item><item><title>解决Ubuntu20.04server安装xfce桌面后XRDP访问黑屏退出</title><description>&lt;p&gt;创建或修改用户 .xsession 文件&lt;/p&gt;
&lt;p&gt;每个通过 xrdp 登录的用户，需要指定默认会话：&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;echo &quot;startxfce4&quot; &amp;gt; ~/.xsession
chmod +x ~/.xsession
&lt;/pre&gt;
&lt;p&gt;再次连接可以了。&lt;/p&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1326.html</link><guid isPermaLink="false">https://www.ippa.top/1326.html</guid><pubDate>Wed, 05 Nov 2025 02:51:39 GMT</pubDate></item><item><title>Ubuntu22配置WireGuard客户端</title><description>&lt;h2&gt;安装&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;sudo apt install wireguard -y
&lt;/pre&gt;
&lt;h2&gt;配置文件&lt;/h2&gt;
&lt;p&gt;配置文件放到 /etc/wireguard/ 下，比如 /etc/wireguard/wg0.conf&lt;/p&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;sudo nano /etc/wireguard/wg0.conf


[Interface]
PrivateKey = xx
Address = 10.0.0.12/24

[Peer]
PublicKey = xx
Endpoint = web.pp.com:10001
AllowedIPs = 10.0.0.0/24, 172.16.31.64/26, 172.16.20.224/27
PersistentKeepalive = 30

#配置里写了 AllowedIPs = 0.0.0.0/0，那么所有流量都会走 wg0。如果只写了内网网段（比如 10.0.0.0/24），那么只有访问那个网段时才会走 WireGuard。
&lt;/pre&gt;
&lt;h2&gt;启停&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;启动连接
sudo wg-quick up wg0

断开连接
sudo wg-quick down wg0

开机自动启动
sudo systemctl enable wg-quick@wg0
&lt;/pre&gt;
&lt;h2&gt;查看更多&lt;/h2&gt;
&lt;pre class=&quot;prettyprint linenums&quot;&gt;sudo wg show

interface: wg0
  public key: xx
  private key: (hidden)
  listening port: 36361

peer: xx
  endpoint: xxx:10001
  allowed ips: 10.0.0.0/24, 172.16.31.64/26, 172.16.20.224/27
  latest handshake: 33 seconds ago
  transfer: 2.81 MiB received, 194.58 KiB sent
  persistent keepalive: every 30 seconds

&lt;/pre&gt;
&lt;!--wp-compress-html no compression--&gt;&lt;!--wp-compress-html--&gt;</description><link>https://www.ippa.top/1323.html</link><guid isPermaLink="false">https://www.ippa.top/1323.html</guid><pubDate>Sun, 17 Aug 2025 23:45:31 GMT</pubDate></item></channel></rss>