使用 Cobbler 安装 Ubuntu 出现的问题
pxe 安装 Ubuntu 10.04,使用 apt-mirror 同步源在内网使用,然后在 preseed 文件上修改的这两段:d-i mirror/http/hostname string http://your-private-ip
d-i mirror/http/directory string /ubuntu
在使用 iDRAC 打开安装界面,Ctrl+Alt+F4 观察安装的 log 时,发现启动到一定阶段系统没有相应了,出现如下的提示:
cat can't open '/tmp/net-retriever-xxxx-deduplicate/*': No such file or directory.
之前直接使用 mirrors.sohu.com 的源并没有出现问题,初步判定是由于使用了内部源引起的。
G 后发现是使用 apt-mirror 同步源时没有同步 netboot 下面的某些目录, rsync 下面的目录:
deb-amd64 http://mirrors.sohu.com/ubuntu lucid main/installer-amd64
deb-amd64 http://mirrors.sohu.com/ubuntu lucid main/debian-installer restricted/debian-installer universe/debian-installer multiverse/debian-installer
#deb-amd64 http://mirrors.sohu.com/ubuntu lucid-updates main/debian-installer restricted/debian-installer universe/debian-installer
#deb-amd64 http://mirrors.sohu.com/ubuntu lucid-security main/debian-installer restricted/debian-installer universe/debian-installer
其实只要同步前两个链接就可以,加 # 可选择性同步。
如果出现 "WARNING **: bad d-i Packages file" 类似的提示,修改 preseed 文件的认证:
d-i debian-installer/allow_unauthenticated string true
另外,apt-mirror 同步时,可注视掉 /etc/apt/mirror.list 里面的 deb-src 开头的几段,即不同步源文件,这样差不多 90G 可以同步一个 lucid x86_64 的 lucid/lucid-secuirty/lucid-updates/lucid-proposed/lucid-backports。
ref:
http://ubuntuforums.org/showthread.php?p=9369393
http://askubuntu.com/questions/35758/where-is-the-netboot-image
http://irclogs.ubuntu.com/2009/12/04/%23ubuntu-installer.html
页:
[1]