旧笔记本通过自定义整合网卡驱动安装 ESXi 6.7.0 u1

考虑到大家很多人并不是我这款网卡,在这里贴出一个链接,其包含下面列出的网卡的驱动。使用方法跟下面正文的方法一样,只需要把网卡那部分替换成你需要的网卡驱动。下载时注意是 Direct Download links 下的 Offline Bundle of version XXX

  • net-e1000e: Obsolete - Driver for Intel I217/I218/82579LM/82574L
  • net-tulip: DECchip 21140 Ethernet driver (This driver allows running ESXi as a VM under Microsoft Hyper-V)
  • net55-r8168: Updated driver for Realtek 8168/8111/8411/8118 based NICs
  • net51-r8169: Adds the blacklisted ESXi 5.1 built-in net-r8169 driver back to ESXi 6.0
  • net51-sky2: Adds the blacklisted ESXi 5.1 built-in net-sky2 driver back to ESXi 6.0
  • net51-drivers: Deprecated - Adds all blacklisted ESXi 5.1 NIC drivers back to ESXi 6.0
  • net-atl1: Attansic/Atheros L1 Gigabit Ethernet driver
  • net-atl1e: Driver for Atheros(R) AR8121/AR8113/AR8114/AR8131/AR8132/AR8152 PCI-E Ethernet NICs
  • net-igb: Intel(R) Gigabit Ethernet Network Driver (modified to ignore invalid NVM checksums)
  • net-r8101: Realtek RTL8101E/RTL8102E driver
  • net-r8139too: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter Driver
  • net-skge: Driver for Marvell Yukon chipset and SysKonnect Gigabit Ethernet Adapters

使用了10年的 Samsung 300e4a 笔记本,陆续升级到 10G RAM + 120G SSD + HD,现在换了新电脑后,觉得把它扔了实在可惜。于是在琢磨了身边人的各种利旧方案后,决定安装ESXi,以充分折腾。

优点:

  • 安装ESXi,便于安装各个小应用虚拟机,将10G内存划分干净;
  • 120G SSD只安装虚拟机系统磁盘也基本够用,将机械硬盘直通给其中一台虚拟机做NAS,初步决定为黑群晖。
  • 笔记本电池还能撑3、4个小时,UPS也有了!

缺点:

  • 没有直接操作虚拟机的界面,只能用电脑或手机远程管理;
  • ESXi不支持无线网卡,只能插着网线使用;
  • 300e4a 使用网卡是 Realtek 8168E,ESXi 6.7.0 u1 没有驱动不能直接安装,但是ESXi 5.5是带这款网卡驱动的,所以要自定义安装镜像。

一、准备安装镜像(官方镜像中添加 r8168 驱动)

1、环境、文件准备:

  • 设置 PowerShell 执行策略,以允许本地脚本执行,参考链接Set-ExecutionPolicy
PS> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
PS> Install-Module -Name VMware.PowerCLI

安装该模块因为是在线安装,需要时间会久一点,这时候继续以下工作。

2、自定义安装镜像的操作

将上面的环境准备好,文件下载完后放在同一个文件夹下。


图1

贴一下ESXi-Customizer-PS-v2.6.0.ps1的参数,可以看到功能还是挺多的:

PS> .\ESXi-Customizer-PS-v2.6.0.ps1 -help

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

Usage:
   ESXi-Customizer-PS [-help] | [-izip <bundle> [-update]] [-sip] [-v67|-v65|-v60|-v55|-v51|-v50]
                                [-ozip] [-pkgDir <dir>] [-outDir <dir>] [-vft] [-dpt depot1[,...]]
                                [-load vib1[,...]] [-remove vib1[,...]] [-log <file>] [-ipname <name>]
                                [-ipdesc <desc>] [-ipvendor <vendor>] [-nsc] [-test]

