《LINUX教程:CentOS7.3下利用Cobbler2.8.0安装部署ESXi 6.0》要点:
本文介绍了LINUX教程:CentOS7.3下利用Cobbler2.8.0安装部署ESXi 6.0,希望对您有用。如果有疑问,可以联系我们。
阐明:由于上一篇文章我已经写到了在CentOS7.3下利用Cobbler2.8.0安装部署,
部署ESXi 6.0的操作与ESXi 5.5的过程几乎一样,这样主要是为了做个验证
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 : <<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
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 : <<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
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 : <<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
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 : <<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
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
重启服务器,然后从网络安装:
本文永远更新链接地址:
学习更多LINUX教程,请查看站内专栏,如果有LINUX疑问,可以加QQ交流《LINUX教程:CentOS7.3下利用Cobbler2.8.0安装部署ESXi 6.0》。