首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >创建自定义安装ubuntu18.04活动服务器时出错

创建自定义安装ubuntu18.04活动服务器时出错
EN

Ask Ubuntu用户
提问于 2018-08-08 04:34:56
回答 1查看 1.4K关注 0票数 1

我正在尝试创建一个自定义ISO的ubuntu18.04使用正式的ubuntu -18.04.1-现场服务器- as 64.ISO作为一个基本的映像与我自己的一组预置文件,以便稍后创建一个流浪者盒与封隔器。

我一直在/root文件系统丢失的地方得到一个错误(请参阅最后附加的屏幕快照),他在论坛上找到的解决方案使用fsck (这也是缺失的),方法是将fsck从一个LiveCD加载到解决这个问题;但是他们的修复并不适用于我,因为我正在尝试打包一个工作映像。

我尝试使用ubuntu-18.04.1-live amd64.iso中的播种机文件,但是没有成功,然后我使用以下站点作为引用来构建我的seeder.cfg文件:

  1. https://help.ubuntu.com/lts/installation-guide/amd64/apbs04.html#preseed-l10n
  2. https://help.ubuntu.com/lts/installation-guide/example-preseed.txt
  3. https://d-i.debian.org/manual/example-preseed.txt

这是我的预置文件:

代码语言:javascript
复制
d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select us
d-i passwd/root-password-crypted password __PASSWORD__
d-i passwd/user-fullname string vagrant
d-i passwd/username string vagrant
d-i passwd/user-password-crypted password __PASSWORD__
d-i user-setup/allow-password-weak boolean true
d-i time/zone string US/Central
d-i clock-setup/ntp boolean true
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i pkgsel/include string curl openssh-server sudo git vim
d-i pkgsel/language-packs multiselect
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string                                               \
    echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant;      \
    echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant;  \
    chmod 440 /target/etc/sudoers.d/vagrant;                                  \
    ln -sf /dev/null /target/etc/systemd/network/99-default.link;             \
    in-target update-initramfs -u

该文件的使用方式如下来自/isolinux/adtxt.cfg

代码语言:javascript
复制
label bionic
  menu label ^Custom Install
  kernel /casper/vmlinuz
  append  initrd=/casper/initrd net.ifnames=0 auto-install/enable=true debconf/priority=critical file=/cdrom/preseed/ubuntu-18.04/preseed.cfg ---

如有任何帮助或指导,将不胜感激。

错误消息

EN

回答 1

Ask Ubuntu用户

发布于 2018-11-01 15:25:04

preseed文件机制与Debian运行良好,但是Ubuntu18.04LTSLive映像使用一个名为亚比基的新安装程序,它使用answers.yml文件机制来回答安装程序的问题。

但是,如果您从CD图像目录下载,仍然可以使用旧的Debian找到18.04LTS映像,它将使用您的preseed文件。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1063393

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档