-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boot delay for Debian images #814
Comments
Facing the same issue with debian 12.4. Once pxe boot times out, a hit on the escape key in the console loads grub. |
I'll address it when I'm able to provide it some attention along with another Debian related item. This will be prioritized after the current pull requests. |
Please retest on the latest in the |
I'm not using Ansible this way, but I saw your commit 5bc79f6 and wrote it by myself. I did some research and I see a main difference between Ubuntu's and Debian's EFI Grub implementation :
I'm currently working on this hypothesis |
Did you set: boot_wait = var.vm_boot_wait e.g.: boot_wait = "2s" |
Yes, I tried with, without.. and same for |
Oh god, I think I found a solution (and may be "the solution", I'll let you decide). I searched a lot on Ubuntu's side to understand what was changing. Ubuntu is more permissive with the UEFI configuration. It keeps a legacy If we set
as the Cleanup function does (see govmomi codebase), the firmware handles it dynamically and nicely I told myself (believe me, I'm sane) Well, the cleanup function is called after the VM is converted to a template. When we don't set And anyway, forcing it to |
@BDelacour I tested your workaround but without any success. boot_order = "-" still ends in the stuck pxe boot. Did you disable to boot_wait also? |
@alb-dev No, I didn't need to. Did you check your vmx file, |
Looks like that worked. The 30s PXE-Boot wait seems still to be present. Is it possible that this whole problem is a combination from vsphere 7 and debian 12? |
I don't know, I dig some time to find this UEFI problem but I can't be sure that you have exactly the same problem |
Quite likely. |
After some digging i found the "problem". Vmware UEFI implements quick boot by feature. This seems to create problem in regard of the uefi boot process with debian 11/12 Following is the articel from the debian forum. After setting efi.quickBoot.enable = "FALSE". Debian boots as aspected. Don't know if patching grub directly is the better solution. At this point i found no problem by disabling uefi.quickBoot. |
You might try: configuration_parameters = {
"efi.quickBoot.enable" = "FALSE"
} |
A quick test with the above results in: sata0:0.present = "TRUE"
efi.quickBoot.enable = "FALSE"
bios.hddOrder = "scsi0:0"
bios.bootOrder = "hdd,cdrom" However, it did not resolve the issue. I'll investigate a fix for the next update. |
I can confirm that the above setting does resolve the issue. @BDelacour - since you discovered the fix, please feel free to contribute the fix following the contributing guidelines. Ryan Johnson |
Sorry, I didn’t see your comment before, but thank you for having fixed this ! 🔥 |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Code of Conduct
Project Version
develop
VMware vSphere
7.0.3
HashiCorp Packer
1.10.0
HashiCorp Packer Plugin for VMware vSphere
1.2.3
Guest Operating System
Debian 12.4
Environment Details
No response
Description
When I create a VM using Debian example, the VMWare screen is stuck for some seconds at each boot whereas it is not for with the Ubuntu example.
First of all, I though it was a VMX problem (see hashicorp/packer-plugin-vsphere#360) because deleting them resolves the problem, but Ubuntu has those options and no problem.
Expected Behavior
Boot time should be instant
Actual Behavior
It takes tenth of seconds to boot, like if the bootOrder was
hdd,network,debian
(but hdd is already the disk holding debian...)I entered the UEFI setup and boot order is fine on this side.
Steps to Reproduce
Deploy a VM using Debian 12 template and try to boot it
Log Fragments and Files
https://gist.github.com/BDelacour/64c14d783d02b67e2b338a3636f32106
Screenshots
Additional Context
My project is inspired from those examples but I made it more simple (for my own usage). Here are my files : https://gist.github.com/BDelacour/9393e6614bc3b1400333e53b93fff934
The text was updated successfully, but these errors were encountered: