R730xd折腾记录
机器概览
配置:64G内存;
底层:ESXi系统
RAID参数设置参考了华为服务器RAID控制卡用户指南
硬盘直通:
从 ESXi 主机到虚拟机的 USB 配置
https://techdocs.broadcom.com/cn/zh-cn/vmware-cis/vsphere/vsphere/8-0/vsphere-virtual-machine-administration-guide-8-0/configuring-virtual-machine-hardwarevsphere-vm-admin/usb-configuration-from-an-esxi-host-to-a-virtual-machinevsphere-vm-admin.html
虚拟机挂载USB硬盘:
编辑配置,添加硬件,添加USB设备
lsusb
//确认USB总线中插入的设备状态
/etc/init.d/usbarbitrator start
//开启ESXi中USB仲裁
chkconfig usbarbitrator on
//使USB仲裁状态能重启后保持生效
将USB存储作为ESXi内部存储
与USB直通冲突:设置参考
/etc/init.d/usbarbitrator stop
chkconfig usbarbitrator off
ESXi数据存储中识别为非SSD
H710mini将两块SSD组成阵列RAID 1 后,在ESXi数据存储中识别为非SSD:
esxcli storage nmp device list
esxcli storage core device list
//列出储存清单(SSD设备的“device name”
esxcli storage nmp satp rule remove -s VMW_SATP_LOCAL --device naa.61866da0a11a6d00218f81e2062afe33 --option="enable_ssd"
//清除该硬盘的驱动器类型SSD标识,报错可忽略
esxcli storage nmp satp rule add -s VMW_SATP_LOCAL --device naa.61866da0a11a6d00218f81e2062afe33 --option="enable_ssd"
esxcli storage hpp device set -d naa.xxxxxxxxxxxxxxx -M true
//将指定设备标记为SSD
esxcli storage hpp device usermarkedssd list
//列出已标记为 SSD 的设备
reboot
//重启ESXi主机
如果数据存储中有数据的情况下执行此步骤进行转换,对存储内的数据不影响。
网络设置:
巨型帧:
vmk0中MTU从1500调整至9000
vSwitch0中MTU从1500调整至9000
Windows有线网卡需启用巨型帧,调整至9000
ESXi ESXCLI 防火墙命令参考
参考命令
esxcli network firewall get
esxcli network firewall set --enabled false
esxcli network firewall set --enabled true
复制进度卡死:
执行:/etc/init.d/hostd restart
iperf3
ESXi安装iperf3:
ESXi8默认已安装,路径/usr/lib/vmware/vsan/bin/iperf3
//若需手动安装,http://vibsdepot.v-front.de/depot/bundles/iperf-2.0.5-1-offline_bundle.zip
//esxcli software vib install -d /iperf-2.0.5-1-offline_bundle.zip –no-sig-check
//将安装在/opt/iperf/bin,需要创建一个名为iperf.copy的副本
iperf3测试报错:
iperf3: error - unable to start listener for connections: Operation not permitted
需关闭安全管理,参考戴尔文档。
虚拟机-Windows
Windows Server 任务管理器不显示硬盘,在cmd或powershell输入以下命令开启:
diskperf -y