本文共 2505 字,大约阅读时间需要 8 分钟。
Kickstart+tftp自动部署Ubuntu 14.04:
d-i live-installer/net-image string
:wqappend ks= vga=788 initrd=ubuntu-installer/amd64/initrd.gz live-installer/net-image=
:wq
到已有Ubuntu vnc图形界面(apt-get install system-config-kickstart)
installation Method——HTTP——HTTP Server:10.0.0.2 HTTP Directory:/ks/ubt14043
Partition Information 设置/分区和swap分区 (均为P主分区)
Network Configuration——Add Network Device—— eth0 DHCP
File——Save File (默认为/root/ks.cfg)
timezone Asia/Shanghai (默认为美国时区)
part /boot/efi --fstype vfat --size 1000 --asprimary --ondisk sda(手动添加efi分区)
network --bootproto=dhcp --device=em1 (将eth0改为em1)
:wq
#Generated by Kickstart Configurator
#platform=x86#System language
lang en_US#Language modules to installlangsupport en_US#System keyboardkeyboard us#System mousemouse#System timezonetimezone Asia/Shanghai#Root passwordrootpw --disabled#Initial useruser super --fullname "super" --iscrypted --password $1$.ljIjOMi$vFieciSvR.iGv3uyiVV9D1#Reboot after installationreboot#Use text mode installtext#Install OS instead of upgradeinstall#Use Web installationurl --url #System bootloader configurationbootloader --location=mbr #bootloader --driveorder=partition#Clear the Master Boot Recordzerombr yes#Partition clearing information#clearpart --all --initlabel clearpart --drives=sda --allignoredisk --only-use=sda#Disk partitioning informationpart / --fstype ext4 --size=100000 --asprimarypart /boot/efi --fstype ext4 --size 1000 --asprimarypart biosboot --fstype=biosboot --size=1part swap --size=10000 --grow#System authorization infomationauth --useshadow --enablemd5 #Network informationnetwork --bootproto=dhcp --device=em1#Firewall configurationfirewall --disabled #Do not configure the X Window Systemskipx%postmkdir /root/shwget -P /root/sh -c -r -np -nd -R index.html chmod +x /root/sh/.shsh /root/sh/tftp.sh%end转载于:https://blog.51cto.com/yangzhiming/2047323