Exsi中的启动延迟和停止延迟

ESXi Autostart Start Delay, Stop Delay & Stop Action
I spent a lot longer than I would have liked today googling for more information on the ESXi Autostart options of Start Delay, Stop Delay and Stop Action. In the end my friend Keith’s Google-Fu was stronger than mine and he pointed me in the right direction. Because the articles we found (listed below) don’t use exactly the same terminology (hence me not finding the answers I wanted) I decided to summarise them here with the “correct” terminology of the latest ESXi 7.0 UI.

Start Delay – After you start the ESXi host, it starts powering on the virtual machines that are configured for autostart. After the ESXi host powers on the first virtual machine, the host waits for the specified delay time and then powers on the next virtual machine. The virtual machines are powered on in the startup order specified in the Per-VM Overrides pane.

Why would you want to do this? Why not just start all VM’s at the same time? A couple of reasons.

Dependencies. You might need to wait for some slower storage arrays to boot before you bring up file sharing servers. Or you might need to bring up some sort of domain controllers before bringing up applications like SQL.
Resources. When VM’s start their hardware requirements often spike. Starting them all together might could either put a huge stress on the Host or even exhaust the host resources if you VM’s are oversubscribed.
Stop Delay – is the maximum time the ESXi host will wait for a shutdown command to complete. If the Virtual Machine does not shutdown within the delay time specified a hard Power Off is issued to the Virtual Machine. When an ESX host is shut down, the host follows this process:

Autostart Manager initiates the automatic shutdown of the first Virtual Machine. The shut down is one of the power operations (Power Off, Shutdown or Suspend) depending on the configuration.
Autostart Manager waits the amount of time specified in the Stop Delay parameter for the Virtual Machine to complete the power operation.
If the power operation is completed in less time than specified in the Stop Delay, the ESXi host begins to shut down its next Virtual Machine.
If the power operation is not completed within the time specified in the Stop Delay, the ESXi host sends a power off command then begins to shut down its next Virtual Machine.
Stop Action – Power Off, Suspend, Shutdown, System Default

Power Off: This is the equivalent of you physically pulling the power cord out of a real life server. It immediately terminates the VM with no graceful saving of files/cache.
Suspend: Put the VM into a sleep state that can be resumed at exactly the same point later on. This sounds great but lots of VM’s won’t like this due to the clock differences from suspension to resumption.
Shutdown: This instructs the VM to perform a graceful shutdown of itself. For a lot of servers, like Windows, you must have VMWare Tools installed on the VM for this action to be honoured by the operating system. However, I’ve seen many VM’s that are “appliances” running a custom operating system, like Cisco or HPE virtual networking equipment to honour this command even though they don’t support installing any software (e.g. VMWare Tools) on them.
System Default: the VM will do whatever is set as the global Stop Action under Host>Manage>Autostart
Note: under ESXi 7.0 I found that the Stop Action setting under Host>Manage>Autostart also included the option of “System Default”. This appears to be a UI bug as this IS the place to set System Defaults, not defer to them. You can see a question I logged on this on the VMWare forum and the moderators response in the links below.

Wait for heartbeat – if Wait For Heartbeat is true, then the power-on sequence continues after the the first heartbeat has been received from the VM. If it is false, the system waits for the specified delay and then continues the power-on sequence. If all your VM’s have VMWare tools installed then you can speed up the boot process as it’ll immediately move on to the next VM once the tools send a heartbeat to say its up (instead of waiting the Start Delay interval), but the VM could still be resource hungry at this point so you may prefer just to let the Start Delay run its full course every time.

If you have documented evidence that any of the above is incorrect then please drop me a comment so I can correct the above. This is my interpretation of various articles and discussions I’ve read through today, that I thought I’d pull into a single place for others

<think>好的,我现在需要处理用户关于ESXi启动时报错的问题。首先,我得回忆一下ESXi的基本情况。ESXi是VMware的裸机虚拟化管理程序,常见于服务器环境中。启动错误可能由多种原因引起,比如硬件兼容性问题、存储故障、配置错误或者软件损坏。 用户可能遇到的具体错误信息是什么?不同的错误代码或提示信息指向不同的解决方案。比如,常见的错误有“No boot device found”、“Failed to load modules”或者“Purple Screen of Death”(PSOD)。不过用户没有提供具体的错误信息,所以需要给出一般性的排查步骤。 首先,我应该建议用户确认硬件兼容性。VMware有一个兼容性指南(HCL),用户需要检查他们的服务器、存储控制器、网卡等是否在支持列表中。如果硬件不兼容,升级固件或驱动程序可能会有帮助。 接下来,存储设备的问题。ESXi通常安装在USB/SD卡或硬盘上。如果启动介质损坏,可能导致无法启动。用户需要检查介质是否接触良好,或者尝试更换介质重新安装。此外,RAID配置错误或控制器驱动问题也可能导致启动失败,需要检查RAID状态驱动是否正确加载。 然后,内存CPU的问题。内存故障可能导致启动时崩溃,建议运行内存诊断工具,比如Memtest86+。CPU兼容性也是一个因素,特别是较新的处理器可能需要特定版本的ESXi。 引导加载程序配置错误也是一个可能的原因。用户可能需要进入引导菜单(Shift+O)检查启动参数,或者修复引导配置。如果最近更新过ESXi,回滚到之前的版本或重新安装可能有效。 另外,日志文件的分析很重要。用户可以通过查看VMkernel日志(如/var/log/vmkernel.log)寻找错误线索。如果系统无法启动,可能需要通过恢复模式或安装介质访问日志。 最后,固件BIOS设置。确保服务器的固件是最新的,并且BIOS中的虚拟化支持(如Intel VT-x或AMD-V)已启用。某些安全启动设置也可能导致问题,需要禁用。 总结来说,处理ESXi启动错误需要系统性地排查硬件、存储、配置软件等方面。用户应逐步检查每个可能性,必要时查阅VMware官方文档或联系支持。如果用户能提供具体的错误信息,可以进一步缩小范围并提供针对性的建议。</think>当VMware ESXi启动时遇到错误,可能涉及硬件、配置或系统文件问题。以下是分步排查指南: --- ### **1. 确认错误类型** 首先观察屏幕显示的**具体错误代码或描述**(如紫色死亡屏/PSoD),不同错误对应不同解决方案。 --- ### **2. 硬件兼容性检查** - **VMware HCL验证** 访问[VMware兼容性指南](https://www.vmware.com/resources/compatibility/search.php),确认服务器型号、RAID卡、网卡等硬件在支持列表中。 - **固件与驱动更新** 升级服务器BIOS、RAID卡固件至最新版本,并使用ESXi官方驱动包(如VIB文件)。 --- ### **3. 存储设备排查** - **启动介质状态** 若ESXi安装在USB/SD卡: - 检查介质是否损坏(尝试更换介质) - 确保USB端口或读卡器正常工作 - **RAID/磁盘健康** - 进入RAID控制器管理界面(如Ctrl+R),检查磁盘状态 - 替换故障硬盘或重建阵列 --- ### **4. 内存与CPU检测** - **内存故障测试** 使用Memtest86+运行完整内存测试(需从UEFI/BIOS启动)。 - **CPU兼容性** 确认CPU支持ESXi版本(如Intel Skylake后需ESXi 6.5+)。 --- ### **5. 修复引导配置** - **进入引导菜单** 重启后按`Shift+O`,在启动参数中添加`nomodeset`或`ignoreHeadless=TRUE`(针对显卡兼容问题)。 - **重新安装引导程序** 使用ESXi安装介质启动,选择**修复模式(Troubleshooting Mode)**修复分区表或引导文件。 --- ### **6. 日志分析** - **访问日志文件** 若系统部分启动,通过SSH或DCUI(直接控制台用户界面)查看日志: ```bash /var/log/vmkernel.log # 硬件驱动错误 /var/log/esxi.conf.log # 配置文件问题 /var/log/boot.gz # 启动过程记录 ``` - **无法启动时的日志获取** 通过安装介质启动进入维护模式,挂载系统分区并导出日志。 --- ### **7. 恢复出厂设置** - **重置配置** 在DCUI界面选择**Restore Configuration**还原默认设置(不影响虚拟机数据)。 --- ### **8. 版本回滚或重装** - **回滚更新** 若问题出现在升级后,通过DCUI选择**Rollback to previous version**。 - **全新安装** 备份配置文件(如`/etc/vmware/esxi.conf`),使用安装介质覆盖安装。 --- ### **常见错误示例** 1. **`No boot device found`** - 检查RAID卡驱动是否加载 - 确认启动介质未被拔出 2. **`Failed to load module xxx`** - 手动安装缺失驱动(如网卡驱动`net-igb`) 3. **紫色屏(PSOD)** - 记录错误代码(如`APICID 0x...`),参考[VMware知识库](https://kb.vmware.com)查询解决方案 --- ### **注意事项** - 操作前备份重要数据(虚拟机文件通常存储在独立数据存储,不受系统分区影响)。 - 对于关键业务环境,建议联系VMware技术支持(需有效服务合同)。 如需进一步协助,请提供具体错误信息或截图。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值