Cisco CUCM
<h1>1 如何创建思科统一通信管理器(CUCM)</h1><p>创建思科统一通信管理器(CUCM)需要具备一定的Linux高级技能。</p>
<h2>1.1 相关信息表格</h2>
<table>
<thead>
<tr>
<th>EVE镜像文件夹名称</th>
<th>下载文件名</th>
<th>版本</th>
<th>虚拟CPU</th>
<th>内存(MB)</th>
<th>硬盘格式</th>
<th>网卡格式</th>
<th>Qemu格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>cucm-12.5.1</td>
<td>UCSInstall_CUP_12.5.1.11900-117.sgn.iso</td>
<td>12.5.1</td>
<td>2</td>
<td>4096</td>
<td>virtioa</td>
<td>vmxnet3</td>
<td>2.12.0</td>
</tr>
</tbody>
</table>
<h2>1.2 说明</h2>
<p><strong>注意/警告</strong>:创建此镜像要求EVE服务器硬盘至少有80GB可用空间,不适合小型PC的EVE虚拟机。</p>
<h2>1.3 第一阶段:制作可引导且支持KVM的原始安装镜像</h2>
<p>此阶段需要实际的CUCM安装ISO文件。</p>
<ol>
<li>使用思科CCO账户获取原始CUCM安装ISO(当前使用版本为<strong>UCSInstall_CUP_12.5.1.11900-117.sgn.iso</strong>)。</li>
<li>通过SSH(如Putty)以root身份登录EVE服务器,创建临时文件夹:</li>
</ol>
<pre><code class="language-Bash">sudo mkdir /mnt/iso
sudo mkdir /tmp/cucm
</code></pre>
<ol start="3">
<li>使用FileZilla或WinSCP将下载的ISO上传到EVE /root目录。</li>
<li>挂载ISO文件到/mnt/iso:</li>
</ol>
<pre><code class="language-Bash">sudo mount -o loop UCSInstall_UCOS_12.5.1.11900-146.sgn.iso /mnt/iso/
</code></pre>
<ol start="5">
<li>复制挂载的ISO文件到/tmp/cucm/:</li>
</ol>
<pre><code class="language-Bash">rsync -a /mnt/iso/ /tmp/cucm/
</code></pre>
<ol start="6">
<li>编辑文件以启用KVM:</li>
</ol>
<pre><code class="language-Bash">cd /tmp/cucm/Cisco/hssi/server_implementation/KVM/QEMU/shared/bin
mv api_implementation.sh.proposed api_implementation.sh
cd
</code></pre>
<ol start="7">
<li>禁用OpenStack支持:</li>
</ol>
<pre><code class="language-Bash">cd /tmp/cucm/Cisco/hssi/server_implementation/OpenStack/shared/bin/
mv api_implementation.sh api_implementation.sh.proposed
cd
</code></pre>
<ol start="8">
<li>编辑ihardware.sh文件中的hasHwSnmpMonitoring函数:</li>
</ol>
<pre><code class="language-Bash">nano /tmp/cucm/Cisco/base_scripts/ihardware.sh
</code></pre>
<pre><code>修改为:
</code></pre>
<pre><code class="language-Bash">function hasHwSnmpMonitoring()
{
return 1
}
</code></pre>
<pre><code>按`ctrl+o`保存,`x`退出。
</code></pre>
<ol start="9">
<li>创建可引导ISO:</li>
</ol>
<pre><code class="language-Bash">cd /tmp/cucm/
mkisofs -o /tmp/cucm/Boot_UCSInstall_UCOS_12.5.1.11900-146.sgn.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R .
</code></pre>
<ol start="10">
<li>卸载原始ISO:</li>
</ol>
<pre><code class="language-Bash">umount /mnt/iso
</code></pre>
<h2>1.4 第二阶段:在EVE中安装CUCM镜像</h2>
<p>需使用第一阶段创建的可引导ISO。</p>
<ol>
<li>创建镜像目录:</li>
</ol>
<pre><code class="language-Bash">mkdir /opt/unetlab/addons/qemu/cucm-12.5.1.11900-146/
</code></pre>
<ol start="2">
<li>复制并重命名ISO:</li>
</ol>
<pre><code class="language-Bash">cp /tmp/cucm/Boot_UCSInstall_UCOS_12.5.1.11900-146.sgn.iso /opt/unetlab/addons/qemu/cucm-12.5.1.11900-146/cdrom.iso
</code></pre>
<ol start="3">
<li>进入该目录:</li>
</ol>
<pre><code class="language-Bash">cd /opt/unetlab/addons/qemu/cucm-12.5.1.11900-146/
</code></pre>
<ol start="4">
<li>创建80GB虚拟硬盘:</li>
</ol>
<pre><code class="language-Bash">/opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 80G
</code></pre>
<ol start="5">
<li>创建一个新实验并添加新构建的<strong>cucm-12.5.1.11900-146</strong>节点。<strong>重要提示</strong>:将其连接到已配置DNS服务器的实验环境中(可采用简易版思科路由器作为DNS和NTP服务器,用于响应FQDN查询)。启动CUCM节点,当安装程序提示检查介质时,请选择跳过。</li>
</ol>
<p><img src="data/attachment/forum/202511/19/004606f4npbp4ntad57azd.png" alt="" /></p>
<ol>
<li>继续完成CUCM设置向导,使用自定义IP和DNS。</li>
</ol>
<p><img src="data/attachment/forum/202511/19/004606vmpnoxxcgug3hiqj.png" alt="" /></p>
<ol>
<li>CUCM节点安装完成后命令行执行以下命令关机:</li>
</ol>
<pre><code class="language-Bash">utils system shutdown
</code></pre>
<ol start="2">
<li>清理临时文件:</li>
</ol>
<pre><code class="language-Bash">rm -r /tmp/cucm
</code></pre>
<h2>1.5 第三阶段:提交CUCM镜像供后续使用</h2>
<ol>
<li>在EVE Web-UI左侧栏的“Lab Details”中获取实验室UUID。例如:<strong>UUID: 9a4f9db1-4ab2-4e8c-b066-0d25ceeb540b</strong></li>
<li>查找<strong>POD ID</strong>(admin默认为0)和<strong>Node ID</strong>(CUCM节点右键查看)。</li>
</ol>
<p><img src="data/attachment/forum/202511/19/004606fg51jek2ee12otqm.png" alt="" /></p>
<p><img src="data/attachment/forum/202511/19/004606mssjb2drxnzxac1s.png" alt="" /></p>
<p><img src="data/attachment/forum/202511/19/004606qd4pp4155dw50cv8.png" alt="" /></p>
<ol>
<li>提交镜像:</li>
</ol>
<pre><code class="language-Bash">cd /opt/unetlab/tmp/0/9a4f9db1-4ab2-4e8c-b066-0d25ceeb540b/4/
/opt/qemu/bin/qemu-img commit virtioa.qcow2
</code></pre>
<ol start="2">
<li>删除cdrom.iso:</li>
</ol>
<pre><code class="language-Bash">cd /opt/unetlab/addons/qemu/cucm-12.5.1.11900-146/
rm -f cdrom.iso
</code></pre>
<h2>1.6 高级操作:压缩镜像(推荐)</h2>
<ol>
<li>完成上述所有步骤并生成默认镜像后,您可压缩其硬盘以减小体积。 <strong>重要提示</strong>:压缩镜像时,EVE主机必须预留充足可用空间——需超过待压缩硬盘的总容量(本例为30GB)。所需空间根据实际情况浮动,但至少需满足"待压缩磁盘总空间+最终稀疏化压缩后的镜像大小"。为保障操作安全,建议EVE主机可用空间达到待压缩硬盘容量的两倍。本例实际需35GB可用硬盘空间。流程完成后,临时文件将自动清除并释放占用空间。 <strong>进入镜像目录</strong>:</li>
</ol>
<pre><code class="language-Bash">cd /opt/unetlab/addons/cucm-12.5.1.11900-146
</code></pre>
<ol start="2">
<li><strong>压缩镜像</strong>: 这需要一些时间,完成后会在同一镜像目录(cucm-12.5.1.11900-146)中生成另一个压缩镜像。</li>
</ol>
<pre><code class="language-Bash">virt-sparsify --compress virtioa.qcow2 compressedvirtioa.qcow2
</code></pre>
<ol start="3">
<li><strong>完成压缩后,重命名文件</strong>:</li>
</ol>
<pre><code class="language-Bash">mv virtioa.qcow2 orig.qcow2
mv compressedvirtioa.qcow2 virtioa.qcow2
</code></pre>
<ol start="4">
<li>现在您可以在实验拓扑中测试新压缩的镜像,只需Wipe擦除节点并重新启动即可。</li>
<li>若压缩后的节点运行正常,即可删除<strong>orig.qcow2</strong>源镜像。</li>
</ol>
<h2>1.7 关键点总结</h2>
<ol>
<li><strong>前置要求</strong>:需Linux操作技能和至少80GB硬盘空间,依赖思科CCO账户获取ISO。</li>
<li><strong>核心流程</strong>:分三阶段(制作可引导镜像、安装镜像、提交镜像),每阶段需严格执行命令。</li>
<li><strong>关键配置</strong>:启用KVM、禁用OpenStack、修改SNMP监控函数,确保镜像兼容EVE环境。</li>
<li><strong>环境依赖</strong>:安装时需连接DNS/NTP服务器(如思科路由器),否则可能配置失败。</li>
<li><strong>优化建议</strong>:推荐压缩镜像以节省空间,需保证足够临时空间(建议为镜像大小的两倍)。</li>
</ol>
页:
[1]