ubuntu17.04操作系统 cobbler+ks方式(非seed文件方式)

cobbler安装ubuntu17.04操作系统 ks方式

准备ks文件
[root@localhost ~]# vim /var/lib/cobbler/kickstarts/ubuntu17.cfg
#Generated by Kickstart Configurator
#platform=x86

#System language
lang en_US
#Language modules to install
langsupport zh_CN --default=en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone --utc Asia/Shanghai
#Root password
rootpw --iscrypted $1$2HsQo2x9$.W88TweSDVSMGQ/D8ycVA.
#Initial user
user ubuntu --fullname "ubuntu" --iscrypted --password $1$9fv5P8A7$PIrqAtridY2eLPgbU.xkW1
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url $tree
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype xfs --size 1024
part swap --size 4096
part / --fstype xfs --size 1 --grow
#System authorization infomation
auth  --useshadow  --enablemd5
#Network information
network --bootproto=dhcp --device=ens33
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx


#install pakges
%packages
@ Base
openssh-client
openssh-server
vim
wget
make
gcc
zip
libsensors4
net-tools
指定ks文件
[root@localhost ~]# cobbler profile  edit --name=Ubuntu-17-x86_64  --kickstart=/var/lib/cobbler/kickstarts/ubuntu17.cfg
[root@localhost ~]# cobbler sync
编辑default文件

更改部分ubuntu17的内容

[root@localhost ~]# vim /var/lib/tftpboot/pxelinux.cfg/default
..........
LABEL Ubuntu-17-x86_64
        kernel /images/Ubuntu-17-x86_64/linux
        MENU LABEL Ubuntu-17-x86_64
        append initrd=/images/Ubuntu-17-x86_64/initrd.gz ksdevice=bootif lang=  kssendmac text  ks=http://192.168.32.10/cblr/svc/op/ks/profile/Ubuntu-17-x86_64 hostname=Ubuntu
        ipappend 2
.............

注意:此处不能使用cobbler sync更新与同步
之后通过PXE引导安装操作系统,观察。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值