se服务器系统,使用CloneZilla服务器版克隆Linux系统(CloneZilla SE)
使用CloneZilla Server Edition克隆Linux系統(tǒng)(CloneZilla SE)
版本1.0
作者:Falko Timme
本教程將展示如何使用CloneZilla SE克隆Linux系統(tǒng)。 這對于將一個(gè)Linux安裝復(fù)制到多臺計(jì)算機(jī)而言不用多少時(shí)間,例如在教室中,也可用于創(chuàng)建基于映像的系統(tǒng)備份。 在本教程中,我將在Debian Etch服務(wù)器上安裝CloneZilla SE。 您要克隆的系統(tǒng)可以使用您喜歡的任何Linux發(fā)行版。
我不會保證這將為您工作!
1初步說明
我要安裝CloneZilla SE的Debian服務(wù)器位于本地網(wǎng)絡(luò)192.168.0.0 (網(wǎng)絡(luò)掩碼255.255.255.0 )中,IP地址為192.168.0.100 。
要克隆系統(tǒng),目標(biāo)系統(tǒng)應(yīng)該使用相同或至少類似的硬件,否則克隆可能無效!
2安裝CloneZilla SE
首先,我們導(dǎo)入DRBL的GPG密鑰(Linux中的無盤遠(yuǎn)程引導(dǎo),需要從網(wǎng)絡(luò)啟動(dòng)客戶端系統(tǒng)(PXE))和CloneZilla存儲庫:
wget -q http://drbl.sourceforge.net/GPG-KEY-DRBL -O- | apt-key add -
然后我們打開/etc/apt/sources.list ...
vi /etc/apt/sources.list
...并將DRBL / CloneZilla Debian存儲庫添加到它:[...]
deb http://drbl.sourceforge.net/drbl-core drbl stable
[...]
跑
apt-get update
之后。
現(xiàn)在我們可以像這樣安裝DRBL和CloneZilla:
apt-get install drbl
然后我們跑
/opt/drbl/sbin/drbl4imp
以默認(rèn)值配置DRBL和CloneZilla(應(yīng)在大多數(shù)環(huán)境中工作):
************************************** ***。 這個(gè)腳本對于那些不耐煩的人來說,它會將DRBL服務(wù)器設(shè)置為可能不適合您的環(huán)境的默認(rèn)值。 你不耐煩嗎 [Y / n] < - ENTER
************************************** ***。 好的,懶惰是一種美德! 讓我們設(shè)置DRBL服務(wù)器的默認(rèn)值! 按“Enter”繼續(xù)... < - ENTER
[...]
Starting the NAT services for DRBL clients... done!
ip_forward is already on.
The GDM or KDM config file is NOT found! Skip setting the DM! Maybe you will not be able to make this DRBL server as thin client server!
Clean all the previous saved config file if they exist...done!
Turn on the boot prompt for PXE client...done!
Turn off the thin client option in PXE boot menu...done!
Modifying /tftpboot/nbi_img/pxelinux.cfg/default to let DRBL client use graphical PXE boot menu... done!
Full DRBL mode. Remove clientdir opt for label drbl in pxelinux config...
Setting drbl_mode="full_drbl_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
Full clonezilla mode. Remove clientdir opt for label clonezilla in pxelinux config...
Setting clonezilla_mode="full_clonezilla_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
You have to use "/opt/drbl/sbin/dcs" -> clonezilla-start to start clonezilla serivce, so that there will be a clonezilla menu when client boots
*****************************************************.
Adding normal users to group "audio cdrom plugdev floppy video"........ done!
*****************************************************.
Updating the YP/NIS for group...
Note! If you add new or remove accounts in the DRBL server in the future, remember to run the following command again, so that some group (EX:plugdev) will be updated:
tune-debian-dev-group-perm -g "audio cdrom plugdev floppy video" -e
*****************************************************.
Enjoy DRBL!!!
http://drbl.nchc.org.tw; http://drbl.name
NCHC Free Software Labs, Taiwan. http://free.nchc.org.tw
*****************************************************.
If you like, you can reboot the DRBL server now to make sure everything is ready...(This is not necessary, just an option.).
*****************************************************.
DRBL server is ready! Now set the client machines to boot from PXE or Etherboot (refer to http://drbl.sourceforge.net for more details).
NOTE! If Etherboot is used in client machine, version 5.4.0 or newer is required!
PS. The config file is saved as /etc/drbl/drblpush.conf. Therefore if you want to run drblpush with the same config again, you may run it as: /opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf
server1:~#
這就是安裝。
3創(chuàng)建Linux系統(tǒng)的映像
要?jiǎng)?chuàng)建一個(gè)映像,我們首先在Debian系統(tǒng)上啟動(dòng)CloneZilla,并告訴它存儲一個(gè)映像(服務(wù)器將等到客戶端連接以存儲映像),然后我們啟動(dòng)我們要?jiǎng)?chuàng)建的客戶端系統(tǒng)圖像從網(wǎng)絡(luò) - 它應(yīng)該引導(dǎo)到連接到服務(wù)器并創(chuàng)建圖像的CloneZilla Linux系統(tǒng)。
跑
/opt/drbl/sbin/dcs
在Debian服務(wù)器上,然后選擇全部選擇所有客戶端 :
下一步選擇clonezilla-start Start_clonezilla_mode :
選擇保存磁盤將客戶端磁盤保存為圖像 :
選擇Later_in_client客戶端中稍后的輸入圖像和設(shè)備名稱 (稍后將在客戶端上提示輸入圖像名稱,而不必立即提供圖像名稱):
在接下來的兩個(gè)屏幕上,您可以簡單地按ENTER鍵選擇默認(rèn)值:
總結(jié)
以上是生活随笔為你收集整理的se服务器系统,使用CloneZilla服务器版克隆Linux系统(CloneZilla SE)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 理解状态模式笔记
- 下一篇: android手机的智能备忘录,智能备忘