We have built a PXE server in front of the CentOS6.7 platform, and we are now using this server to continue installing the Ubuntu 14.04.4 Server System client.
See http://1130739.blog.51cto.com/1120739/1740925
Deployment method:
Options for adding Ubuntu systems in the PXE install menu file/var/lib/tftpboot/msgs/boot.msg
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7F/40/wKiom1cXbAXDUFwzAAAt4sdbrpo235.png "title=" Qq20160420194556.png "alt=" Wkiom1cxbaxdufwzaaat4sdbrpo235.png "/>
Add Ubuntu system boot kernel, load image, auto answer files in default file.
####### Install Ubuntu14.04.4 AMD64 #######
Label 5
Kernel kernel/linux.ubuntu14.04.4
Ipappend 2
Append vga=788 initrd=image/initrd.ubuntu14.04.4.gz ks=http://192.168.150.20/os/ubuntu-14.04.4/ks.cfg LIVE-INSTALLER/NET-IMAGE=HTTP://192.168.150.20/OS/UBUNTU-14.04.4/INSTALL/FILESYSTEM.SQUASHFS clock-setup/ntp= False Ip=dhcp Ksdevice=bootif
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7F/41/wKiom1cXd8XBoOk6AACCtKwtfLs001.png "title=" Qq20160420203600.png "alt=" Wkiom1cxd8xbook6aacctkwtfls001.png "/>
Here the Live-installer/net-image parameter is the specified live image, if not specified or specified incorrectly, the installation will be an orange screen error.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7F/3E/wKioL1cXeriRqWncAAA6Z4jr3VE679.png "title=" 36020160420204517446.png "alt=" Wkiol1cxerirqwncaaa6z4jr3ve679.png "/>
The Clock-setup/ntp=false parameter is specified during installation to disable the NTP service and time server synchronization time, it is recommended to synchronize time with the time server in%post after the system is installed. If you do not specify this parameter, the default installation process will automatically synchronize time with the Ubuntu official time server.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/41/wKiom1cXe3-y_ByTAAAqLSIF1UU596.png "title=" 36020160420205202083.png "alt=" Wkiom1cxe3-y_bytaaaqlsif1uu596.png "/>
Of course, you can also directly specify a faster time server Clock-setup/ntp=true clock-setup/ntp-server=0.ubuntu.pool.ntp.org
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7F/41/wKiom1cXfIGSPs8_AAAuBF0oHmU700.png "title=" Qq20160420205610.png "alt=" Wkiom1cxfigsps8_aaaubf0ohmu700.png "/>
For more parameters and how to use them, please see the Ubuntu 14.04 official installation documentation. Https://help.ubuntu.com/lts/installation-guide/amd64/install.en.pdf
Download Ubuntu-14.04.4-server-amd64.iso iso image from Ubuntu website to PXE server, link http://mirror.bjtu.edu.cn/ubuntu-releases/14.04.4/ Ubuntu-14.04.4-server-amd64.iso
Mount the image after the download is complete, copy all the files to the HTTP service root directory in the corresponding OS directory.
Mount-o Loop ubuntu-14.04.4-server-amd64.iso/media/
mkdir/var/www/html/os/ubuntu-14.04.4
Cp-r/media/*/var/www/html/os/ubuntu-14.04.4/
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/45/wKiom1bkBUHywbZcAAApCy8Isrg539.png "title=" Qq20160312200200.png "alt=" Wkiom1bkbuhywbzcaaapcy8isrg539.png "/>
Copy Network install boot kernel, image file to TFTP service root directory
cp/media/install/netboot/ubuntu-installer/amd64/linux/var/lib/tftpboot/kernel/linux.ubuntu14.04.4
Cp/media/install/netboot/ubuntu-installer/amd64/initrd.gz/var/lib/tftpboot/image/initrd.ubuntu14.04.4.gz
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7F/40/wKiom1cXcTqQjZEOAAAkden9Mns358.png "title=" Qq20160420200816.png "alt=" Wkiom1cxctqqjzeoaaakden9mns358.png "/>
No answer is generated for the kickstart file, either by using the System-config-kickstart configuration or by modifying it after downloading it from this chapter's attachments.
The use of the System-config-kickstart tool is similar to the Centos/rhel platform and needs to be used in a desktop environment. An already installed Ubuntu Server system if the desktop environment is not installed, use the official Apt-get source to Install the desktop environment and the System-config-kickstart software, use sudo when you need to type the current ordinary user password to raise power.
sudo apt-get update
sudo apt-get install ubuntu-desktop system-config-kickstart-y
Reboot, console (local) or Telnet to the desktop environment. Open terminal type command System-config-kickstart Enter the configuration interface, the basic configuration includes the default language, mouse, keyboard, time zone, add language support, whether to restart after installation options.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/4A/wKioL1blG4Hi2gmxAAGMobblLGo642.png "title=" 36020160313152914734.png "alt=" Wkiol1blg4hi2gmxaagmobbllgo642.png "/>
Installation source configuration, here according to the actual situation to specify the HTTP server address and Ubuntu system files Absolute network path.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7D/4A/wKioL1blG9vhD8dcAAC3xmgrFxo121.png "title=" 36020160313153227269.png "alt=" Wkiol1blg9vhd8dcaac3xmgrfxo121.png "/>
Boot loader option settings, whether to install the new boot loader and the installation location.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7D/4C/wKiom1blG62i-K9iAAD_Xv7W6w0063.png "title=" 36020160313153327872.png "alt=" Wkiom1blg62i-k9iaad_xv7w6w0063.png "/>
Partition information, according to the following configuration.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/4A/wKioL1blHGyygdftAAEawSqqhR8797.png "title=" 36020160313153405769.png "alt=" Wkiol1blhgyygdftaaeawsqqhr8797.png "/>
Click Add to add partition information, root partition file system type, capacity size, force primary partition, specify disk, and so on.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/4A/wKioL1blHJ7R4RZtAAD1aEEzgok162.png "title=" 36020160313153726992.png "alt=" Wkiol1blhj7r4rztaad1aeezgok162.png "/>
SAWP partition capacity size, the root partition and the swap partition must be specified.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/4C/wKiom1blHGOAi_OMAADigIbQiCY883.png "title=" 36020160313153639354.png "alt=" Wkiom1blhgoai_omaadigibqicy883.png "/>
The section overview information is as follows
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7D/4C/wKiom1blHJmRMYupAAAj-IhvBKQ068.png "title=" 36020160313153753309.png "alt=" Wkiom1blhjmrmyupaaaj-ihvbkq068.png "/>
The user configuration can specify whether the root user is enabled and the password is set. Ubuntu manual Installation By default does not enable the root user, creates a normal user to log in, so here the ordinary user must specify.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/4C/wKiom1blHL-ALFZgAAD7J9VABqQ941.png "title=" 36020160313153905824.png "alt=" Wkiom1blhl-alfzgaad7j9vabqq941.png "/>
Firewall configuration, test environment and development environment can disable the Firewall service to avoid the trouble of testing, the production environment and the Internet environment, it is strongly recommended to use a firewall to build the host's defense system.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7D/4C/wKiom1blHVrQZsEnAACqCTAICyg132.png "title=" 36020160313153935680.png "alt=" Wkiom1blhvrqzsenaacqctaicyg132.png "/>
The choice of package, the right all empty is not added, do not worry. After the generated ks.cfg file editing, manually add the packages that need to be installed.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7D/4A/wKioL1blHnDAZPCBAACohYaH3Nw299.png "title=" 36020160313154236325.png "alt=" Wkiol1blhndazpcbaacohyah3nw299.png "/>
The script configuration executed before and after installation is added according to the actual requirements.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/4A/wKioL1blHsWhTuYsAACU57ol8fk428.png "title=" 36020160313154107501.png "alt=" Wkiol1blhswhtuysaacu57ol8fk428.png "/>
After configuring all of the parameters, click on the File menu in the upper left corner to save the configuration file.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/4C/wKiom1blHp3zX0_7AABtVUI0l-M315.png "title=" 36020160313154323835.png "alt=" Wkiom1blhp3zx0_7aabtvui0l-m315.png "/>
Determine the save location, with the file name Ks.cfg.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7D/4C/wKiom1blHs3D1uejAACSRVcdRGU389.png "title=" 36020160313154506647.png "alt=" Wkiom1blhs3d1uejaacsrvcdrgu389.png "/>
Finally click on the File menu in the upper left to exit the configuration interface
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/4C/wKiom1blHvSjpeFbAABqv-8ONTs053.png "title=" 36020160313154533193.png "alt=" Wkiom1blhvsjpefbaabqv-8onts053.png "/>
Use VI to edit the generated ks.cfg file and manually add the packages that need to be installed after skipx.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7F/40/wKiom1cXcYiQTLiFAAAZyk_op5o579.png "title=" Qq20160420200935.png "alt=" Wkiom1cxcyiqtlifaaazyk_op5o579.png "/>
Add a script or command after%post to execute after installation
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/3E/wKioL1cXctiAhg_JAAAvOdTW1w4640.png "title=" Qq20160420201159.png "alt=" Wkiol1cxctiahg_jaaavodtw1w4640.png "/>
For more syntax information on kickstart see the Ubuntu14.04 official installation documentation, which is mentioned in the documentation for a detailed description of the Linux distribution Red Hat document kickstart syntax. Https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ch-kickstart2.html
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7F/3F/wKioL1cXgRrTKHXMAABv3CPL2k4155.png "title=" Qq20160420211247.png "alt=" Wkiol1cxgrrtkhxmaabv3cpl2k4155.png "/>
Finally, copy the produced ks.cfg file to the PXE server HTTP root directory/var/www/html/os/ubuntu-14.04.4/
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/4A/wKioL1blI2HRRfZpAAA2y17aOAQ865.png "title=" Qq20160313162022.png "alt=" Wkiol1bli2hrrfzpaaa2y17aoaq865.png "/>
The PXE server stops the firewall and SELinux services to ensure that DHCP, TFTP, and HTTP services are functioning properly.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/4C/wKiom1blI1yhVfCUAAA5Gm3VCg0761.png "title=" Qq20160313162249.png "alt=" Wkiom1bli1yhvfcuaaa5gm3vcg0761.png "/>
The client to be installed boot from the network card, get to the boot menu and press the number 5 to start the Ubuntu system automatic installation.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/3E/wKioL1cXdDvg_wXwAAAouwEQF0k483.png "title=" 36020160420201626277.png "alt=" Wkiol1cxddvg_wxwaaaouweqf0k483.png "/>
Wait a while for the system to complete the installation automatically.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/3F/wKioL1cXg--xTwKnAAAhocxUtec948.png "title=" 36020160420212442004.png "alt=" Wkiol1cxg--xtwknaaahocxutec948.png "/>
I found during the test: if the DHCP assigned to the client's IP can access to the official Ubuntu server, then during the installation process will automatically connect to the server to download some updated packages or files, etc., this is not a good network quality of the environment seriously affected the overall installation progress. Then, I recommend before installing Ubuntu, to give DHCP assigned to the IP network segment can not access the Internet, the system installation is completed before the system update operation .
This article from "Server System Communication" blog, declined reprint!
Building a PXE server unattended answer fully automatic installation Ubuntu 14.04.4 Server System