1、挂载并导入数据
[root@cobbler ~]# mount /dev/cdrom /mnt/
mount: /dev/sr0 is write-protected, mounting read-only
[root@cobbler ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cl-root 50G 19G 32G 37% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 144K 1.9G 1% /dev/shm
tmpfs 1.9G 9.0M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/cl-home 46G 36M 46G 1% /home
/dev/sda1 1014M 175M 840M 18% /boot
tmpfs 378M 16K 378M 1% /run/user/0
/dev/sr0 349M 349M 0 100% /mnt
[root@cobbler ~]# cobbler import --path=/mnt --name=EXSI6.0 --arch=x86_64
task started: 2017-03-21_163111_import
task started (id=Media import, time=Tue Mar 21 16:31:11 2017)
Found a candidate signature: breed=vmware, version=esxi51
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00
received on stdout: /var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00: gzip compressed data, was "vmvisor-sys.tar.vtar", from Unix, last modified: Fri Feb 6 11:13:30 2015
received on stderr:
Found a candidate signature: breed=vmware, version=esxi60
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00
received on stdout: /var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00: gzip compressed data, was "vmvisor-sys.tar.vtar", from Unix, last modified: Fri Feb 6 11:13:30 2015
received on stderr:
Found a matching signature: breed=vmware, version=esxi60
Adding distros from path /var/www/cobbler/ks_mirror/EXSI6.0-x86_64:
running: /usr/bin/file /var/www/cobbler/ks_mirror/EXSI6.0-x86_64/tools.t00
received on stdout: /var/www/cobbler/ks_mirror/EXSI6.0-x86_64/tools.t00: gzip compressed data, from Unix, last modified: Fri Feb 6 11:12:00 2015
received on stderr:
creating new distro: EXSI6.0-x86_64
trying symlink: /var/www/cobbler/ks_mirror/EXSI6.0-x86_64 -> /var/www/cobbler/links/EXSI6.0-x86_64
creating new profile: EXSI6.0-x86_64
associating repos
*** TASK COMPLETE ***
[root@cobbler ~]# echo $?
0
2、查看cobbler清单
[root@cobbler kickstarts]# cobbler list
distros:
centos-6.7-x86_64
CentOS-7.3-x86_64
EXSI5.5-x86_64
EXSI6.0-x86_64
profiles:
CentOS-6.7-x86_64
CentOS-7.3-x86_64
EXSI5.5-x86_64
EXSI6.0-x86_64
systems:
cobbler2
esxi55-01
repos:
images:
mgmtclasses:
packages:
files:
[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
Name : EXSI6.0-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : EXSI6.0-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
3、修改EXSI6.0-x86_64默认的kickstarts配置文件
[root@cobbler kickstarts]# cobbler profile edit --name=EXSI6.0-x86_64 --kickstart=/var/lib/cobbler/kickstarts/ESXI60.cfg
[root@cobbler kickstarts]# cobbler sync
重启服务器,然后从网络安装:
文章标题:CentOS7.3下利用Cobbler2.8.0安装部署ESXi6.0
本文URL:http://www.shufengxianlan.com/qtweb/news38/385888.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联