Skip to content
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

vmware-iso need add hpet to vmx template #10824

Closed
aru-vmw opened this issue Mar 25, 2021 · 3 comments
Closed

vmware-iso need add hpet to vmx template #10824

aru-vmw opened this issue Mar 25, 2021 · 3 comments

Comments

@aru-vmw
Copy link

aru-vmw commented Mar 25, 2021

Overview of the Issue

vmware-iso builder is hardcoded a vmx template in

https://github.com/hashicorp/packer/blob/master/builder/vmware/iso/step_create_vmx.go

however, we noticed the hpet is missing from the template, which will result in some recent Windows releases behavior abnormally

for example, some Windows 10 will BSOD during reboot.
also some application unresponsive https://kb.vmware.com/s/article/67175

the VM created by VMware Product will add hpet by default.

VMware recommends enabling hpet to all VMware machine by setting

hpet0.present = "True"

in the vmx.

Reproduction Steps

Create a VM using vmware-iso builder,
and there is no 'hpet0.present = "True"' in the vmx
some recent Windows OS will BSOD during reboot.
after adding the hpet, the problem is gone.

Users can enable the hpet by themselves by adding it to vmx_data filed.

"vmx_data": {
"hpet0.present": "TRUE"
}
but it would be nice to have this setting as the default for vmware-iso builder.

Packer version

1.7.0

@aru-vmw aru-vmw added the bug label Mar 25, 2021
@justindemars
Copy link

I also discovered this when trying to build an image for Windows Server vNext. On the vNext boots they would immediately BSOD. Interestingly enough, on packer v1.7.0 the vm would reboot several times, BSOD on each boot and eventually (maybe after a ~dozen reboots it would eventually boot up into the OOBE and go about the build.
On Packer v1.6.1 which is used in our CI/CD pipeline, the build will have that initial BSOD and just become completely stuck there.
I've added this line to the vmx_data field and the issue appears to be cleared up now as well.

@ghost
Copy link

ghost commented Apr 22, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-vmware#16 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-vmware#16.

@ghost
Copy link

ghost commented May 23, 2021

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.

@ghost ghost locked as resolved and limited conversation to collaborators May 23, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants