压在透明的玻璃上c-国产精品国产一级A片精品免费-国产精品视频网-成人黄网站18秘 免费看|www.tcsft.com

ubuntu 下cobbler 安裝調試與系統自動化部署

  本文是在ubuntu 12.0.4.2的基礎上,使用cobbler服務,自動化部署ubuntu服務器,希望對大家有幫助

  安裝相關軟件

  sudo apt-get install -y ubuntu-orchestra-server cobbler-web mc htop nload debmirror

  sudo apt-get install -y cobbler-web

  安裝過程中,建議不下載iso,然后讓cobbler管理dns和dhcp,還是相對比較方便的

  給登錄cobbler-web的用戶修改密碼

  htdigest /etc/cobbler/users.digest “Cobbler” cobbler

  導入系統

  方法一:

  從網上導入12.0.4的最小安裝包(64位),32位直接改成precise-i386就行

  cobbler-ubuntu-import precise-x86_64

  cobbler check

  root@cobbler:~# cobbler check

  The following are potential configuration items that you may want to fix:

  1 : One or more repos need to be processed by cobbler reposync for the first time before kickstarting against them: ubuntu-mini-x86_64-security, ubuntu-server-x86_64, ubuntu-mini-x86_64, ubuntu-server-x86_64-security

  Restart cobblerd and then run ‘cobbler sync’ to apply changes.

  cobbler reposync執行一次之后就沒有這個提示了

  其實不用管它,如果我們有個穩定的源,這個錯誤可以忽略不計

  方法二:

  iso鏡像導入

  mount -t auto -o loop ubuntu-12.04.2-server-amd64.iso /mnt

  cobbler import –name=ubuntu-server-12.0.4 –path=/mnt –breed=ubuntu

  修改profile文件

  cobbler profile edit –name=ubuntu-server-x86_64 –kopts=”auto=true netcfg/choose_interface=auto” –kickstart=/var/lib/cobbler/kickstarts/ubuntu.preseed

  如果你想用iso的內容做為本地安裝源,你還可以用apache做鏡像源

  apt-get install apache2

  ln -sv /var/www/cobbler/ks_mirror/ubuntu-server/ /var/www/ubuntu/

  cobbler sync

  記住,每次更改完配置文件,都要運行上面的命令,否則不會生效

 

上一篇:安卓防火墻 PS DroidWall

下一篇:centos linux 因別名問題引起的麻煩及解決技巧