Unable to return to the day PXE

Source: Internet
Author: User
Step 1 mount the disc and create mkdir-P/var/FTP/centos6 to go to CD/var/FTP/centos6 and copy the disc source to the current directory: CP-RP/Media/CDROM /*. yum-y install TFTP-server install TFTP-servervim/etc/xinetd. d/TFTP open the configuration file and make some modifications:
-------------------------------
Wait = No no wait, multiple customers can be connected at the same time
Disable = No enable the TFTP service
-------------------------------
/Etc/init. d/xinetd start restart the service chkconfig TFTP on to start CD/var/FTP/centos6/isolinux/to enter the kernel boot file CP vmlinuz initrd. IMG/var/lib/tftpboot: copy these two items to the following path: Yum-y install syslinux install CP/usr/share/syslinux/pxelinux.0/var/lib/tftpboot /continue copying CP/var/FTP/centos6/isolinux. CFG/var/lib/tftpboot .. Copy the above four files
------------------- Chmod 644/var/lib/tftpboot/isolinux. Unzip Vim
The first line is the name.
The second row does not interact with prompt 0.
The label text can be commented out in the next two lines.
Append text...
Append rescue...
-------------
Create a sub-directory in the current directory: pxelinux. cfgmv isolinux. cfg. /pxelinux. CFG/Default: place the previous one under the new directory and change it to the last name -------------------------------------------------- and then install Yum-y install DHCP
Modify the DHCP file Vim/etc/DHCP/DHCPD. conf
CP/copy the file to the current directory/etc/DHCP/
Cat DHCPD. conf. Sample>/etc/DHCP/DHCPD. conf input to DHCPD. conf and then Vim DHCPD. conf
----------------------
Name can be changed at will;
The following IP address 192.168.23.2;
Time 21600
43200
Subnet (declaring a network segment) 192.168.23.0 netmask 255.255.255.0 {
The scope of the distribution IP address;
Gateway address 192.168.23.2;
Next-server 192.168.23.37; (local IP address)
Filename "pxelinux.0 ";
}
----------------------
Then you can start the DHCP service/etc/init. d/DHCPD start
Netstat-antup | grep DHCPD after filtering out the port ---------------------------------------- ------------ then install FTP and modify anonymous FTP
Yum-y install vsftpd FTP software
Change the owner chown FTP pub/FTP sub-directory pub under/var/FTP by default.
For security, back up: CP/etc/vsftpd. conf {,. Bak} Vim to vsftpd. conf.
The first anonymous_enable = Yes enables Anonymous Users
The second local_enable = Yes enables the local user
Third weitr write permission
All of the above are the global configuration of anon_upload_enable = yes to enable the upload permission of anonymous users.
Anon_umask = 022 manually add the permission mask of Anonymous Users
Anon_mkdir_write_enable = Yes enable the permission for creating directories for anonymous users
Anon_other_write_enable = Yes manually add other write permissions for anonymous users (delete, rename)

/Etc/init. d/vsftpd
Start
Netstat-antup | grep vsftpd filter vsftpd port opened

--------------------------

------ The above are the contents of the server, and then the client uses Yum-y install FTP and implements the FTP link: After FTP 192.168.23.37 is successful, a new desktop virtual machine can be created ----------------------------------

Then, when the power is turned on, input the firmware, network... to the top,

 

Then exit and save.

 

Then, my computer's virtual machine will see this JB thing!

I'm going to have lunch! Goodbye !!!

 

--- Restore content end ---

Unable to return to the day PXE

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.