-
Notifications
You must be signed in to change notification settings - Fork 333
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
Add support for disk-based deployment mode for Debian 11 #261
Comments
Discovery Context
locals {
# ... excluded for brevity ...
data_source_content = {
"/ks.cfg" = templatefile("${abspath(path.root)}/data/ks.pkrtpl.hcl", {
build_username = var.build_username
build_password_encrypted = var.build_password_encrypted
vm_guest_os_language = var.vm_guest_os_language
vm_guest_os_keyboard = var.vm_guest_os_keyboard
vm_guest_os_timezone = var.vm_guest_os_timezone
})
}
data_source_command = var.common_data_source == "http" ? "url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg" : "file=dev/sr1:/ks.cfg"
# ... excluded for brevity ... This will allow the OS to boot from the `.iso; however, two additional requirements are required:
boot_command = [
"c<wait>",
"linux /install.amd/vmlinuz",
" auto-install/enable=true",
" debconf/priority=critical",
" preseed/file=/mnt/cdrom2/ks.cfg<enter><wait>",
"initrd /install.amd/initrd.gz<enter><wait>",
"boot<enter><wait>",
"<leftAltOn><f2><leftAltOff>",
"<enter><wait>",
"mkdir /mnt/cdrom2<enter>",
"mount /dev/sr1 /mnt/cdrom2<enter>",
"<leftAltOn><f1><leftAltOff>",
"<enter><wait><enter>",
"<down><down><down><down><enter>"
]
d-i preseed/early_command string umount /mnt/cdrom2 && echo 1 > /sys/block/sr1/device/delete Note: It was observed in some initial testing that the use of the Ryan Johnson |
Hi, Tested here, it works. I did not need to pass the Regards |
@ukushisanet - Did you make the direct change or modify it to work based on the datasource selection? |
Sorry, but not sure to understand but yes it is based on datasource selection. My datasource content and command look like this:
I need to use the
The
And my
I can not use the
And it works like this. |
Excellent, thank you for the feedback in confirming that this works. If you'd like to make a contribution to the project based on the discover and your testing, please let me know. If not, that's okay, I plan to address it for the next release. Ryan Johnson |
I forgot the magic trick, the
I have modify a lot of things to fit my needs so it's difficult to commit my work directly but yes I can do the contribution. Let me some minutes. Regards |
Thanks, I suspected that this would be the path. For the contribution, you'll need to ensure that the Ryan |
The PR #272 is open for review. By the way, I can't reproduce the problem with the Everything is working fine for me, Cloud-init and Guest OS Customization. With
This is off-topic but since the issue is closed and I saw that Regards |
The issue in that comment is in regards to when the virtual machine is copied to a content library as an OVF Template. In this scenario, when Guest OS customizations are run using VM Tools the guest OS will be deterred and set to There is an override in the Ansible playbook that will enforce the setting needed in the VMware Tools configuration. This setting was added after root causing this with the engineer responsible for guest OS and customization. Ryan Johnson |
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. |
Code of Conduct
Description
Debian 11 was introduced to the project in the
v22.08
release with only support for HTTP-based deployment only.This issue will track the an enhancement for disk-based deployment support.
Use Case(s)
Support disk-based deployment.
Potential Configuration
To be determined.
References
CHANGELOG:
packer-examples-for-vsphere/CHANGELOG.md
Lines 28 to 30 in b8de167
GH-195
Mentions
cc @joisika
The text was updated successfully, but these errors were encountered: