TH_blog
    Warning: Attempt to read property "before" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 68 Warning: Attempt to read property "link_before" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 74 Warning: Attempt to read property "link_after" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 74 Warning: Attempt to read property "after" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 76
    Warning: Attempt to read property "before" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 68 Warning: Attempt to read property "link_before" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 74 Warning: Attempt to read property "link_after" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 74 Warning: Attempt to read property "after" on array in /usr/home/taohuadongle/domains/www.thdl.top/public_html/wp-content/themes/cx-multi/classes/menuwalker.class.php on line 76
当前位置: 首页 未分类 正文

VMware ESXi 运维指南

thdl |
30

以下是将你提供的内容完整转换为 Markdown 格式的结果,未修改任何原始内容,仅按标准 Markdown 语法进行结构化呈现:

## 目录

1. 系统访问与界面管理
   1.1 启动DCUI控制台
   1.2 控制台操作说明

2. 激活与许可管理
   2.1 许可证激活
   2.2 许可状态检查
   2.3 许可管理建议

3. 硬件配置问题解决
   3.1 无显示器启动问题

4. 常用运维命令
   4.1 网络配置
   4.2 存储管理
   4.3 服务管理
   4.4 日志查看

附录:硬件兼容性要求

---

## 1. 系统访问与界面管理

### 1.1 启动DCUI控制台

> **应用场景:**
> - 网络配置丢失时本地恢复
> - 密码重置/解锁账户
> - 系统启动故障排查

```bash
TERM=xterm  # 设置终端类型
dcui        # 启动Direct Console User Interface (DCUI)</code></pre>
<h3>1.2 控制台操作说明</h3>
<table>
<thead>
<tr>
<th style="text-align: left;">功能键</th>
<th style="text-align: left;">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">F2</td>
<td style="text-align: left;">进入系统配置</td>
</tr>
<tr>
<td style="text-align: left;">F11</td>
<td style="text-align: left;">重启主机</td>
</tr>
<tr>
<td style="text-align: left;">F12</td>
<td style="text-align: left;">关机</td>
</tr>
<tr>
<td style="text-align: left;">Alt+F1</td>
<td style="text-align: left;">切换到命令行模式 (Shell)</td>
</tr>
<tr>
<td style="text-align: left;">Alt+F2</td>
<td style="text-align: left;">返回DCUI</td>
</tr>
</tbody>
</table>
<hr />
<h2>2. 激活与许可管理</h2>
<h3>2.1 许可证激活</h3>
<blockquote>
<p><strong>注意:</strong> 此测试用激活码仅适用于ESXi 7.0 U3版本</p>
</blockquote>
<pre><code class="language-bash">esxcli system license add --license=0A65P-00HD0-3Z5M1-M097M-22P7H</code></pre>
<h3>2.2 许可状态检查</h3>
<pre><code class="language-bash">esxcli system license list</code></pre>
<p><strong>输出示例:</strong></p>
<pre><code>LicenseName: VMware ESXi
LicenseKey: 0A65P-00HD0-3Z5M1-M097M-22P7H
Expiration: 2025-12-31    # 永久许可证显示Perpetual</code></pre>
<h3>2.3 许可管理建议</h3>
<ol>
<li><strong>生产环境:</strong> 必须使用官方正版授权</li>
<li><strong>测试环境:</strong> 可申请60天试用版</li>
<li><strong>合规要求:</strong> 定期审计许可证状态</li>
</ol>
<hr />
<h2>3. 硬件配置问题解决</h2>
<h3>3.1 无显示器启动问题</h3>
<p><strong>解决方案:</strong></p>
<ol>
<li><strong>进入BIOS/UEFI:</strong> 开机按F2/Del键</li>
<li><strong>禁用CSM模块:</strong>
```diff
Boot → CSM Support → Disabled
```
<li><strong>启用控制台重定向:</strong>
```diff
Serial Port Console Redirection → Enabled
```

配置验证:

esxcli system settings kernel list -o noGraphics

预期输出: `noGraphics = true`


4. 常用运维命令

4.1 网络配置

# 查看网络适配器
esxcli network nic list

# 配置静态IP
esxcli network ip interface ipv4 set -i vmk0 -I 192.168.1.100 -N 255.255.255.0 -g 192.168.1.1

4.2 存储管理

# 查看存储设备
esxcli storage core device list

# 挂载NFS存储
esxcli storage nfs add -H nas.example.com -s /share -v nfs_share

4.3 服务管理

# 重启管理服务
/etc/init.d/hostd restart

# 查看服务状态
service-control --status --all

4.4 日志查看

# 实时查看系统日志
tail -f /var/log/vmkernel.log

# 导出日志包(标准化收集流程)
vm-support -s -w /tmp


✅ **说明:**
- 所有原始文本、代码块、格式、注释、符号均保持不变。
- 使用标准 Markdown 语法,兼容 GitHub、Typora、VS Code 等主流渲染器。
- <code>diff</code> 代码块保留原样,适用于支持 <code>diff</code> 语法高亮的环境。

如需导出为 <code>.md</code> 文件或转换为其他格式(如 HTML、PDF),也可继续告诉我。

声明:原创文章请勿转载,如需转载请注明出处!