MiLoghttps://migege.com- Yet Another GoLang Project DemoTue, 19 Mar 2024 15:22:54 CSTGo-compiled binary running on alpinehttps://migege.com/post/go-compiled-binary-running-on-alpine<p><em>One command is all you need:</em></p> <pre><code>apk add libc6-compat </code></pre><p><a href="https://stackoverflow.com/questions/36279253/go-compiled-binary-wont-run-in-an-alpine-docker-container-on-ubuntu-host">via</a></p> Mon, 25 Sep 2023 16:10:43 CSThttps://migege.com/post/go-compiled-binary-running-on-alpineSuperMicro X10SRL-F 主板 OOB per Node License 生成方法https://migege.com/post/generate-supermicro-ipmi-oob-per-node-license<h2 id="-license-">这个 License 的用途:</h2> <p>激活后,可通过 IPMI Web 页面直接做 BIOS Update 或 RAID Management 操作;据说该方法对 X9/X10/X11 系列均适用</p> <h2 id="-">生成方法:</h2> <ul> <li>在 IPMI Web 首页上复制 BMC MAC 地址</li> <li>执行命令:<code>echo -n '&lt;BMC_MAC&gt;' | xxd -r -p | openssl dgst -sha1 -mac HMAC -macopt hexkey:8544E3B47ECA58F9583043F8 | awk '{print $2}' | cut -c 1-24</code></li> </ul> <h2 id="-">激活方法:</h2> <ul> <li>将上一步生成的 License 分段填入点激活即可</li> </ul> <p><a href="https://techblog.jeppson.org/2018/12/generate-supermicro-ipmi-license/">via</a></p> Sat, 08 Apr 2023 17:22:25 CSThttps://migege.com/post/generate-supermicro-ipmi-oob-per-node-licenseUbuntu Server 22.04.2 LTS 启动卡在 A start job is running for wait for network to be configuredhttps://migege.com/post/ubuntu-server-a-start-job-is-running-for-wait-for-network-to-be-configured<h3 id="-">解决方法</h3> <pre><code>sudo systemctl disable systemd-networkd-wait-online.service sudo systemctl mask systemd-networkd-wait-online.service </code></pre><p><a href="https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1">ref</a></p> Fri, 07 Apr 2023 17:26:47 CSThttps://migege.com/post/ubuntu-server-a-start-job-is-running-for-wait-for-network-to-be-configuredNVIDIA Tesla P40 显卡 BIOS 报错 PCI OUT OF RESOURCEShttps://migege.com/post/nvidia-tesla-p40-error-pci-out-of-resources<h3 id="-">报错如下:</h3> <pre><code>!!!!PCI Resource ERROR!!!! PCI OUT OF RESOURCES CONDITION: Error: Insufficient PCI Resources Detected!!! System is running with Insufficient PCI Resources! In order to display this message some PCI devices were set to disabled state! It is strongly recommended to Power Off the system and remove some PCI/PCI Express cards from the system! To continue booting, proceed to Menu Option and select Boot Device or . WARNING: If you choose to continue booting some Operating Systems might not be able to complete boot correctly! </code></pre><h3 id="-">解决方法:</h3> <ul> <li>开机进入 BIOS 设置</li> <li>找到设置项:BIOS &gt; Advanced &gt; PCIe/PCI/PnP Configuration &gt; Above 4G Decoding</li> <li>设为 Enabled</li> </ul> <p><a href="https://www.supermicro.org.cn/support/faqs/faq.cfm?faq=15556">ref</a></p> Fri, 07 Apr 2023 17:23:18 CSThttps://migege.com/post/nvidia-tesla-p40-error-pci-out-of-resourcesESXi vm 自动启动不起作用的解决方法https://migege.com/post/esxi-vm-autostart-not-working<ol> <li>Navigator -&gt; Manage -&gt; System -&gt; Autostart</li> <li>Edit settings -&gt; Enabled -&gt; Yes</li> </ol> Wed, 22 Mar 2023 15:03:23 CSThttps://migege.com/post/esxi-vm-autostart-not-workingESXi VM 使用 vmdk 文件虚拟 USB 安装/引导盘的方法https://migege.com/post/emulating-virtual-usb-disk-to-esxi-vm<h2 id="-">要点如下:</h2> <ul> <li>在 VM 的数据目录下新建一个空白 vmdk 文件:<code>vmkfstools -c 8G &lt;path-to-vmdk-file&gt;</code>,注意替换尖括号里的文件名,假设就叫 <code>usb.vmdk</code>,下同</li> <li>使用 <code>dd</code> 命令将可引导的 iso 或 img 写入 vmdk 文件:<code>dd if=&lt;path-to-iso-or-img-file&gt; of=&lt;path-to-vmdk-file&gt; bs=1M conv=notrunc</code></li> <li>修改 vmx 文件,添加以下配置:<pre><code>usb_xhci:0.present = "TRUE" usb_xhci:0.deviceType = "disk" usb_xhci:0.fileName = "usb.vmdk" usb_xhci:0.readOnly = "FALSE" usb_xhci:0.speed = "16" usb_xhci:0.parent = "-1" usb_xhci:0.port = "0" </code></pre></li> <li>使用 <code>vim-cmd</code> 命令重新加载虚拟机配置:<code>vim-cmd vmsvc/reload $(vim-cmd vmsvc/getallvms | grep '&lt;你的虚拟机名称&gt;' | awk '{print $1}')</code></li> <li>启动!</li> </ul> Sat, 18 Mar 2023 23:20:35 CSThttps://migege.com/post/emulating-virtual-usb-disk-to-esxi-vmCentOS 7 从 Unraid VM 迁移到 ESXi 无法启动的解决方法https://migege.com/post/centos-vm-boot-failure-after-migrating-from-unraid-to-esxi<h2 id="-">要点如下:</h2> <ul> <li>将硬盘的控制器修改为 IDE</li> <li>进入系统</li> <li>dracut --force --no-hostonly</li> <li>关闭 vm</li> <li>将硬盘的控制器修改为你想要的</li> <li>进入系统</li> <li>dracut --force</li> </ul> Sat, 18 Mar 2023 23:10:31 CSThttps://migege.com/post/centos-vm-boot-failure-after-migrating-from-unraid-to-esxiDell OptiPlex 7080mff 安装 ESXi 7.x 不识别 HP EX950 M.2 nvme 硬盘的解决方法https://migege.com/post/dell-optiplex-7080mff-esxi-7-hp-ex950-m2-nvme-ssd<h2 id="-2023-03-16-">先说结论(2023-03-16):</h2> <ul> <li>用这个方法也只能安装 ESXi 7.0u3,8.0b 仍然无法安装。</li> <li>为什么不直接安装 ESXi 6.5,因为 6.5 又缺少网卡驱动,而且版本太旧</li> </ul> <h2 id="-">解决方法:</h2> <ul> <li>根本原因,ESXi 7.0 缺少一些 M.2 nvme 硬盘的驱动,据说是从 ESXi 6.7 开始干掉的</li> <li>下载 ESXi 6.5u2 的 iso,打开</li> <li>提取出 NVME.V00 文件,改名为 NVME_PCI.V00</li> <li>打开 ESXi 7.0 的 iso,把 NVME_PCI.V00 改名为 NVME_PCI.V00.OLD</li> <li>把之前提取出来的 NVME_PCI.V00 覆盖进来,保存</li> <li>用修改过的 iso 安装即可</li> </ul> Fri, 17 Mar 2023 18:04:35 CSThttps://migege.com/post/dell-optiplex-7080mff-esxi-7-hp-ex950-m2-nvme-ssd映泰 J4125NHU 主板的缺点https://migege.com/post/biostar-j4125nhu-disadvantages<ul> <li>只有 2 个 SATA3,跑 NAS 大概率需要 PCIe 或 M.2 转 SATA 的扩展卡</li> <li>只有 1 个 M.2 nvme,没有可插无线网卡或 SATA 扩展卡的 M.2 Key A/E 插座</li> <li>只有 1 个 PCIe 2.0 x16 插槽(x1 模式)</li> <li>2 个 风扇接口都是 3 针的,不支持 PWM 调速,电压调速不知道有没有</li> <li>接不了前置 USB3,接不了前置 USB Type-C</li> <li>600 元 RMB 的价格,有点贵</li> </ul> Tue, 14 Mar 2023 15:38:52 CSThttps://migege.com/post/biostar-j4125nhu-disadvantagesAnchor 测试页https://migege.com/post/anchor-test-page<ul> <li><a href="#hehe1">#hehe1</a></li> <li><a href="#hehe2">#hehe2</a></li> <li><a href="#hehe3">#hehe3</a></li> </ul> Fri, 20 May 2022 10:37:51 CSThttps://migege.com/post/anchor-test-page