搭建个人服务器:安装VMware vSphere (ESXi)

背景:vSphere 是VMware公司推出一套服务器虚拟化解决方案,主要功能是
服务器虚拟化解决方案

目的:我想在一台废旧的电脑上安装多个功能的软件(操作系统),以实现硬件资源的最大化利用,例如,跑软路由的openwrt,群晖的NAS,以及Linux的发行版…

基本步骤:

  1. 进入VMware的官网,注册账号,获得60天的许可以下载VMware vSphere (ESXi)
  2. 下载老毛桃PE工具,把下好的ISO 放入制作好的U盘的任意一个文件夹内
  3. 插入U盘,usb启动后,(按ESC键),选择自定义安装iso,找到那个文件夹,运行它
  4. 进入esxi界面,跑一段代码后,选择硬盘,分区,设置root密码,拔出下载媒介(U盘),reboot,开机后会启动esxi
  5. 按F2,进入设置,首先修改network manage config 设置ipv4 ,static地址192.168.0.107,默认网关(软路由的地址),掩码255.255.255.0
  6. 保存后,即可由另外一台电脑浏览器输入192.168.0.107进入后台界面,到此安装成功

遇到的问题:

  1. 官网下载有iso 和 zip 两个版本:iso可以直接用,我选zip版本是因为后期需要封装网卡驱动,封装完后会自动生成I一个ISO版本
  2. 安装过程中出现network adapter error ,网卡无法驱动
  3. esxi6.7以上(包含6.7)安装到硬盘后一定是GUID(GPT)分区格式(runweasel formatwithmbr 也无效),可能会导致一些硬盘无法启动,一些硬盘只能用MBR格式启动
  4. 安装完成后,开机error:1962 NO found system, …repeat:安装6.5版本在安装开始时候 Shift + O 输入:runweasel formatwithmbr

封装网卡驱动,生成镜像文件:

 ESXI6.7-7.0最新版本如何封装网卡驱动补丁

pkg里面装net55-r8168-8.045a-napi.x86_64.vib网卡驱动
Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。

尝试新的跨平台 PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> Install-Module -Name VMware.PowerCLI
PS C:\Windows\system32> Set-ExecutionPolicy Unrestricted

执行策略更改
执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
[Y] 是(Y)  [A] 全是(A)  [N] 否(N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“N”): a
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> cd D:\Users\96359\Desktop\aic
PS D:\Users\96359\Desktop\aic> .\ESXi-Customizer-PS-v2.6.0.ps1 -izip .\ESXi650-201908001.zip -pkgDir D:\Users\96359\Desktop\aic\pkg

This is ESXi-Customizer-PS Version 2.6.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)

Logging to C:\Users\96359\AppData\Local\Temp\ESXi-Customizer-PS-10860.log ...
警告: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a
better product. You can join using the following command:

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true

VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to
improve its products and services, to fix problems, and to advise you on how best to deploy and use our products.  As
part of the CEIP, VMware collects technical information about your organization抯 use of VMware products and services
on a regular basis in association with your organization抯 VMware license key(s).  This information does not personally
 identify any individual.

For more details: type "help about_ceip" to see the related help article.

To disable this warning and set your preference use the following command and restart PowerShell:
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.

Running with PowerShell version 5.1 and VMware PowerCLI version 12.0.0.15939655

Adding base Offline bundle .\ESXi650-201908001.zip ... [OK]

Getting Imageprofiles, please wait ... [OK]

Using Imageprofile ESXi-6.5.0-20190804001-standard ...
(dated 08/06/2019 13:58:02, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.5 Image Profile-ESXi-6.5.0-20190804001-standard)

Loading Offline bundles and VIB files from D:\Users\96359\Desktop\aic\pkg ...
   Loading D:\Users\96359\Desktop\aic\pkg\net55-r8168-8.045a-napi.x86_64.vib ... [OK]
      Add VIB net55-r8168 8.045a-napi [New AcceptanceLevel: CommunitySupported] [OK, added]

Exporting the Imageprofile to 'D:\Users\96359\Desktop\aic\ESXi-6.5.0-20190804001-standard-customized.iso'. Please be patient ...


All done.

下载 “ESXi_6.5&6.7_8111适配版_iso.zip” 下载地址.txt – 已下载26次 – 75 B

发表评论

电子邮件地址不会被公开。 必填项已用*标注