cobbler 遠程安裝帶圖像化的centos服務器 kickstart文件

親測沒問題如下是文件內容:java

# System bootloader configurationapp

bootloader --location=mbride

# Partition clearing informationpost

clearpart --all --initlabelui

# Run the Setup Agent on first booturl

firstboot --disabledebug

# Activate Xorm

xconfig --startxonbootserver

# Use network installationrem

url --url=$tree

# additional repostories get added here

$yum_repo_stanza

# Reboot after installation

reboot

# System keyboard

keyboard us

# System language

lang en_US

# System timezone

timezone  America/New_York

# Root password

rootpw --iscrypted $default_password_crypted

# Install OS instead of upgrade

install

# Clear the Master Boot Record

zerombr

# Allow anaconda to partition the system as needed

autopart


%packages

@base

@chinese-support

@core

@debugging

@basic-desktop

@desktop-debugging

@desktop-platform

@directory-client

@fonts

@general-desktop

@graphical-admin-tools

@input-methods

@internet-applications

@internet-browser

@java-platform

@legacy-x

@network-file-system-client

@office-suite

@print-client

@remote-desktop-clients

@server-platform

@server-policy

@x11

mtools

pax

oddjob

wodim

sgpio

genisop_w_picpath

device-mapper-persistent-data

abrt-gui

samba-winbind

certmonger

pam_krb5

krb5-workstation

gnome-pilot

libXmu

%end


%post

# create a default user to log in X

useradd desktop-user

passwd -d desktop-user


# adds the yum repositories to the installed system

$yum_config_stanza

# cobbler final steps

$SNIPPET('kickstart_done')

%end

相關文章
相關標籤/搜索