se服务器系统,使用CloneZilla服务器版克隆Linux系统(CloneZilla SE)
使用CloneZilla Server Edition克隆Linux系統(CloneZilla SE)
版本1.0
作者:Falko Timme
本教程將展示如何使用CloneZilla SE克隆Linux系統。 這對于將一個Linux安裝復制到多臺計算機而言不用多少時間,例如在教室中,也可用于創建基于映像的系統備份。 在本教程中,我將在Debian Etch服務器上安裝CloneZilla SE。 您要克隆的系統可以使用您喜歡的任何Linux發行版。
我不會保證這將為您工作!
1初步說明
我要安裝CloneZilla SE的Debian服務器位于本地網絡192.168.0.0 (網絡掩碼255.255.255.0 )中,IP地址為192.168.0.100 。
要克隆系統,目標系統應該使用相同或至少類似的硬件,否則克隆可能無效!
2安裝CloneZilla SE
首先,我們導入DRBL的GPG密鑰(Linux中的無盤遠程引導,需要從網絡啟動客戶端系統(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
之后。
現在我們可以像這樣安裝DRBL和CloneZilla:
apt-get install drbl
然后我們跑
/opt/drbl/sbin/drbl4imp
以默認值配置DRBL和CloneZilla(應在大多數環境中工作):
************************************** ***。 這個腳本對于那些不耐煩的人來說,它會將DRBL服務器設置為可能不適合您的環境的默認值。 你不耐煩嗎 [Y / n] < - ENTER
************************************** ***。 好的,懶惰是一種美德! 讓我們設置DRBL服務器的默認值! 按“Enter”繼續... < - 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創建Linux系統的映像
要創建一個映像,我們首先在Debian系統上啟動CloneZilla,并告訴它存儲一個映像(服務器將等到客戶端連接以存儲映像),然后我們啟動我們要創建的客戶端系統圖像從網絡 - 它應該引導到連接到服務器并創建圖像的CloneZilla Linux系統。
跑
/opt/drbl/sbin/dcs
在Debian服務器上,然后選擇全部選擇所有客戶端 :
下一步選擇clonezilla-start Start_clonezilla_mode :
選擇保存磁盤將客戶端磁盤保存為圖像 :
選擇Later_in_client客戶端中稍后的輸入圖像和設備名稱 (稍后將在客戶端上提示輸入圖像名稱,而不必立即提供圖像名稱):
在接下來的兩個屏幕上,您可以簡單地按ENTER鍵選擇默認值:
總結
以上是生活随笔為你收集整理的se服务器系统,使用CloneZilla服务器版克隆Linux系统(CloneZilla SE)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 理解状态模式笔记
- 下一篇: linux live下载地址,Clone