Comments (11)
If if recall correctly, only specific GuestOS supported UEFI. During my testing I was able to get it to work with RHEL 8 (and Windows, too) but ai've not looked at it further after the issue with cloning was resolved in vSphere 7.0 Update 2.
We can plan to test this a little further and update the README accordingly.
Ryan
from packer-examples-for-vsphere.
Windows works like charm - 2016 and 2019.
But i didnt get it to work with Ubuntu nor Almalinux. :/
Thank you :)
from packer-examples-for-vsphere.
UEFI is not a recommend Firmware option for Ubuntu 64-bit in vSphere 7.0 Update 2. You can see this when creating a VM manually under VM Options. I've found that it will fail to boot if created manually with UEFI.
That said, it should work for RHEL (with the RHEL8 option as it's recommended for the default), and for CentOS, Alma, and Rocky (using the CentOS8 type) but I've not tested the latter (yet).
Ryan
from packer-examples-for-vsphere.
I recall that the issue for UEFI with RHEL-based that extra argument is needed in the boot sequence just like is needed for RHEL 8 with UEFI.
You'll need to edit the boot_command to add <wait><leftCtrlOn>x<leftCtrlOff><wait><enter>
boot_command = ["up","e","<down><down><end><wait>"," text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/${var.http_file}","<enter><wait><leftCtrlOn>x<leftCtrlOff>"]
My initial test today, whilst I have time, shows that it will continue but will pause just past at the selection of language. I'll look at this a little further when time permits.
Ryan
from packer-examples-for-vsphere.
Resolved in commit 260dbfc.
from packer-examples-for-vsphere.
Please note, we plan to update all guestOS types for machine images in this repository to use only their "(Recommended)" firmware settings based on vSphere version support in this repository per #22 now that vSphere 7.0 Update 2 has resolved the content library OVF issue. Commit 260dbfc is a precursor to this change.
from packer-examples-for-vsphere.
My initial test today, whilst I have time, shows that it will continue but will pause just past at the selection of language. I'll look at this a little further when time permits.
Did you solve this issue? Because i am facing the same problem
from packer-examples-for-vsphere.
Yes, use:
boot_command = ["up","e","<down><down><end><wait>"," text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/${var.http_file}","<enter><wait><leftCtrlOn>x<leftCtrlOff>"]
The README has been updated.
from packer-examples-for-vsphere.
Still leads to ...
or with your boot commend it stucks at
[ OK ] Reached target Basic System
from packer-examples-for-vsphere.
Please paste or giat your template and variables files. I'v confirmed efi-secure worked with the updated boot command which also does not launch the UI installer.
Ryan
from packer-examples-for-vsphere.
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.
from packer-examples-for-vsphere.
Related Issues (20)
- Simple solve for AlmaLinux 8 - Failed to validate GPG signature HOT 4
- Photon Build Failures HOT 8
- Server 2016 Needs HOT 3
- can't mount centos 7 iso HOT 3
- Not able to create Rhel-8 Image its getting timed out after IP allocation HOT 2
- PowerShell provisioner error on Windows 10 and 11 HOT 1
- Add Fedora Server Linux distribution HOT 7
- Add Amazon Linux distribution HOT 3
- Add Ubuntu Server 24.04 LTS HOT 1
- can't find product key from Unattended file HOT 1
- Windows 11 and 10 Evaluation builds fail to start HOT 3
- Ansible gather problem with Fedora 40 HOT 6
- Windows Server 2022 Failed to read ProducKey from unattend file HOT 2
- Windows Server 2025 wrong variables HOT 4
- WinRMOperationTimeoutError
- Correct a typo in builds/linux/ubuntu/24-04-lts/data/user-data.pkrtpl.hc HOT 1
- Add variable validation for build user case and length HOT 6
- WinRM Operation Timeout HOT 2
- Debian 12 instalation halts with the message that no network mirror was selected, and then fails if manually advanced. HOT 5
- Syntax error in one of the Linux ansible playbook HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-examples-for-vsphere.