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

Allow ISO files larger than 4GiB #177

Open
jess-sol opened this issue Apr 25, 2023 · 0 comments
Open

Allow ISO files larger than 4GiB #177

jess-sol opened this issue Apr 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jess-sol
Copy link

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

Right now due to how mkisofs is called, it's impossible to have files larger than 4GiB in the generated ISO. Consider adding -iso-level 4 which would allow arbitrary file sizes. It may make sense to automatically try -iso-level 4 if the previous attempt without it fails, this way it's backwards compatible.

Use Case(s)

I'm building a Packer file for Windows and need to upload some large installers. Due to the issues with WinRM transferring large files I'm left with the options of HTTP/SSH or CDROM. The CDROM/ISO option is the fastest by far, but doesn't support large files. This would fix that.

Potential configuration

source "qemu" "builder" {
  vm_name          = "windows_2012"
  boot_wait        = "0s"
  accelerator      = "kvm"
  communicator     = "winrm"
  format           = "qcow2"
  cpus             = 2
  disk_size        = var.disk_size
  memory           = var.memory
  headless         = var.headless
  iso_url          = var.iso_url
  iso_checksum     = var.iso_checksum
  shutdown_command = "a:/sysprep.bat"
  output_directory = "dist"
  qemuargs = [
    ["-drive", "file=dist/{{ .Name }},if=virtio,cache=writeback,discard=ignore,format=qcow2,index=1"],
  ]
  winrm_username   = "vagrant"
  winrm_password   = "vagrant"
  winrm_timeout    = var.winrm_timeout
  cd_files = ["large_installer.zip"]
}

Potential References

@jess-sol jess-sol added the enhancement New feature or request label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant