-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update site at 20240703-102518, machine LiaoSirui-MacMini.local
- Loading branch information
Showing
4 changed files
with
141 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- 更改电源策略 | ||
|
||
选择【管理】-【硬件】-【电源管理】-【更改策略】- 高性能 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
## 制作过程 | ||
|
||
<https://github.com/soulteary/easy-ESXi-builder> | ||
|
||
利用 VMware-PowerCLI 软件 | ||
|
||
```dockerfile | ||
FROM python:3.7 | ||
|
||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip install six psutil lxml pyopenssl --no-cache-dir | ||
|
||
RUN wget "https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb" -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb | ||
|
||
RUN sed -i -e "s/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/" /etc/apt/sources.list && apt-get update && apt-get install -y powershell | ||
|
||
RUN curl -L 'https://developer.vmware.com/docs/17484/' \ | ||
-H 'authority: developer.vmware.com' \ | ||
-H 'accept: text/html' \ | ||
-H 'referer: https://developer.vmware.com/powercli/installation-guide' \ | ||
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36' \ | ||
--compressed \ | ||
-o VMware-PowerCLI-13.0.0-20829139.zip | ||
|
||
SHELL ["/usr/bin/pwsh", "-c"] | ||
|
||
RUN cd $($env:PSModulePath | awk -F ':' '{print $1}') && \ | ||
mv /VMware-PowerCLI-13.0.0-20829139.zip . && \ | ||
Expand-Archive ./VMware-PowerCLI-13.0.0-20829139.zip ./ && \ | ||
rm -rf ./VMware-PowerCLI-13.0.0-20829139.zip | ||
|
||
ENTRYPOINT pwsh | ||
``` | ||
|
||
- ESXi 的离线安装包,比如:`VMware-ESXi-8.0-20513097-depot.zip` | ||
- ESXi 相关社区驱动,搭配自己的硬件使用,比如: | ||
- ESXi 的 PCIe 社区网络驱动程序:[community-networking-driver-for-esxi](https://flings.vmware.com/community-networking-driver-for-esxi) | ||
- ESXi 的 USB 社区网络驱动程序:[usb-network-native-driver-for-esxi](https://flings.vmware.com/usb-network-native-driver-for-esxi) | ||
- ESXi 的 NVMe 社区驱动程序:[community-nvme-driver-for-esxi](https://flings.vmware.com/community-nvme-driver-for-esxi) | ||
|
||
``` | ||
docker run --rm -it -v `pwd`:/data soulteary/easy-esxi-builder:2023.01.29 | ||
``` | ||
|
||
使用下面的命令,来添加基础镜像,和要附加到 ESXi 镜像中的驱动 | ||
|
||
``` | ||
# 加载基础镜像 | ||
Add-EsxSoftwareDepot /data/VMware-ESXi-8.0-20513097-depot.zip | ||
# 加载社区 NVMe 驱动 | ||
Add-EsxSoftwareDepot /data/nvme-community-driver_1.0.1.0-3vmw.700.1.0.15843807-component-18902434.zip | ||
# 加载社区 PCIe 驱动 | ||
Add-EsxSoftwareDepot /data/Net-Community-Driver_1.2.7.0-1vmw.700.1.0.15843807_19480755.zip | ||
# 加载社区 USB 驱动 | ||
Add-EsxSoftwareDepot /data/ESXi800-VMKUSB-NIC-FLING-61054763-component-20826251.zip | ||
# 如果你还需要更多驱动,参考上面的命令,继续操作即可 | ||
``` | ||
|
||
## 参考文档 | ||
|
||
- <https://soulteary.com/2023/01/29/how-to-easily-create-and-install-a-custom-esxi-image.html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- `Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in` | ||
|
||
```bash | ||
crash> bt | ||
PID: 2759 TASK: ffff8d8c4800a0e0 CPU: 1 COMMAND: "bpbkar" | ||
#0 [ffff8d94a52d37b0] machine_kexec at ffffffff82c65754 | ||
#1 [ffff8d94a52d3810] __crash_kexec at ffffffff82d209a2 | ||
#2 [ffff8d94a52d38e0] panic at ffffffff833728ec | ||
#3 [ffff8d94a52d3960] __stack_chk_fail at ffffffff82c9a5eb | ||
#4 [ffff8d94a52d3970] kernel_rule_log_filter at ffffffffc078b623 [sysmon_edr] <<------ | ||
#5 [ffff8d94a52d3bb0] Kernel_Rule_Log_Proc at ffffffffc078b899 [sysmon_edr] <<------ | ||
#6 [ffff8d94a52d3ca0] wgs_check_file at ffffffffc078b9a4 [sysmon_edr] <<------ | ||
#7 [ffff8d94a52d3cf8] check_file_input at ffffffffc0788706 [sysmon_edr] <<------ | ||
#8 [ffff8d94a52d3d60] hook_security_inode_setattr at ffffffffc0788b12 [sysmon_edr] <<------ | ||
#9 [ffff8d94a52d3d80] security_inode_setattr at ffffffff82f0189f | ||
#10 [ffff8d94a52d3da0] notify_change at ffffffff82e67a9b | ||
#11 [ffff8d94a52d3de8] utimes_common at ffffffff82e7df99 | ||
#12 [ffff8d94a52d3e78] do_utimes at ffffffff82e7e165 | ||
|
||
crash> dis -rl ffffffffc078b623 | tail | ||
|
||
crash> dis -rl ffffffff82c9a5eb | ||
|
||
crash> mod -t | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters