本文共 6319 字,大约阅读时间需要 21 分钟。
说明:由于上一篇文章我已经写到了部署esxi5.5,http://molewan.blog.51cto.com/287340/1908862
部署esxi6.0的操作与esxi5.5的过程几乎一样,这样主要是为了做个验证
1、挂载并导入数据
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | [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清单
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | [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配置文件
1 2 3 | [root@cobbler kickstarts] # cobbler profile edit --name=EXSI6.0-x86_64 --kickstart=/var/lib/cobbler/kickstarts/ESXI60.cfg [root@cobbler kickstarts] # cobbler sync 重启服务器,然后从网络安装: |
4、查看安装后的界面