说明:由于上一篇文章我已经写到了部署esxi5.5,http://molewan.blog.51cto.com/287340/1908862
部署esxi6.0的操作与esxi5.5的过程几乎一样,这样主要是为了做个验证
1、挂载并导入数据
[root@cobbler~]#mount/dev/cdrom/mnt/ mount:/dev/sr0iswrite-protected,mountingread-only [root@cobbler~]#df-h FilesystemSizeUsedAvailUse%Mountedon /dev/mapper/cl-root50G19G32G37%/ devtmpfs1.9G01.9G0%/dev tmpfs1.9G144K1.9G1%/dev/shm tmpfs1.9G9.0M1.9G1%/run tmpfs1.9G01.9G0%/sys/fs/cgroup /dev/mapper/cl-home46G36M46G1%/home /dev/sda11014M175M840M18%/boot tmpfs378M16K378M1%/run/user/0 /dev/sr0349M349M0100%/mnt [root@cobbler~]#cobblerimport--path=/mnt--name=EXSI6.0--arch=x86_64 taskstarted:2017-03-21_163111_import taskstarted(id=Mediaimport,time=TueMar2116:31:112017) Foundacandidatesignature:breed=vmware,version=esxi51 running:/usr/bin/file/var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00 receivedonstdout:/var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00:gzipcompresseddata,was"vmvisor-sys.tar.vtar",fromUnix,lastmodified:FriFeb611:13:302015 receivedonstderr: Foundacandidatesignature:breed=vmware,version=esxi60 running:/usr/bin/file/var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00 receivedonstdout:/var/www/cobbler/ks_mirror/EXSI6.0-x86_64/s.v00:gzipcompresseddata,lastmodified:FriFeb611:13:302015 receivedonstderr: Foundamatchingsignature:breed=vmware,version=esxi60 Addingdistrosfrompath/var/www/cobbler/ks_mirror/EXSI6.0-x86_64: running:/usr/bin/file/var/www/cobbler/ks_mirror/EXSI6.0-x86_64/tools.t00 receivedonstdout:/var/www/cobbler/ks_mirror/EXSI6.0-x86_64/tools.t00:gzipcompresseddata,lastmodified:FriFeb611:12:002015 receivedonstderr: creatingnewdistro:EXSI6.0-x86_64 tryingsymlink:/var/www/cobbler/ks_mirror/EXSI6.0-x86_64->/var/www/cobbler/links/EXSI6.0-x86_64 creatingnewprofile:EXSI6.0-x86_64 associatingrepos ***TASKCOMPLETE*** [root@cobbler~]#echo$? 0
2、查看cobbler清单
[root@cobblerkickstarts]#cobblerlist 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@cobblerkickstarts]#cobblerprofilereport Name:CentOS-7.3-x86_64 TFTPBootFiles:{} Comment: DHCPTag:default Distribution:CentOS-7.3-x86_64 EnablegPXE?:0 EnablePXEMenu?:1 FetchableFiles:{} KernelOptions:{'biosdevname':'0','net.ifnames':'0'} KernelOptions(PostInstall):{} Kickstart:/var/lib/cobbler/kickstarts/CentOS-7.3-x86_64.cfg KickstartMetadata:{} ManagementClasses:[] ManagementParameters:<<inherit>> NameServers:[] NameServeRSSearchPath:[] Owners:['admin'] ParentProfile: Internalproxy: RedHatManagementKey:<<inherit>> RedHatManagementServer:<<inherit>> Repos:[] ServerOverride:<<inherit>> TemplateFiles:{} VirtAutoBoot:1 VirtBridge:xenbr0 Virtcpus:1 VirtDiskDriverType:raw VirtFileSize(GB):5 VirtPath: VirtRAM(MB):512 VirtType:kvm Name:CentOS-6.7-x86_64 TFTPBootFiles:{} Comment: DHCPTag:default Distribution:CentOS-6.7-x86_64 EnablegPXE?:0 EnablePXEMenu?:1 FetchableFiles:{} KernelOptions:{} KernelOptions(PostInstall):{} Kickstart:/var/lib/cobbler/kickstarts/sample_end.ks KickstartMetadata:{} ManagementClasses:[] ManagementParameters:<<inherit>> NameServers:[] NameServeRSSearchPath:[] Owners:['admin'] ParentProfile: Internalproxy: RedHatManagementKey:<<inherit>> RedHatManagementServer:<<inherit>> Repos:[] ServerOverride:<<inherit>> TemplateFiles:{} VirtAutoBoot:1 VirtBridge:xenbr0 Virtcpus:1 VirtDiskDriverType:raw VirtFileSize(GB):5 VirtPath: VirtRAM(MB):512 VirtType:kvm Name:EXSI5.5-x86_64 TFTPBootFiles:{} Comment: DHCPTag:default Distribution:EXSI5.5-x86_64 EnablegPXE?:0 EnablePXEMenu?:1 FetchableFiles:{} KernelOptions:{} KernelOptions(PostInstall):{} Kickstart:/var/lib/cobbler/kickstarts/ESXI55.cfg KickstartMetadata:{} ManagementClasses:[] ManagementParameters:<<inherit>> NameServers:[] NameServeRSSearchPath:[] Owners:['admin'] ParentProfile: Internalproxy: RedHatManagementKey:<<inherit>> RedHatManagementServer:<<inherit>> Repos:[] ServerOverride:<<inherit>> TemplateFiles:{} VirtAutoBoot:1 VirtBridge:xenbr0 Virtcpus:1 VirtDiskDriverType:raw VirtFileSize(GB):5 VirtPath: VirtRAM(MB):512 VirtType:kvm Name:EXSI6.0-x86_64 TFTPBootFiles:{} Comment: DHCPTag:default Distribution:EXSI6.0-x86_64 EnablegPXE?:0 EnablePXEMenu?:1 FetchableFiles:{} KernelOptions:{} KernelOptions(PostInstall):{} Kickstart:/var/lib/cobbler/kickstarts/sample_esxi5.ks KickstartMetadata:{} ManagementClasses:[] ManagementParameters:<<inherit>> NameServers:[] NameServeRSSearchPath:[] Owners:['admin'] ParentProfile: Internalproxy: RedHatManagementKey:<<inherit>> RedHatManagementServer:<<inherit>> Repos:[] ServerOverride:<<inherit>> TemplateFiles:{} VirtAutoBoot:1 VirtBridge:xenbr0 Virtcpus:1 VirtDiskDriverType:raw VirtFileSize(GB):5 VirtPath: VirtRAM(MB):512 VirtType:kvm
3、修改EXSI6.0-x86_64默认的kickstarts配置文件
[root@cobblerkickstarts]#cobblerprofileedit--name=EXSI6.0-x86_64--kickstart=/var/lib/cobbler/kickstarts/ESXI60.cfg [root@cobblerkickstarts]#cobblersync 重启服务器,然后从网络安装:
4、查看安装后的界面
原文链接:https://www.f2er.com/centos/378285.html