无忧启动论坛

标题: 求助一下preseed的问题 [打印本页]

作者: a22124497    时间: 2020-12-27 15:17
标题: 求助一下preseed的问题
ubuntu-16.04.7-server-amd64  用pxe引导netboot来安装
  kernel http://${next-server}/ubuntu/linux
  initrd http://${next-server}/ubuntu/initrd.gz
  chain linux initrd=initrd.gz   auto=true priority=critical interface=auto netcfg/no_default_route=true  netcfg/get_nameservers=192.168.147.1 preseed/url=http://${next-server}/ubuntu/preseed.cfg debian-installer/allow_unauthenticated=true  DEBCONF_DEBUG=5 --- quie
  boot




preseed文件中,选的中本地源了,

d-i mirror/country string manual

d-i mirror/http/hostname string 192.168.147.1
d-i mirror/http/directory string /ubuntu16

d-i mirror/udeb/suite string xenial

按网上说的,加了一个,就不要不进行gpg什么认证了
debian-installer/allow_unauthenticated=true

d-i debian-installer/allow_unauthenticated  true

看日志,
net-retriever  gpgv good signature from ubuntu cd inage tutomatic signing key

然后下载http://192.16.147.1/ubuntu16/dis ... y-amd64/packages.gz这个到tmp,接下来就是会报
net-retriever: error:  main\debian-installer\binary-amd64\packages.gz not found int /tmp/net-retriever-3751-Rdlease (for sha1 checksum)


有没哪个大大给解惑一下的


作者: 2012wjia    时间: 2020-12-27 16:48
提示: 作者被禁止或删除 内容自动屏蔽
作者: 2012wjia    时间: 2020-12-27 20:19
提示: 作者被禁止或删除 内容自动屏蔽
作者: hkkitlee    时间: 2020-12-28 14:02
試試手動將鏡站改為官方網站,如可以安裝就是iso有問題或是bug。

除非驅動問題,建議更新版本,16有點舊了
作者: mayi    时间: 2020-12-28 17:13
我也没搞成功这个自动安装的,只是pxe能启动,可以手动选择安装
作者: hkkitlee    时间: 2020-12-28 18:21
http://www.vm.ibm.com/education/lvc/lvc0803.pdf
作者: a22124497    时间: 2020-12-28 21:33
hkkitlee 发表于 2020-12-28 18:21
http://www.vm.ibm.com/education/lvc/lvc0803.pdf

# do not enable live installer, use normal instead
d-i live-installer/enable boolean false

文档中就看到了这个

#########################   第三部分:镜像设置  ###########################

d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.147.1
d-i mirror/http/directory string /ubuntu18
d-i mirror/http/proxy string

d-i live-installer/net-image string /http://192.168.147.1/ubuntu18/casper/filesystem.squashfs
d-i live-installer/enable boolean normal
d-i apt-setup/restricted boolean false
d-i apt-setup/universe boolean false
d-i apt-setup/backports boolean false
d-i apt-setup/proposed boolean false
d-i apt-setup/security_host string

# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string mirrors.aliyun.com
d-i apt-setup/security_path string /ubuntu


——————————————————————
我加了这个,好像不生效,还是直接从我本地的http里开始安装的,


这个preseed,可是真的难写

ubuntu-server.seed.rar

6.48 KB, 下载次数: 4, 下载积分: 无忧币 -2

去掉rar


作者: hkkitlee    时间: 2020-12-28 22:46
a22124497 发表于 2020-12-28 21:33
# do not enable live installer, use normal instead
d-i live-installer/enable boolean false

恭喜你終於成功。
學多了就是師父,懂了就不難。
作者: a22124497    时间: 2020-12-29 10:20
hkkitlee 发表于 2020-12-28 22:46
恭喜你終於成功。
學多了就是師父,懂了就不難。

可以给一个你用的preseed.cgf的例子不,学习一下
作者: hkkitlee    时间: 2020-12-29 13:22
a22124497 发表于 2020-12-29 10:20
可以给一个你用的preseed.cgf的例子不,学习一下

已經沒用很久...
伺服器一般不會不調整就大批量安裝。
大批量桌面機倒不如用clonezilla經p2p複製出來。(改個主機名總比你經網絡安裝快)
遠程安裝preseed也幫不到忙。
作者: 2012wjia    时间: 2020-12-31 08:55
提示: 作者被禁止或删除 内容自动屏蔽
作者: 2011117    时间: 2021-2-25 16:06
我也是,就是不从局域网做好的apache2上下镜像,但是从外网下是好使的
作者: zh::    时间: 2021-5-10 14:22
支持一下。。。。
作者: chinaxzg    时间: 前天 22:51
mfzyw1.com  太好了,我太喜欢了,谢谢!




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) Powered by Discuz! X3.3