Skip to main content

ESXi

ItemFreePaid
physical CPUs2768
physical memory16TB16TB
vCPUs per VM8 vCPUs256 vCPUs
vRAM per VM6TB6TB
qemu-img convert -f qcow2 -O vmdk -o adapter_type=lsilogic,subformat=streamOptimized,compat6 SC-1.qcow2 SC-1.vmdk
# https://github.com/alpinelinux/alpine-make-vm-image#creating-image-for-vmware-esxiqemu-img convert -f qcow2 -O vmdk -o adapter_type=lsilogic,subformat=monolithicFlat alpine.qcow2 alpine.vmdk

esxcli#

# 服务器信息esxcli --server myESXi --username user1 --password 'my_password' --thumbprint
# 输出格式esxcli --formatter=csv storage filesystem list
esxcli --server MyVC --vihost MyESXi storage filesystem list
# 升级esxcli software vib
# 系统管理# ==========# 维护模式system maintenanceMode set --enable true
# system module list --module=<module_name>system module list --enabled=truesystem module list --loaded=true# 启用system module set --module=<module_name> --enabled=true# 参数system module parameters set --module=<module_name> --parameter-string=<parameter_string># 验证system module parameters list --module=<module_name>

# 组件管理# ==========# 系统组件software component list# 组件信息 <component_name>:<version>software component get -n <component_name>software baseimage getsoftware addon get# 仓库 - index.xml 或者 zipsoftware sources component list -d <depot_url_or_offline_bundle_path># 详细信息software sources component get -n <component_name> -d <depot_url_or_offline_bundle_path># 安装software component apply -n <component_name>:<version> -d <depot_url_or_offline_bundle_path># 移除software component remove -n <component_name>
# 管理 baseimagesoftware sources baseimage list -d <depot_url_or_offline_bundle_path>software sources baseimage get -b <base_image_version> -d <depot_url_or_offline_bundle_path>software sources addon list -d <depot_url_or_offline_bundle_path>software sources addon get -a <add-on_name> -d <depot_url_or_offline_bundle_path>
# 通过 JSON 配置software apply -s <location_of_software_spec>.json -d <depot_url_or_offline_bundle_path>

# 存储管理# ==========# 挂载的卷storage filesystem list# 卸载storage filesystem unmount# 快照storage vmfs
# 挂载storage filesystem volume mount --volume-label=<label>|--volume-uuid=<VMFSUUID># 卸载storage filesystem volume unmount --volume-label=<label>|--volume-uuid=<VMFSUUID>
# 快照列表storage vmfs snapshot liststorage filesystem unmountstorage vmfs snapshot resignature --volume-label=<label>|--volume-uuid=<id>