Install Ubuntu10.04 on PXE + KickStart

Source: Internet
Author: User
Tags file transfer protocol
PXEPXE (prebootexecuteenvironment) is the latest technology developed by Intel. It works in the Network Mode of Client/Server and allows workstation to download images from remote servers over the network, in addition, it supports the Startup Process of the operating system from the network. During the startup process, the terminal requires the server to assign an IP address, and then use TFTP (trivialfiletransferprotocol) or MTFTP (multicasttrivi

Glossary
PXE
PXE (preboot execute environment) is the latest technology developed by Intel. It works in the Client/Server network mode and supports workstation to download images from remote servers over the network, this also supports the Startup Process of the operating system from the network. During the startup process, the terminal requires the server to assign an IP address, and then use TFTP (trivial file transfer protocol) or MTFTP (multicast trivial file transfer protocol) download a startup software package to the local memory and execute it. the startup Software Package completes the basic software settings of the terminal to guide the terminal operating system that is pre-installed on the server. PXE can boot a variety of operating systems, such as Windows 95/98/2000/xp/2003/vista/2008, and linux.
KickStart
KickStart is an unattended installation method. The working principle of KickStart is to record various parameters required for manual intervention during a typical installation process and generate a file named ks. cfg file. In the subsequent installation process (not limited to the machine that generates the KickStart Installation File), when parameters are required, the installer first looks for the file generated by KickStart. When a proper parameter is found, the parameter is used. If no proper parameter is found, manual intervention is required by the installer.
 
Preparations
1. Install KICKSTART
Star @ Ubuntu :~ $ Sudo apt-get install system-config-kickstart
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
Hwdata isoquery libxml ++ 2.6-2 localechooser-data
The following NEW packages will be installed:
Hwdata isoquery libxml ++ 2.6-2 localechooser-data system-config-kickstart
0 upgraded, 5 newly installed, 0 to remove and 277 not upgraded.
Need to get 1, 139kB of archives.
After this operation, 5, 063kB of additional disk space will be used.
Do you want to continue [Y/n]?
 
 
1.1 open kickstart in "Application \ System Tools"
 


After setting, save the configuration file as ks. cfg.
 
Note: The package selection option cannot be selected. The specific cause is unknown (some people say it is a BUG in online queries). In this case, you can directly modify ks. add the package to be installed in the cfg file, and add % packages to the last line.
For example, the author's configuration file is as follows:
 
Generated by Kickstart aggregator
# Platform = x86
 
# System language
Lang en_US
# Language modules to install
Langsupport en_US
# System keyboard
Keyboard us
# System mouse
Mouse
# System timezone
Timezone Asia/Chongqing
# Root password
Rootpw -- disabled
# Initial user
User star -- fullname "star" -- iscrypted -- password $1 $ TELmpWrC $ ypelivw5xnkjarqxbi50t/
# Reboot after installation
Reboot
# Use text mode install
Text
# Install OS instead of upgrade
Install
# Use Web installation
Url -- url http: // 192.168.10.21/ubuntu
# 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 ext4 -- size 256
Part swap -- size 1024
Part/-- fstype ext4 -- size 1 -- grow
# System authorization infomation
Auth -- useshadow -- enablemd5
# Network information
Network -- bootproto = dhcp -- device = eth0
# Firewall configuration
Firewall -- disabled -- ssh
# X Window System configuration information
Xconfig -- depth = 24 -- resolution = 1024x768 -- defadesktop desktop = GNOME
% Packages
@ Ubuntu-desktop
 
The troops in red are manually added

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.