[VMware] ESXi 6.5.x migrate VM but available hosts missing one host ?

因客戶機器有些異動後幫他上線後,客戶要將原本上面機器搬回該機,卻發現可用主機居然莫名看不到?換成vSphere Web Client (Flash)也是如此。

查了KB看來僅會發生在 ESXi 6.5系列。

Workaround:

step01. vSphere Web client 在要搬移機器 > Launch Remote console,立即關閉該VM console.

step02. 再作一次搬移動作.

Reference:
1.vMotion not showing all available hosts in the Cluster in vSphere 6.5 (57230)
2. Troubleshooting the migration compatibility error: The VMotion interface is not configured (or is misconfigured) on the destination host (1003827)
3. Understanding and troubleshooting vMotion (1003734)

[VMware] Huananzhi X79-8D ESXi use RDM (Raw Device Mapping) mount local SATA NTFS file type

在用華南金牌 X79-8D 用 ESXi 有時會想拿舊硬碟資料存取,總是想到要用RDM,卻發現無法使用 RDM 方式。但仔細檢查明明在BIOS (boot time press Del )有啟用 Intel VT-d 卻還是不行?

找尋到有另一個方式也是可以達到RDM效果。

2019-12-20補充 : 根據原廠KB 1017530 描述到本地控制器大多不符合RDM硬體需求因此預設是禁用。所以和Intel VT-d 不相干。

Workaround :
step01. ssh ESXi

step02. # ls /dev/disksesxcfg-mpath -l ls -al /vmfs/devices/disks
找尋到像 " t10.ATA_____HD1000320AS_________________________________________XXXXXXXX " 字串 device-name

step03.建立一個RDM link
command : vmkfstools -r <source> (space) <destination>
e.g.
vmkfstools -r /vmfs/devices/disks/ t10.ATA_____HD1000320AS_________________________________________XXXXXXXX / vmfs/volumes/目標VM目錄 /RDM-disk.vmdk

vmkfstools -z /vmfs/devices/disks/ t10.ATA_____HD1000320AS_________________________________________XXXXXXXX “/vmfs/volumes/目標VM目錄/RDM-disk.vmdk" (因為要接近實體我推薦用 -z )

(註)
-r –createrdm /vmfs/devices/disks/…
-z –createrdmpassthru /vmfs/devices/disks/…

step03.編輯欲使用Local SATA VM,右鍵 “Edit Settings" > Add > HDD > Existing hard disk 找到剛建立連結 RDM-disk.vmdk

step04.打開VM console , then check disk manager , online disk .

Done.

Reference :
1. osiutino’s Blog – 在 ESXi 利用 RDM 直接掛載實體硬碟到 VM ( HP MicroServer N36L 適用)
2. www.vmwarearena – 2 Simple ways to Create Virtual Compatibility RDM Disks
3. 暉獲無度的步烙閣 – 在 ESXi 6.0 新增 USB 外接硬碟當 Datastore
4. homecomputerlab – VMware SATA disk Raw Device Mapping (RDM)
5. GitHub , Hengjie – How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs
6. VMware KB – Raw Device Mapping for local storage (1017530)
7. vClouds – How to build a 64Gb Low Power and Fast ESXi Home Lab

[VMware]Huananzhi X79-8D onboard NIC (Realtek 8168) custom ESXi 6.7x image

Pre-ready
Step01.
PS > Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Step02.
PS> Install-Module -Name VMware.PowerCLI

Step03.
Download " ESXi-Customizer-PS-v2.6.0.ps1 " , download link (至今是最新作者說是最後一版)

Step04.
Download Realtek 8168 for ESXi driver , download link
Reference : https://vibsdepot.v-front.de/wiki/index.php/Net55-r8168#Direct_Download_links

Step05.
Download VMware vSphere Hypervisor (ESXi) Offline Bundle (PS: not .ISO installer boot cd !)
e.g. I want to install ESXi 6.7 Update 2 , filename : update-from-esxi6.7-6.7_update02.zip

Step06.
PS> Set-ExecutionPolicy Unrestricted

Step07.
PS> .\ESXi-Customizer-PS-v2.6.0.ps1
(If you don’t care warning message ,if yes , please type as below command-lin >
PS> Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true

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

-------------------------------執行過程---------------------------------
PS D:\temp> ./ESXi-Customizer-PS-v2.6.0.ps1 -izip update-from-esxi6.7-6.7_update03.zip -dpt net55-r8168-8.045a-napi-offline_bundle.zip -load net55-r8168

安全性警告
只執行您信任的指令碼。來自網際網路的指令碼雖然可能很有用,但是這個指令碼有可能會傷害您的電腦。若信任此指令碼,請使用
Unblock-File Cmdlet 來允許執行指令碼,而不顯示此警告訊息。您要執行 D:\temp\ESXi-Customizer-PS-v2.6.0.ps1 嗎?
[D] 不要執行(D)  [R] 執行一次(R)  [S] 暫停(S)  [?] 說明 (預設值為 "D"): R

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

Running with PowerShell version 5.1 and VMware PowerCLI version 11.5.0.14899560

Adding base Offline bundle update-from-esxi6.7-6.7_update03.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-20190802001-standard ...
(dated 08/08/2019 09:57:28, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20190802001-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\ESXi-6.7.0-20190802001-standard-customized.iso'. Please be patient ...


All done.
-------------------------------   END  ---------------------------------

Reference:
1. networkguy – Installing Realtek Driver on ESXi 6.7
2. 流水上面的一塊葉 – Vmware ESXi 6.7 make your unsupported NIC work – 在不支援的Network card 上面可以進行安裝
3. S小魚仔S 使用 ESXi-Customizer-PS 封裝 Esxi 6.5 Realtek、ACHI 驅動程式
4. 可丁丹尼 @ 一路往前走2.0 – ESXi 新增Realtek網路驅動
5. VMware Front Experience – ESXi-Customizer-PS