1、查看cobbler的版本
为海珠等地区用户提供了全套网页设计制作服务,及海珠网站建设行业解决方案。主营业务为网站设计、成都网站设计、海珠网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!
[root@cobbler ~]# cobbler --version
Cobbler 2.8.0
source: ?, ?
build time: Tue Jan 31 23:25:14 2017
[root@cobbler ~]# cat /etc/RedHat-release
centos Linux release 7.3.1611 (Core)
2、挂载并导入ESXI5.5的数据
[root@cobbler ~]# mount /dev/cdrom /mnt/
mount: /dev/sr0 is write-protected, mounting read-only
[root@cobbler ~]# cobbler import --path=/mnt --name=EXSI5.5 --arch=x86_64
task started: 2017-03-21_143016_import
task started (id=Media import, time=Tue Mar 21 14:30:16 2017)
# 以下为提示信息,最开始看到的时候吓我一跳
Found a candidate signature: breed=vmware, version=esxi51
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00
received on stdout: /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00: gzip compressed data, was "vmvisor-sys.tar.vtar", from Unix, last modified: Thu Sep 19 14:39:27 2013
received on stderr:
Found a candidate signature: breed=vmware, version=esxi60
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00
received on stdout: /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00: gzip compressed data, was "vmvisor-sys.tar.vtar", from Unix, last modified: Thu Sep 19 14:39:27 2013
received on stderr:
Found a candidate signature: breed=vmware, version=esxi5
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00
received on stdout: /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00: gzip compressed data, was "vmvisor-sys.tar.vtar", from Unix, last modified: Thu Sep 19 14:39:27 2013
received on stderr:
Found a candidate signature: breed=vmware, version=esxi55
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00
received on stdout: /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/s.v00: gzip compressed data, was "vmvisor-sys.tar.vtar", from Unix, last modified: Thu Sep 19 14:39:27 2013
received on stderr:
Found a matching signature: breed=vmware, version=esxi55
Adding distros from path /var/www/cobbler/ks_mirror/EXSI5.5-x86_64:
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/tools.t00
received on stdout: /var/www/cobbler/ks_mirror/EXSI5.5-x86_64/tools.t00: gzip compressed data, from Unix, last modified: Thu Sep 19 14:38:11 2013
received on stderr:
creating new distro: EXSI5.5-x86_64
trying symlink: /var/www/cobbler/ks_mirror/EXSI5.5-x86_64 -> /var/www/cobbler/links/EXSI5.5-x86_64
creating new profile: EXSI5.5-x86_64
associating repos
*** TASK COMPLETE ***
[root@cobbler ~]# echo $?
0
说明:以上的输出结果可知,导入没有问题
3、编辑kickstart文件
4、查看cobbler profile
[root@cobbler kickstarts]# cobbler profile report
Name : CentOS-7.3-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : CentOS-7.3-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {'biosdevname': '0', 'net.ifnames': '0'}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/CentOS-7.3-x86_64.cfg
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <
Red Hat Management Server : <
Repos : []
Server Override : <
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
Name : CentOS-6.7-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : CentOS-6.7-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/sample_end.ks
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <
Red Hat Management Server : <
Repos : []
Server Override : <
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
Name : EXSI5.5-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : EXSI5.5-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/sample_esxi5.ks
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <
Red Hat Management Server : <
Repos : []
Server Override : <
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
说明:由上的输出结果,我们可以发现, EXSI5.5-x86_64默认的kickstart文件是/var/lib/cobbler/kickstarts/sample_esxi5.ks,显然这不是我们想要的
[root@cobbler kickstarts]# cobbler profile edit --name=EXSI5.5-x86_64 --kickstart=/var/lib/cobbler/kickstarts/ESXI55.cfg
# 修改EXSI5.5-x86_64默认的kickstart文件为/var/lib/cobbler/kickstarts/ESXI55.cfg,并再次查看
[root@cobbler kickstarts]# cobbler profile report
Name : CentOS-7.3-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : CentOS-7.3-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {'biosdevname': '0', 'net.ifnames': '0'}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/CentOS-7.3-x86_64.cfg
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <
Red Hat Management Server : <
Repos : []
Server Override : <
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
Name : CentOS-6.7-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : CentOS-6.7-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/sample_end.ks
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <
Red Hat Management Server : <
Repos : []
Server Override : <
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
Name : EXSI5.5-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : EXSI5.5-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/ESXI55.cfg
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Internal proxy :
Red Hat Management Key : <
Red Hat Management Server : <
Repos : []
Server Override : <
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
# 进行cobbler数据同步
[root@cobbler ~]# cobbler sync
# 根据mac地址,分配一个固定IP
[root@cobbler ~]# cobbler system add --name=esxi55-01 --mac=00:0C:29:4A:9F:44 --profile=EXSI5.5-x86_64 --ip-address=10.10.10.168 --subnet=255.255.255.0 --gateway=10.10.10.2 --interface=vmnic0 --static=1 --hostname=esxi55-01.saltstack.com --name-servers="10.10.10.2"
说明:以上的网卡是esxi55客户机的真实网卡,为它安装的时候指定一个固定的ip、子网掩码、网关、主机名、DNS等
[root@cobbler ~]# cobbler system list
esxi55-01
然后开启服务器,坐等ESXI5.5安装完毕
在esxi5.5上配置好ssh后,命令行模式下测试下网络情况
文章名称:CentOS7.3下利用Cobbler2.8.0安装部署ESXi5.5
网页链接:http://www.mswzjz.cn/qtweb/news32/137682.html
攀枝花网站建设、攀枝花网站运维推广公司-贝锐智能,是专注品牌与效果的网络营销公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 贝锐智能