編輯:關於android開發
2.
- yum install cobbler httpd rsync tftp-server xinetd dhcp python-ctypes -y
[root@bogon yum.repos.d]# cobbler check
- cobbler check 檢驗cobbler,根據提示一步步解決問題
除了第9.10.12這三個不用特別關注外,其他都需要修改,根據提示很簡單。
- [root@bogon yum.repos.d]# cobbler check
- The following are potential configuration items that you may want to fix:
- 1 : The 'server' field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work. This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
- 2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
- 3 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
- https://github.com/cobbler/cobbler/wiki/Selinux
- 4 : change 'disable' to 'no' in /etc/xinetd.d/tftp
- 5 : some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.
- 6 : change 'disable' to 'no' in /etc/xinetd.d/rsync
- 7 : file /etc/xinetd.d/rsync does not exist
- 8 : since iptables may be running, ensure 69, 80/443, and 25151 are unblocked
- 9 : debmirror package is not installed, it will be required to manage debian deployments and repositories
- 10 : ksvalidator was not found, install pykickstart
- 11 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one
- 12 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
- Restart cobblerd and then run 'cobbler sync' to apply changes.
- [root@bogon ~]# cobbler report
- distros:
- ==========
- Name : CentOS5.8-xen-x86_64
- Architecture : x86_64
- TFTP Boot Files : {}
- Breed : redhat
- Comment :
- Fetchable Files : {}
- Initrd : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/xen/initrd.img
- Kernel : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/xen/vmlinuz
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/CentOS5.8-xen-x86_64'}
- Management Classes : []
- OS Version : rhel5
- Owners : ['admin']
- Red Hat Management Key : <<inherit>>
- Red Hat Management Server : <<inherit>>
- Template Files : {}
- Name : CentOS5.8-x86_64
- Architecture : x86_64
- TFTP Boot Files : {}
- Breed : redhat
- Comment :
- Fetchable Files : {}
- Initrd : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/pxeboot/initrd.img
- Kernel : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/pxeboot/vmlinuz
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/CentOS5.8-x86_64'}
- Management Classes : []
- OS Version : rhel5
- Owners : ['admin']
- Red Hat Management Key : <<inherit>>
- Red Hat Management Server : <<inherit>>
- Template Files : {}
- profiles:
- ==========
- Name : CentOS5.8-xen-x86_64
- TFTP Boot Files : {}
- Comment :
- DHCP Tag : default
- Distribution : CentOS5.8-xen-x86_64
- Enable gPXE? : 0
- Enable PXE Menu? : 1
- Fetchable Files : {}
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart : /var/lib/cobbler/kickstarts/sample.ks kickstart路徑
- Kickstart Metadata : {}
- Management Classes : []
- Management Parameters : <<inherit>>
- Name Servers : []
- Name Servers Search Path : []
- Owners : ['admin']
- Parent Profile :
- Internal proxy :
- Red Hat Management Key : <<inherit>>
- Red Hat Management Server : <<inherit>>
- Repos : []
- Server Override : <<inherit>>
- Template Files : {}
- Virt Auto Boot : 1
- Virt Bridge : xenbr0
- Virt CPUs : 1
- Virt Disk Driver Type : raw
- Virt File Size(GB) : 5
- Virt Path :
- Virt RAM (MB) : 512
- Virt Type : xenpv
- Name : CentOS5.8-x86_64
- TFTP Boot Files : {}
- Comment :
- DHCP Tag : default
- Distribution : CentOS5.8-x86_64
- Enable gPXE? : 0
- Enable PXE Menu? : 1
- Fetchable Files : {}
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart : /var/lib/cobbler/kickstarts/sample.ks
- Kickstart Metadata : {}
- Management Classes : []
- Management Parameters : <<inherit>>
- Name Servers : []
- Name Servers Search Path : []
- Owners : ['admin']
- Parent Profile :
- Internal proxy :
- Red Hat Management Key : <<inherit>>
- Red Hat Management Server : <<inherit>>
- Repos : []
- Server Override : <<inherit>>
- Template Files : {}
- Virt Auto Boot : 1
- Virt Bridge : xenbr0
- Virt CPUs : 1
- Virt Disk Driver Type : raw
- Virt File Size(GB) : 5
- Virt Path :
- Virt RAM (MB) : 512
- Virt Type : kvm
- systems:
- ==========
- repos:
- ==========
- images:
- ==========
- mgmtclasses:
- ==========
- packages:
- ==========
- files:
- ==========
5.客戶端使用pxe網絡啟動即自動進行安裝了。
- [root@bogon ~]# cobbler distro list
- CentOS5.8-x86_64
- CentOS5.8-xen-x86_64
Android自定義控件:進度條的四種實現方式 最近一直在學習自定義控件,搜了許多大牛們Blog裡分享的小教程,也上GitHub找了一些類似的控件進行學習。發現讀起來
Android5.x Notification應用解析 Notification可以讓我們在獲得消息的時候,在狀態欄,鎖屏界面來顯示相應的信息,很難想象如果沒有Not
Activity詳解三 啟動activity並返回結果,activity詳解首先看演示: 1 簡介 、如果想在Activity中得到新打開Activity 關閉後返回的
Android安全之旅系列博客導讀 總結下近一年的學習經歷,以中國的新年為節點。時間從2015年年後到今天,2015年年末。 首先我必須要感謝前輩的書籍和高質量的博客。