The company installed Windows 7, Windows 7, and Ubuntu systems frequently, and often used desktops or laptops of the same type. Therefore, clonezilla is built using centos, and the system is automatically installed in batches through PXE, which is simple, convenient, and fast. It takes less than 10 minutes for a Windows 7 system to be installed.
Today, we have an experiment with virtual machines in our company. Let's share it with you by the way:
1. Set TFTP
# Rpm-Qa TFTP
# Yum install TFTP-Server
# Vim/etc/xinetd. d/TFTP
Change disable settings to no
#/Etc/init. d/xinetd start
# Chkconfig xinetd on
2. Install syslinux
# Yum install syslinux
After the installation is complete, some boot files will be generated in/usr/share/syslinux /.
# Cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/
# Mkdir/var/lib/tftpboot/pxelinux. cfg
# Touch/var/lib/tftpboot/pxelinux. cfg/Default
Default haha
Prompt 0
Timeout 30
Menu title PXE menu
Label haha
Menu label clonezilla install
Kernel vmlinuz
Append initrd = initrd. IMG fetch = TFTP: // 10.100.2.102/filesystem. squashfs boot = live config noswap nolocales EDD = on nomodeset ocs_live_run = "OCs-live-General" placement = "" keyboard-layouts = "" ocs_live_batch = "no" locales = "VGA = 788 nosplash noprompt # Here the format can refer to clonezilla official website (http://clonezilla.org/livepxe.php)
3. Set clonezilla.
# Mkdir/mnt/isoimage
# Mount-o loop clonezilla-live-20140331-saucy-amd64.iso/mnt/isoimage/
# Cp/mnt/isoimage/live/initrd. img/var/lib/tftpboot/
# Cp/mnt/isoimage/live/vmlinuz/var/lib/tftpboot/
# Cp/mnt/isoimage/live/filesystem. squashfs/var/lib/tftpboot/
4. Set DHCP
# Yum install DHCP
# Vim/etc/DHCP/DHCPD. conf
Subnet 10.100.2.0 netmask 255.255.255.0 {
Option routers 10.100.2.1;
Option subnet-mask limit 255.0;
Option domain-name-servers 192.168.1.1;
Option time-offset-18000;
Range 10.100.2.120 10.100.2.130;
Next-server 10.100.2.102;
Filename "pxelinux.0 ";
}
#/Etc/init. d/DHCPD start
# Chkconfig DHCPD on
# Setenforce 0
#/Etc/init. d/iptables stop
5. Client settings
You need to re-install the system or back up the system computer to plug in the network cable, boot from the network card to start. If you want to back up the configured win7 System for later use on other computers of the same type, do not forget to clear the system SSID when uploading images to the clonezilla server.
To clear the SSID:
Go to c: \ windows \ system32 \ sysprep
Run sysprep and select shutdown for the shutdown options Option.
After the SSID is cleared and shut down, connect to the network cable and start the network adapter. Upload the backed up system image.
The steps for uploading and restoring images are not described here. You can try them yourself ~
If you have any questions, please advise O (?_ =) O ~
Netease blog address: http://liubin0505star.blog.163.com/blog/#m=0
This article from the "Frozen flow year LB" blog, please be sure to keep this source http://liubin0505star.blog.51cto.com/5550456/1554797
In centos, clonezilla automatically backs up and restores the system over the network.