ubuntu 自动安装

ubuntu安装程序介绍

debian-installer:Debian 系统的安装程序,使用preseed机制进行自动安装。

ubiquity:ubiquity是Ubuntu的live CD图形安装程序,主要使用Python编写,使用debian-installer(d-i)作为其许多功能的后端,同样使用preseed机制进行自动安装。
This is a simple live CD installer designed to integrate well with Debian- and Ubuntu-based systems, and to reuse code from d-i for ease of maintenance.

subiquity:新的Ubuntu Server安装程序,用来替代基于debian-installer(di)的经典服务器安装程序(ubiquity),Ubuntu Server 17.10中引入,在ubuntu server 20.04 LTS中彻底淘汰debian-installer,subiquity使用cloud-init进行自动安装。

使用preseed自动化安装

官方文档:
https://help.ubuntu.com/16.04/installation-guide/amd64/apb.html
使用例子:
https://zhangguanzhang.github.io/2019/08/06/preseed/
https://blog.csdn.net/weixin_43424368/article/details/102504109
新建好preseed文件后,修改 isolinux.cfg和grub.cfg,在启动参数中添加preseed文件的路径/地址。

使用cloud-init自动化安装

官方文档:
https://ubuntu.com/server/docs/install/autoinstall
https://ubuntu.com/server/docs/install/autoinstall-reference
https://ubuntu.com/server/docs/install/autoinstall-quickstart

使用例子:
https://askubuntu.com/questions/1235723/automated-20-04-server-installation-using-pxe-and-live-server-image
https://medium.com/@tlhakhan/ubuntu-server-20-04-autoinstall-2e5f772b655a

从网络获取配置文件安装步骤:
1.创建user-data 和 meta-data
2.启动python3网络服务,包含第一步的2个文件

python3 -m http.server 3003

3. 修改isolinux.cfg和grub.cfg,在启动参数中添加文件url 路径.

linux   /casper/vmlinuz quiet autoinstall ds=nocloud-net\;s=http://<my-laptop-ip>:3003/ ---

用户配置文件集成在iso镜像中的例子:
https://github.com/covertsh/ubuntu-autoinstall-generator

 

 

  • 1
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值