cobbler 遠程安裝帶映像化的centos伺服器 kickstart檔案

來源:互聯網
上載者:User

標籤:additional   clearing   network   伺服器   

親測沒問題以下是檔案內容:

# System bootloader configuration

bootloader --location=mbr

# Partition clearing information

clearpart --all --initlabel

# Run the Setup Agent on first boot

firstboot --disable

# Activate X

xconfig --startxonboot

# Use network installation

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

genisoimage

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


cobbler 遠程安裝帶映像化的centos伺服器 kickstart檔案

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.