DCImanager 5 - Ubuntu 22.04 - user-data

问题:DCImanager 的官方系统镜像源中有 Ubuntu 22.04 ,但仅限于 DCImanager 6。如果想在 DCImanager 5 中使用,需要修改。

修改一:metainfo.xml 文件中,除了 <support> 项要修改, <kernelcommand> 也要改一下,因为可能有些参数不适合 DCImgr5。如将原有的:
<kernelcommand>ip=dhcp cloud-config-url=/dev/null url=($SHAREDIR_FILE)ubuntu.iso autoinstall ds=nocloud-net;s=($OSINSTALLINFO_HTTP)&amp;file=user-data&amp;qwe=files/cloud/</kernelcommand>
修改为:
<kernelcommand>ip=dhcp cloud-config-url=($OSINSTALLINFO_HTTP)&amp;file=user-data url=($SHAREDIR_FILE)ubuntu.iso autoinstall</kernelcommand>

关键是要让 Ubuntu cloud-init 自动安装时,能找到配置文件 user-data。记得还要在文件中加载自定义的 user-data 文件,<file>user-data</file>

修改二:前一步中是用自己修改后的 user-data 文件,因为官方中的内容中可能包含 DCImgr5 中没有的参数 $DISK_LAYOUT_FILE。即将原有的:
bash /tmp/part.sh "($HDD_RAID)" "($DISK_LAYOUT_FILE)"
修改为:
bash /tmp/part.sh "($HDD_RAID)"

参考:

标签: DCImanager

已有 3 条评论

  1. Andre

    It doesn't work for me, it seems like it doesn't find user-data

    1. liujia

      Please make sure you have /DCI/my_ubuntu-22.04-amd64/user-data file.

      1. Andre

        Yes, it is there, I added it to the root and to files, it seems like it doesn’t find it for some reason, but the link to the file gives it, maybe the image needed is not from ispsystem?

添加新评论