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

Can't use cd_files variable to send preseed with debian #11525

Closed
ZeikoFr opened this issue Jan 25, 2022 · 2 comments
Closed

Can't use cd_files variable to send preseed with debian #11525

ZeikoFr opened this issue Jan 25, 2022 · 2 comments

Comments

@ZeikoFr
Copy link

ZeikoFr commented Jan 25, 2022

Hi,

Not 100% sure if it's a packer issue or a lack of knowledge of my part, if it is my apologies.

Overview of the Issue

Using cd_files to create an iso containing a preseed file to auto install debian whiteout needing http server.

Packer properly create the iso and the second cd drive needed but when debian installer launch the preseed iso is on /dev/sr1 and it is not accessible because it's not mounted.
/cdrom is used by debian installer
Afaik you cannot mount anything else during automated setup until you get to the preseed part.

Reproduction Steps

Create a packer template with cd_files for debian
Installer will run until it can't found the preseed file because it does not auto mount /dev/sr1

Packer version

1.7.8

Simplified Packer Template

source "vmware-iso" "Debian-11.1-Template" {
  boot_command     = ["e<down><down><down><end>priority=critical auto=true file=/dev/sr1/preseed.cfg preseed-md5=5c7bd38f2916a9c8caf7a57899a688a3<leftCtrlOn>x<leftCtrlOff>"]
  iso_checksum     = "${var.iso_checksum}"
  iso_url          = "${var.iso_url}"
  cd_files = ["./http/debian/preseed.cfg"]
  cd_label = "cidata"
  }

Operating system and Environment details

I tried on vmware workstation and vmware vSphere from manjaro and ubuntu using the same version of packer

Got the exact same problem on both

Log Fragments and crash.log files

vmware-iso.Debian-11-Template: output will be in this color.

==> vmware-iso.Debian-11-Template: Trying https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.1.0-amd64-netinst.iso
==> vmware-iso.Debian-11-Template: Trying https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.1.0-amd64-netinst.iso?checksum=sha256%3A8488abc1361590ee7a3c9b00ec059b29dfb1da40f8ba4adf293c7a30fa943eb2
2022/01/25 20:19:26 packer-builder-vmware-iso plugin: Leaving retrieve loop for ISO
2022/01/25 20:19:26 packer-builder-vmware-iso plugin: No floppy files specified. Floppy disk will not be made.
2022/01/25 20:19:26 packer-builder-vmware-iso plugin: CD label is set to cidata
2022/01/25 20:19:26 packer-builder-vmware-iso plugin: CD path: /tmp/packer2545184248.iso
==> vmware-iso.Debian-11-Template: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.1.0-amd64-netinst.iso?checksum=sha256%3A8488abc1361590ee7a3c9b00ec059b29dfb1da40f8ba4adf293c7a30fa943eb2 => /home/zeiko/.cache/packer/bed3360a8849258231657d615579999ba9f47fc6.iso
2022/01/25 20:19:26 packer-builder-vmware-iso plugin: Wrote 7430 bytes to preseed.cfg
2022/01/25 20:19:26 packer-builder-vmware-iso plugin: Executing: /usr/bin/mkisofs [-joliet -volid cidata -o /tmp/packer2545184248.iso /tmp/packer_to_cdrom898500605]
==> vmware-iso.Debian-11-Template: Configuring output and export directories...
==> vmware-iso.Debian-11-Template: Creating CD disk...
    vmware-iso.Debian-11-Template: Warning: creating filesystem with (nonstandard) Joliet extensions
    vmware-iso.Debian-11-Template: but without (standard) Rock Ridge extensions.
    vmware-iso.Debian-11-Template: It is highly recommended to add Rock Ridge
    vmware-iso.Debian-11-Template: Setting input-charset to 'UTF-8' from locale.
    vmware-iso.Debian-11-Template: Total translation table size: 0
    vmware-iso.Debian-11-Template: Total rockridge attributes bytes: 0
    vmware-iso.Debian-11-Template: Total directory bytes: 0
    vmware-iso.Debian-11-Template: Path table size(bytes): 10
    vmware-iso.Debian-11-Template: Max brk space used 0
    vmware-iso.Debian-11-Template: 184 extents written (0 MB)
    vmware-iso.Debian-11-Template: Done copying paths from CD_dirs
@github-actions
Copy link

github-actions bot commented Feb 2, 2022

This issue has been migrated to hashicorp/packer-plugin-vmware#64 due to the Packer Plugin split.

Please follow the new issue for updates.

@github-actions
Copy link

github-actions bot commented Mar 5, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants