Chon · 翀

The Neverland Blog

VMware

ESXi

Add-EsxSoftwareDepot net55-r8168-8.045a-napi-offline_bundle.zip
Get-EsxSoftwarePackage

Add-EsxSoftwareDepot ESXi670-201912001.zip
Get-EsxImageProfile

New-EsxImageProfile -CloneProfile ESXi-6.7.0-20191204001-standard -Name NewAsyncProfile -Vendor MyCorp -AcceptanceLevel CommunitySupported

Add-EsxSoftwarePackage -ImageProfile NewAsyncProfile -SoftwarePackage net55-r8168

Export-EsxImageProfile -ImageProfile NewAsyncProfile -ExportToISO -filepath NewAsyncProfile.iso

VMware Workstation Optimization

在 VMware Workstation 的 Application Data 的配置文件 config.ini 中,以及各虚拟机的 .vmx 文件中加入以下内容:

  • 禁用虚拟机的内存内容存储在硬盘上。

      mainMem.useNamedFile = "FALSE"
  • 禁用动态分配和回收虚拟机内存空间。相当于“disable memory page trimming”选项。

      MemTrimRate = 0
  • Disable page sharing:

      sched.mem.pshare.enable = "FALSE"
  • 禁用快照

      snapshot.disabled = "TRUE"

VMware Fusion Optimization

  • 调整内存模式

      mainMem.backing = "swap"
  • 禁用虚拟机日志

      logging = "FALSE"
  • 允许连接 HID 设备

      usb.generic.allowHID = "TRUE"
      usb.generic.allowLastHID = "TRUE"

VMware Fusion DHCP static

/Library/Preferences/VMware Fusion/vmnet8

host yc_vpc_debian {
    hardware ethernet 00:0c:29:32:35:8b;
    fixed-address 172.16.88.160;
}
host yc_vpc_centos {
    hardware ethernet 00:0C:29:4D:f5:94;
    fixed-address 172.16.88.170;
}

http://nileshk.com/2009/06/24/vmware-fusion-nat-dhcp-and-port-forwarding.html

ESXi on Intel NUC

$ Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
$ Add-EsxSoftwareDepot http://vibsdepot.v-front.de
$ New-EsxImageProfile -CloneProfile "ESXi-6.0.0-20150504001-standard" -name "ESXi-6.0.0-20150504001-NUC" -Vendor "virten.net" -AcceptanceLevel "CommunitySupported"
$ Add-EsxSoftwarePackage -ImageProfile "ESXi-6.0.0-20150504001-NUC" -SoftwarePackage "net-e1000e"
$ Add-EsxSoftwarePackage -ImageProfile "ESXi-6.0.0-20150504001-NUC" -SoftwarePackage "sata-xahci"
$ Export-ESXImageProfile -ImageProfile "ESXi-6.0.0-20150504001-NUC" -ExportToISO -filepath "ESXi-6.0.0-20150504001-NUC.iso"
$ Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
$ Add-EsxSoftwareDepot http://vibsdepot.v-front.de
$ New-EsxImageProfile -CloneProfile "ESXi-5.5.0-20150504001-standard" -name "ESXi-5.5.0-20150504001-NUC" -Vendor "virten.net" -AcceptanceLevel "CommunitySupported"
$ Add-EsxSoftwarePackage -ImageProfile "ESXi-5.5.0-20150504001-NUC" -SoftwarePackage "net-e1000e"
$ Add-EsxSoftwarePackage -ImageProfile "ESXi-5.5.0-20150504001-NUC" -SoftwarePackage "sata-xahci"
$ Export-ESXImageProfile -ImageProfile "ESXi-5.5.0-20150504001-NUC" -ExportToISO -filepath "ESXi-5.5.0-20150504001-NUC.iso"