Optional parameters:
   -help              : display this help
   -izip <bundle>     : use the VMware Offline bundle <bundle> as input instead of the Online depot
   -update            : only with -izip, updates a local bundle with an ESXi patch from the VMware Online depot,
                        combine this with the matching ESXi version selection switch
   -pkgDir <dir>      : local directory of Offline bundles and/or VIB files to add (if any, no default)
   -ozip              : output an Offline bundle instead of an installation ISO
   -outDir <dir>      : directory to store the customized ISO or Offline bundle (the default is the
                        script directory. If specified the log file will also be moved here.)
   -vft               : connect the V-Front Online depot
   -dpt depot1[,...]  : connect additional Online depots by URL or local Offline bundles by file name
   -load vib1[,...]   : load additional packages from connected depots or Offline bundles
   -remove vib1[,...] : remove named VIB packages from the custom Imageprofile
   -sip               : select an Imageprofile from the current list
                        (default = auto-select latest available standard profile)
   -v67 | -v65 | -v60 |
   -v55 | -v51 | -v50 : Use only ESXi 6.7/6.5/6.0/5.5/5.1/5.0 Imageprofiles as input, ignore other versions
   -nsc               : use -NoSignatureCheck with export
   -log <file>        : Use custom log file <file>
   -ipname <name>
   -ipdesc <desc>
   -ipvendor <vendor> : provide a name, description and/or vendor for the customized
                        Imageprofile (the default is derived from the cloned input Imageprofile)
   -test              : skip package download and image build (for testing)
  • 首先建议加入VMware 的 CEIP,当然不加入也可以,运行PowerCLI相关命令工具会出现警告。
PS> Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true
  • 现在生成自定义镜像:
PS> ./ESXi-Customizer-PS-v2.6.0.ps1 -izip update-from-esxi6.7-6.7_update01.zip -dpt net55-r8168-8.045a-napi-offline_bundle.zip -load net55-r8168

顺利的话,很快就在目录下生成对应的ISO镜像文件。
我的输出如下:

PS> ./ESXi-Customizer-PS-v2.6.0.ps1 -izip update-from-esxi6.7-6.7_update01.zip -dpt net55-r8168-8.045a-napi-offline_bundle.zip -load net55-r8168

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\Yang\AppData\Local\Temp\ESXi-Customizer-PS-8264.log ...

Running with PowerShell version 5.1 and VMware PowerCLI version 11.0.0.10336080

Adding base Offline bundle update-from-esxi6.7-6.7_update01.zip ... [OK]

Connecting additional depot net55-r8168-8.045a-napi-offline_bundle.zip ... [OK]

Getting Imageprofiles, please wait ... [OK]

Using Imageprofile ESXi-6.7.0-20181002001-standard ...
(dated 10/08/2018 10:26:44, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20181002001-standard)

Load additional VIBs from Online depots ...
   Add VIB net55-r8168 8.045a-napi [New AcceptanceLevel: CommunitySupported] [OK, added]

Exporting the Imageprofile to 'D:\Temp\300e4a-esxi\ESXi-6.7.0-20181002001-standard-customized.iso'. Please be patient ...


All done.

至此,安装镜像就准备好了。

3、制作安装用U盘

运行rufus,设备处下拉选择要写的U盘,使用“选择”按钮选择刚生成的镜像。“开始”写入,有提示的话都选择推荐。


图2

等写入进程结束后,就做好了。

二、300E4A 使用U盘安装 ESXi 6.7.0 u1

此处只写一个暗坑,不知道是我的个例还是通病,记录一下。其他安装过程都没啥可多说的。

  • 用U盘启动后花屏
    我的 300E4A 用 ESXi 优盘启动后花屏,在恢复 CMOS 默认设置后,打开 AHCI,关闭UEFI特性后启动安装正常。原因没深究,估计还是跟电脑固件太老有关系。
  • 安装完 ESXi 后无限重启
    用上一步的方法安装完 ESXi 后,笔记本不能引导。当然啊,因为把 UEFI 特性给关了啊,在 CMOS 设置里打开UEFI特性就行了。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 175,490评论 5 419
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 74,060评论 2 335
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 124,407评论 0 291
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 47,741评论 0 248
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 56,543评论 3 329
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 43,040评论 1 246
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 34,107评论 3 358
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 32,646评论 0 229
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 36,694评论 1 271
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 32,398评论 2 279
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 33,987评论 1 288
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 30,097评论 3 285
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 35,298评论 3 282
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 27,278评论 0 14
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 28,413评论 1 232
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 38,397评论 2 309
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 38,099评论 2 314