<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PVE on OHTLY Blog</title>
    <link>https://blog.ohtly.com/tags/pve/</link>
    <description>Recent content in PVE on OHTLY Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sun, 14 Jun 2026 23:10:01 +0800</lastBuildDate>
    <atom:link href="https://blog.ohtly.com/tags/pve/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>PVE &#43; Ubuntu 24.04 &#43; cloud-init 静默安装vm</title>
      <link>https://blog.ohtly.com/posts/2026-06-14-pve-cloudinit-vm/</link>
      <pubDate>Sun, 14 Jun 2026 23:10:01 +0800</pubDate>
      <guid>https://blog.ohtly.com/posts/2026-06-14-pve-cloudinit-vm/</guid>
      <description>&lt;h2 id=&#34;痛点&#34;&gt;&#xA;  痛点&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e7%97%9b%e7%82%b9&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;传统 PVE 创建 VM 的流程：&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;下载 ISO 镜像&lt;/li&gt;&#xA;&lt;li&gt;通过 Web UI 或命令行创建 VM&lt;/li&gt;&#xA;&lt;li&gt;打开 VNC 控制台，手动走完 Ubuntu 安装向导&lt;/li&gt;&#xA;&lt;li&gt;设置用户名、密码、时区、磁盘分区&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;安装完成后登录，再手动配置 SSH key&lt;/li&gt;&#xA;&lt;li&gt;重复以上步骤 N 次（如果需要多台）&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;整个过程耗时 10-15 分钟，且每一步都需要人工介入。如果只是需要一个临时测试环境，这个流程太繁琐了。&lt;/p&gt;&#xA;&lt;h2 id=&#34;方案cloud-image--cloud-init&#34;&gt;&#xA;  方案：cloud image + cloud-init&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e6%96%b9%e6%a1%88cloud-image--cloud-init&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Ubuntu 官方提供 &lt;strong&gt;cloud image&lt;/strong&gt;（预装 cloud-init 的磁盘镜像），配合 PVE 内置的 cloud-init 支持，可以实现：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;无需 ISO 安装，镜像即系统&lt;/li&gt;&#xA;&lt;li&gt;首次启动自动完成：磁盘扩容、创建用户、注入 SSH key、配置网络&lt;/li&gt;&#xA;&lt;li&gt;全程无人值守，1-2 分钟即可 SSH 登录&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;操作步骤&#34;&gt;&#xA;  操作步骤&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e6%93%8d%e4%bd%9c%e6%ad%a5%e9%aa%a4&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;1-下载-ubuntu-2404-cloud-image&#34;&gt;&#xA;  1. 下载 Ubuntu 24.04 cloud image&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#1-%e4%b8%8b%e8%bd%bd-ubuntu-2404-cloud-image&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;在 PVE 节点上下载：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
