安装镜像下载
最新的 ESXI 6.5 的 HP 定制镜像可以在这个 URL 进行下载:
https://my.vmware.com/web/vmware/details?productId=614&downloadGroup=OEM-ESXI65-HPE
据说7.x版本已经支持可视化配置RDM了,但是官方只支持gen9以后。
安装教程
存储规划
4G+ 闪迪酷豆CZ43miniU盘安装 ESXI 系统(从6.5开始,ESXI 禁止在 U 盘上创建 VMFS 存储,因此必须额外使用硬盘来创建存储池子)
120G SSD,通过小4pin公+7pin转SATA22pin一体线直接连接。
1*HDD(3GB),通过 Lsi 9211-8i HBA 卡,后续考虑多加几块硬盘,先玩玩看。
这里的话,如果你没有直通的需求,那么 SSD 接入到主板 SATA 接口,也是可以正常使用的。
安装系统
开机f9 bios 设置硬盘模式为AHCI
拔掉了除安装U盘以外所有的硬盘
ilo直接挂在ios文件为虚拟cd-rom,重启后f11进入boot menu,选择cd-rom。一路下一步。选择安装到对应U盘(未拔出所有硬盘小心了,别搞错了。。)。
安装完成后,会提示你remove installation media,对于 Gen8 来说就比较简单了,在远程控制台的菜单中取消 ISO 选中即可。
重启后,即可进入 ESXI 的控制台,里面显示了控制面板ip。
过控制台上的 URL,可以访问到 ESXI 的 Host Webclient,这个是从 ESXI 6.5 开始引入的一个基于 H5 的管理后台,目前大部分的操作都可以在这里完成。
部分操作需要ssh链接ESXI进行操作(配置->安全配置文件里 启用ssh服务)。
#ssh [email protected]
初始化硬盘
当需要在ESXI建立虚拟机的时候,我们需要新建存储,存储中可能不会识别所有的硬盘。有一个原因就说没有进行分区删除与格式化。
~ # ls /vmfs/devices/disks 或者 ~ # ls /dev/disks 查看所有磁盘
Shell
[root@localhost:~] ls /vmfs/devices/disks/
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570:1
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570:2
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570:5
t10.ATA_____WDC_WD30EFRX2D68EUZN0_________________________WD2DWCC4N7JRP742
t10.ATA_____WDC_WD30EFRX2D68EUZN0_________________________WD2DWCC4N7JRP742:1
t10.ATA_____WDC_WD30EFRX2D68EUZN0_________________________WD2DWCC4N7JRP742:2
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:1
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:5
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:6
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:7
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:8
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:9
vml.0000000000766d68626133323a303a30
vml.0000000000766d68626133323a303a30:1
vml.0000000000766d68626133323a303a30:5
vml.0000000000766d68626133323a303a30:6
vml.0000000000766d68626133323a303a30:7
vml.0000000000766d68626133323a303a30:8
vml.0000000000766d68626133323a303a30:9
vml.0100000000202020202057442d574343344e374a5250373432574443205744
vml.0100000000202020202057442d574343344e374a5250373432574443205744:1
vml.0100000000202020202057442d574343344e374a5250373432574443205744:2
vml.010000000041413030303030303030303030303030333537304b494e475354
vml.010000000041413030303030303030303030303030333537304b494e475354:1
vml.010000000041413030303030303030303030303030333537304b494e475354:2
vml.010000000041413030303030303030303030303030333537304b494e475354:5
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
[root@localhost:~]ls/vmfs/devices/disks/
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570:1
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570:2
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570:5
t10.ATA_____WDC_WD30EFRX2D68EUZN0_________________________WD2DWCC4N7JRP742
t10.ATA_____WDC_WD30EFRX2D68EUZN0_________________________WD2DWCC4N7JRP742:1
t10.ATA_____WDC_WD30EFRX2D68EUZN0_________________________WD2DWCC4N7JRP742:2
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:1
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:5
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:6
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:7
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:8
t10.SanDisk00Ultra_Fit000000000000004C530001080220104581:9
vml.0000000000766d68626133323a303a30
vml.0000000000766d68626133323a303a30:1
vml.0000000000766d68626133323a303a30:5
vml.0000000000766d68626133323a303a30:6
vml.0000000000766d68626133323a303a30:7
vml.0000000000766d68626133323a303a30:8
vml.0000000000766d68626133323a303a30:9
vml.0100000000202020202057442d574343344e374a5250373432574443205744
vml.0100000000202020202057442d574343344e374a5250373432574443205744:1
vml.0100000000202020202057442d574343344e374a5250373432574443205744:2
vml.010000000041413030303030303030303030303030333537304b494e475354
vml.010000000041413030303030303030303030303030333537304b494e475354:1
vml.010000000041413030303030303030303030303030333537304b494e475354:2
vml.010000000041413030303030303030303030303030333537304b494e475354:5
t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570是我的120G固态硬盘,:1是指的分区号。
删分区
~# partedUtil delete /dev/disks/t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570 1,这个是删分区,命令后漏了分区号,所以没成功。
格式化磁盘,清除所有分区
~# partedUtil mklabel /dev/disks/t10.ATA_____KINGSTON_SV300S37A2F120G_________________AA000000000000003570 msdos
~ # ls /vmfs/devices/disks 查看结果。
ESXI查看存储菜单是否出现未识别硬盘。
安装CentOS 7
Centos7默认安装是没有开启配置网卡信息的,也就是说啥都木有,无法访问外网;
打不开端口需要关闭防火墙,或者打开对应的端口。
#CentOS 7
systemctl stop firewalld.service
systemctl disable firewalld.service
#其它系统
iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
service iptables save
service iptables restart