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

Panic on generateProxmoxDisks() #300

Open
stepanovdg opened this issue Nov 11, 2024 · 1 comment
Open

Panic on generateProxmoxDisks() #300

stepanovdg opened this issue Nov 11, 2024 · 1 comment
Labels

Comments

@stepanovdg
Copy link

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

Overview of the Issue

crash while preparing cidata iso.

Reproduction Steps

int and build

Plugin and Packer version

2024/11/11 06:17:24 [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64] Docker image running from github actions.
version = ">= 1.2.1" for plugin

Simplified Packer Buildfile

source "proxmox-iso" "ubuntu-noble-iso" {
  boot_iso {
    iso_checksum = var.images[local.image_id].checksum
    # iso_urls = var.images["noble"].urls # - Will download the iso from the internet
    # iso_url     = var.images["noble"].url
    # iso_download_pve = true

    # iso_target_path
    # iso_target_extension
    type         = "ide" # Can be ide, sata or scsi
    # index # Bus index
    #iso_file =
    iso_file = local.iso_file
    # iso_file = "TNAS-ISO:iso/ubuntu-24.04.1-live-server-amd64.iso"
    iso_storage_pool = "${var.images[local.image_id].iso_storage_pool}"
    unmount = true
  }

  additional_iso_files {
    type         = "ide" # Can be ide, sata or scsi
    unmount          = true
    cd_files = ["./cidata/*"]
    # cd_content = {
    #   "meta-data" = jsonencode(local.instance_data)
    #   "user-data" = templatefile("user-data", { packages = ["nginx"] })
    # }
    cd_label         = "cidata"
    iso_storage_pool = var.storage.iso_pool
  }


  boot_key_interval = local.boot_key_interval

  # Proxmox Connection Settings
  proxmox_url              = var.cluster.url
  username                 = var.cluster.username
  token                    = var.cluster.token
  node                     = var.cluster.node
  # pool = var.storage.pool
  # (Optional) Skip TLS Verification
  insecure_skip_tls_verify = true

  task_timeout = local.task_timeout

  vm_name = local.vm_name
  vm_id   = local.vm_id

  tags = local.tags
  # boot = "order=virtio0;ide2;net0"

  memory = local.memory
  # ballooning_minimum = "0"
  cores    = local.cores
  cpu_type = "host"
  sockets  = local.sockets
  numa = false

  # VM OS Settings
  os = "l26"

  bios = "seabios" # Can be seabios or ovmf
  # machine = "q35"
  # efi_config {
  #   efi_storage_pool = "local-lvm"
  #   efi_type = "4m"
  #   pre_enrolled_keys = true
  # }

  # tpm_config {
  #   tpm_version = "tpm2"
  #   tpm_device = "tpm"
  # }

  network_adapters {
    model    = "virtio"
    bridge   = var.network.bridge
    firewall = false
    vlan_tag = var.network.tag
  }

  disks {
    disk_size = local.disk_size
    format    = var.storage.format
    storage_pool = var.storage.pool
    # storage_pool_type = var.storage.pool_type
    type      = "virtio"
    # cache_mode = "writeback" # Can be none, writethrough, writeback, unsafe or directsync. Defaults to none
    # io_thread = true
    # asyncio = io_uring # Can be native, threads, or io_uring. Defaults to io_uring.
    # exclude_from_backup = true
    # discard = true
    # ssd = true
  }

  # pci_devices {
  #   bus = "0x00"
  #   slot = "0x0a"
  #   function = "0x0"
  # }
  # serials {
  #   bus = "0x00"
  #   slot = "0x0a"
  #   function = "0x0"
  # }
  qemu_agent = true # Enable QEMU Guest Agent qemu-guest-agent have to be installed on the guest
  scsi_controller = "virtio-scsi-pci"
  # Can be lsi, lsi53c810, virtio-scsi-pci, virtio-scsi-single, megasas, or pvscsi. Defaults to lsi.
  onboot = false
  # disable_kvm = false
  template_name           = local.template_name
  template_description    = local.template_description
  # cloud_init              = true
  # cloud_init_storage_pool = local.cloud_init_storage_pool
  # cloud_init_disk_type    = "sata"
  # additional_iso_files = ["./files/99-pve.cfg"]
  # vm_interface = "virtio"
  # qemu_additional_args = ["-machine", "type=q35"]


  communicator         = "ssh"
  ssh_username         = var.credentials.username
  ssh_timeout = local.ssh_timeout
  #  ssh_password = var.credentials.password
  ssh_private_key_file = "${var.dir}/${var.credentials.user_ssh_private_path}"

  boot_command = [
    "<esc><esc><esc><esc>e<wait>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del>",
    "<del><del><del><del><del><del><del><del><del>",
    "linux /casper/vmlinuz --- autoinstall s=/cidata/<enter><wait>",
    "initrd /casper/initrd<enter><wait>",
    "boot<enter>",
    "<enter><f10><wait>"
  ]
}

Operating system and Environment details

OS, Architecture, and any other information you can provide about the
environment.

Log Fragments and crash.log files

+ packer init -upgrade .
2024/11/11 06:17:24 [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:24 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:24 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:24 [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:24 [INFO] Setting cache directory: /root/.cache/packer
e: Running in background, not using a TTY
2024/11/11 06:17:24 [TRACE] init: plugingetter.ListInstallationsOptions{PluginDirectory:"/root/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc0008a9280)}}, ReleasesOnly:true}}
2024/11/11 06:17:24 [TRACE] listing potential installations for "github.com/hashicorp/proxmox" that match ">= 1.2.1". plugingetter.ListInstallationsOptions{PluginDirectory:"/root/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc0008a9280)}}, ReleasesOnly:true}}
2024/11/11 06:17:24 Directory "/root/.config/packer/plugins/github.com/hashicorp" does not exist, the plugin likely isn't installed locally yet.
2024/11/11 06:17:24 [TRACE] getting available versions for the github.com/hashicorp/proxmox plugin
2024/11/11 06:17:24 [WARNING] github-getter: no GitHub token set, if you intend to install plugins often, please set the PACKER_GITHUB_API_TOKEN env var
2024/11/11 06:17:24 [DEBUG] github-getter: getting "https://api.github.com/repos/hashicorp/packer-plugin-proxmox/git/matching-refs/tags"
2024/11/11 06:17:24 [DEBUG] will try to install: [1.2.1]
2024/11/11 06:17:24 [TRACE] fetching checksums file for the "1.2.1" version of the github.com/hashicorp/proxmox plugin in "/root/.config/packer/plugins/github.com/hashicorp/proxmox"...
2024/11/11 06:17:24 [DEBUG] github-getter: getting "https://github.com/hashicorp/packer-plugin-proxmox/releases/download/v1.2.1/packer-plugin-proxmox_v1.2.1_SHA256SUMS"
2024/11/11 06:17:25 [TRACE] About to get: packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64.zip
2024/11/11 06:17:25 [DEBUG] github-getter: getting "https://github.com/hashicorp/packer-plugin-proxmox/releases/download/v1.2.1/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64.zip"
2024/11/11 06:17:27 [TRACE] listing potential installations for "github.com/hashicorp/ansible" that match ">= 1.0.3". plugingetter.ListInstallationsOptions{PluginDirectory:"/root/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc0008a9280)}}, ReleasesOnly:true}}
2024/11/11 06:17:27 [TRACE] getting available versions for the github.com/hashicorp/ansible plugin
2024/11/11 06:17:27 [DEBUG] github-getter: getting "https://api.github.com/repos/hashicorp/packer-plugin-ansible/git/matching-refs/tags"
Installed plugin github.com/hashicorp/proxmox v1.2.1 in "/root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64"
2024/11/11 06:17:27 [DEBUG] will try to install: [1.1.2 1.1.1 1.1.0 1.0.4 1.0.3]
2024/11/11 06:17:27 [TRACE] fetching checksums file for the "1.1.2" version of the github.com/hashicorp/ansible plugin in "/root/.config/packer/plugins/github.com/hashicorp/ansible"...
2024/11/11 06:17:27 [DEBUG] github-getter: getting "https://github.com/hashicorp/packer-plugin-ansible/releases/download/v1.1.2/packer-plugin-ansible_v1.1.2_SHA256SUMS"
2024/11/11 06:17:28 [TRACE] About to get: packer-plugin-ansible_v1.1.2_x5.0_linux_amd64.zip
2024/11/11 06:17:28 [DEBUG] github-getter: getting "https://github.com/hashicorp/packer-plugin-ansible/releases/download/v1.1.2/packer-plugin-ansible_v1.1.2_x5.0_linux_amd64.zip"
Installed plugin github.com/hashicorp/ansible v1.1.2 in "/root/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.2_x5.0_linux_amd64"
2024/11/11 06:17:30 [INFO] (telemetry) Finalizing.
2024/11/11 06:17:30 waiting for all plugin processes to complete...
+ packer build --force -var-file=/workspace/family/packer/env/proxmox.pkvars.hcl -var=pve_cfg=/workspace/family/packer/templates/ubuntu/noble/files/99-pve.cfg .
2024/11/11 06:17:30 [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:30 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:30 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:30 [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:30 [INFO] Setting cache directory: /root/.cache/packer
e: Running in background, not using a TTY
2024/11/11 06:17:30 [TRACE] listing potential installations for "github.com/hashicorp/proxmox" that match ">= 1.2.1". plugingetter.ListInstallationsOptions{PluginDirectory:"/root/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc0007d2180)}}, ReleasesOnly:false}}
2024/11/11 06:17:31 [TRACE] Found the following "github.com/hashicorp/proxmox" installations: [{/root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 v1.2.1 x5.0}]
2024/11/11 06:17:31 [INFO] found external [-packer-default-plugin-name- clone iso] builders from name plugin
2024/11/11 06:17:31 [TRACE] listing potential installations for "github.com/hashicorp/ansible" that match ">= 1.0.3". plugingetter.ListInstallationsOptions{PluginDirectory:"/root/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc0007d2180)}}, ReleasesOnly:false}}
2024/11/11 06:17:32 [TRACE] Found the following "github.com/hashicorp/ansible" installations: [{/root/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.2_x5.0_linux_amd64 v1.1.2 x5.0}]
2024/11/11 06:17:32 found external [-packer-default-plugin-name- local] provisioner from ansible plugin
2024/11/11 06:17:32 [TRACE] listing potential installations for <nil> that match "". plugingetter.ListInstallationsOptions{PluginDirectory:"/root/.config/packer/plugins", BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc00014a680)}}, ReleasesOnly:false}}
2024/11/11 06:17:33 found external [-packer-default-plugin-name- local] provisioner from ansible plugin
2024/11/11 06:17:33 [INFO] found external [-packer-default-plugin-name- clone iso] builders from proxmox plugin
2024/11/11 06:17:33 [TRACE] validateValue: not active for network, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for scripts, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for pve_cfg, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for credentials, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for dir, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for images, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for cluster, so skipping
2024/11/11 06:17:33 [TRACE] validateValue: not active for storage, so skipping
2024/11/11 06:17:33 [INFO] Starting external plugin /root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 start builder iso
2024/11/11 06:17:33 Starting plugin: /root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 []string{"/root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64", "start", "builder", "iso"}
2024/11/11 06:17:33 Waiting for RPC address for: /root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Plugin address: unix /tmp/packer-plugin2942804974
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Waiting for connection...
2024/11/11 06:17:33 Received unix RPC address for /root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64: addr is /tmp/packer-plugin2942804974
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Serving a plugin connection...
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 [TRACE] starting builder iso
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Disk 0 cache mode not set, using default 'none'
2024/11/11 06:17:33 [INFO] Starting internal plugin packer-provisioner-shell
2024/11/11 06:17:33 Starting plugin: /bin/packer []string{"/bin/packer", "execute", "packer-provisioner-shell"}
2024/11/11 06:17:33 Waiting for RPC address for: /bin/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2024/11/11 06:17:33 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin1386384567
2024/11/11 06:17:33 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin1386384567
2024/11/11 06:17:33 packer-provisioner-shell plugin: Waiting for connection...
2024/11/11 06:17:33 packer-provisioner-shell plugin: Serving a plugin connection...
2024/11/11 06:17:33 [INFO] Starting internal plugin packer-provisioner-shell
2024/11/11 06:17:33 Starting plugin: /bin/packer []string{"/bin/packer", "execute", "packer-provisioner-shell"}
2024/11/11 06:17:33 Waiting for RPC address for: /bin/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2024/11/11 06:17:33 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin360645474
2024/11/11 06:17:33 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin360645474
2024/11/11 06:17:33 packer-provisioner-shell plugin: Waiting for connection...
2024/11/11 06:17:33 packer-provisioner-shell plugin: Serving a plugin connection...
2024/11/11 06:17:33 [INFO] Starting internal plugin packer-provisioner-file
2024/11/11 06:17:33 Starting plugin: /bin/packer []string{"/bin/packer", "execute", "packer-provisioner-file"}
2024/11/11 06:17:33 Waiting for RPC address for: /bin/packer
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/11/11 06:17:33 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2024/11/11 06:17:33 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin3453213541
2024/11/11 06:17:33 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin3453213541
2024/11/11 06:17:33 packer-provisioner-file plugin: Waiting for connection...
2024/11/11 06:17:33 packer-provisioner-file plugin: Serving a plugin connection...
2024/11/11 06:17:33 [INFO] Starting internal plugin packer-provisioner-file
2024/11/11 06:17:33 Starting plugin: /bin/packer []string{"/bin/packer", "execute", "packer-provisioner-file"}
2024/11/11 06:17:33 Waiting for RPC address for: /bin/packer
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-file plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/11/11 06:17:33 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2024/11/11 06:17:33 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin2629764689
2024/11/11 06:17:33 packer-provisioner-file plugin: Waiting for connection...
2024/11/11 06:17:33 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin2629764689
2024/11/11 06:17:33 packer-provisioner-file plugin: Serving a plugin connection...
2024/11/11 06:17:33 [INFO] Starting internal plugin packer-provisioner-shell
2024/11/11 06:17:33 Starting plugin: /bin/packer []string{"/bin/packer", "execute", "packer-provisioner-shell"}
2024/11/11 06:17:33 Waiting for RPC address for: /bin/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2024/11/11 06:17:33 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin4112249422
2024/11/11 06:17:33 packer-provisioner-shell plugin: Waiting for connection...
2024/11/11 06:17:33 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin4112249422
2024/11/11 06:17:33 packer-provisioner-shell plugin: Serving a plugin connection...
2024/11/11 06:17:33 [INFO] Starting internal plugin packer-provisioner-shell
2024/11/11 06:17:33 Starting plugin: /bin/packer []string{"/bin/packer", "execute", "packer-provisioner-shell"}
2024/11/11 06:17:33 Waiting for RPC address for: /bin/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Packer version: 1.11.2 [go1.21.12 linux amd64]
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2024/11/11 06:17:33 packer-provisioner-shell plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/11/11 06:17:33 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2024/11/11 06:17:33 Received unix RPC address for /bin/packer: addr is /tmp/packer-plugin2772556611
2024/11/11 06:17:33 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin2772556611
2024/11/11 06:17:33 packer-provisioner-shell plugin: Waiting for connection...
2024/11/11 06:17:33 packer-provisioner-shell plugin: Serving a plugin connection...
ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: output will be in this color.
2024/11/11 06:17:33 Build debug mode: false
2024/11/11 06:17:33 Force build: true
2024/11/11 06:17:33 On error: 
2024/11/11 06:17:33 Waiting on builds to complete...
2024/11/11 06:17:33 Starting build run: ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso
2024/11/11 06:17:33 Running builder: proxmox-iso
2024/11/11 06:17:33 [INFO] (telemetry) Starting builder proxmox-iso.ubuntu-noble-iso
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 using token auth
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 No CD files specified. CD disk will not be made.
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 No URLs were provided to Step Download. Continuing...
==> ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Creating CD disk...
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 CD label is set to cidata
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 CD path: /tmp/packer150466876.iso
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Wrote 0 bytes to meta-data
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Wrote 1423 bytes to user-data
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 Executing: /usr/bin/xorriso [-as genisoimage -rock -joliet -volid cidata -output /tmp/packer150466876.iso /tmp/packer_to_cdrom4069845753]
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: xorriso 1.5.6 : RockRidge filesystem manipulator, libburnia project.
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Drive current: -outdev 'stdio:/tmp/packer150466876.iso'
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Media current: stdio file, overwriteable
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Media status : is blank
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Media summary: 0 sessions, 0 data blocks, 0 data, 4096g free
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Added to ISO image: directory '/'='/tmp/packer_to_cdrom4069845753'
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: xorriso : UPDATE :       2 files added in 1 seconds
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: xorriso : UPDATE :       2 files added in 1 seconds
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: ISO image produced: 184 sectors
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Written to medium : 184 sectors at LBA 0
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Writing to 'stdio:/tmp/packer150466876.iso' completed successfully.
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Done copying paths from CD_dirs
2024/11/11 06:17:33 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:33 No URLs were provided to Step Download. Continuing...
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Uploaded ISO to TNAS-ISO:iso/packer150466876.iso
2024/11/11 06:17:35 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:35 Mapping Disk to virtio0
    ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: Deleted generated ISO from TNAS-ISO:iso/packer150466876.iso
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 2024/11/11 06:17:38 Deleting CD disk: /tmp/packer150466876.iso
Build 'ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso' errored after 4 seconds 343 milliseconds: unexpected EOF
==> Wait completed after 4 seconds 343 milliseconds
==> Some builds didn't complete successfully and had errors:
--> ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: unexpected EOF
==> Builds finished but no artifacts were created.
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: panic: runtime error: index out of range [1] with length 1
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: goroutine 66 [running]:
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.generateProxmoxDisks({0xc000148380, 0x1, 0x2?}, {0xc00055c200, 0x2, 0x2?}, {0x0?, 0x0, 0x2?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:588 +0x213c
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*stepStartVM).Run(0xc0004fbf60, {0x11931fc?, 0xc00098e500?}, {0x1538568, 0xc0005294d0})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:110 +0x165
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-sdk/multistep.(*BasicRunner).Run(0xc0005295f0, {0x15387d0, 0xc00098e500}, {0x1538568, 0xc0005294d0})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/[email protected]/multistep/basic_runner.go:73 +0x2be
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*Builder).Run(0xc00030a800, {0x15387d0, 0xc00098e500}, {0x153dc78?, 0xc0005294a0}, {0x152c7c0?, 0xc000786a60}, {0x1538568?, 0xc0005294d0?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/builder.go:111 +0xeab
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso.(*Builder).Run(0xc000324000, {0x15387d0, 0xc00098e500}, {0x153dc78, 0xc0005294a0}, {0x152c7c0, 0xc000786a60})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso/builder.go:47 +0x357
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-sdk/rpc.(*BuilderServer).Run(0xc0001a1100, 0x1b8b20?, 0xc0001b8b00)
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/[email protected]/rpc/builder.go:120 +0x1c8
panic: runtime error: index out of range [1] with length 1
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: goroutine 66 [running]:
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.generateProxmoxDisks({0xc000148380, 0x1, 0x2?}, {0xc00055c200, 0x2, 0x2?}, {0x0?, 0x0, 0x2?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:588 +0x213c
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*stepStartVM).Run(0xc0004fbf60, {0x11931fc?, 0xc00098e500?}, {0x1538568, 0xc0005294d0})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/step_start_vm.go:110 +0x165
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-sdk/multistep.(*BasicRunner).Run(0xc0005295f0, {0x15387d0, 0xc00098e500}, {0x1538568, 0xc0005294d0})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/[email protected]/multistep/basic_runner.go:73 +0x2be
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common.(*Builder).Run(0xc00030a800, {0x15387d0, 0xc00098e500}, {0x153dc78?, 0xc0005294a0}, {0x152c7c0?, 0xc000786a60}, {0x1538568?, 0xc0005294d0?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/common/builder.go:111 +0xeab
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso.(*Builder).Run(0xc000324000, {0x15387d0, 0xc00098e500}, {0x153dc78, 0xc0005294a0}, {0x152c7c0, 0xc000786a60})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso/builder.go:47 +0x357
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-sdk/rpc.(*BuilderServer).Run(0xc0001a1100, 0x1b8b20?, 0xc0001b8b00)
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	github.com/hashicorp/[email protected]/rpc/builder.go:120 +0x1c8
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: reflect.Value.call({0xc0005c22a0?, 0xc000184660?, 0x13?}, {0x118cd52, 0x4}, {0xc000619ef8, 0x3, 0x3?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	reflect/value.go:596 +0xce7
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: reflect.Value.Call({0xc0005c22a0?, 0xc000184660?, 0x0?}, {0xc0003236f8?, 0x0?, 0x0?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	reflect/value.go:380 +0xb9
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: net/rpc.(*service).call(0xc0001a1600, 0x0?, 0x0?, 0xc0005ba060, 0xc000212b80, 0xc0002afd20?, {0xf8c460?, 0xc0001b8afc?, 0x0?}, {0xf5d5a0, ...}, ...)
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	net/rpc/server.go:382 +0x211
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: created by net/rpc.(*Server).ServeCodec in goroutine 1
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	net/rpc/server.go:479 +0x410
2024/11/11 06:17:38 [INFO] (telemetry) ending proxmox-iso.ubuntu-noble-iso
2024/11/11 06:17:38 ui error: Build 'ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso' errored after 4 seconds 343 milliseconds: unexpected EOF
2024/11/11 06:17:38 ui: 
==> Wait completed after 4 seconds 343 milliseconds
2024/11/11 06:17:38 machine readable: error-count []string{"1"}
2024/11/11 06:17:38 ui error: 
==> Some builds didn't complete successfully and had errors:
2024/11/11 06:17:38 machine readable: ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso,error []string{"unexpected EOF"}
2024/11/11 06:17:38 ui error: --> ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso: unexpected EOF
2024/11/11 06:17:38 ui: 
==> Builds finished but no artifacts were created.
2024/11/11 06:17:38 /root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64: plugin process exited
2024/11/11 06:17:38 [INFO] (telemetry) Finalizing.
2024/11/11 06:17:38 waiting for all plugin processes to complete...
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: reflect.Value.call({0xc0005c22a0?, 0xc000184660?, 0x13?}, {0x118cd52, 0x4}, {0xc000619ef8, 0x3, 0x3?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	reflect/value.go:596 +0xce7
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: reflect.Value.Call({0xc0005c22a0?, 0xc000184660?, 0x0?}, {0xc0003236f8?, 0x0?, 0x0?})
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	reflect/value.go:380 +0xb9
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: net/rpc.(*service).call(0xc0001a1600, 0x0?, 0x0?, 0xc0005ba060, 0xc000212b80, 0xc0002afd20?, {0xf8c460?, 0xc0001b8afc?, 0x0?}, {0xf5d5a0, ...}, ...)
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	net/rpc/server.go:382 +0x211
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: created by net/rpc.(*Server).ServeCodec in goroutine 1
2024/11/11 06:17:38 packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64 plugin: 	net/rpc/server.go:479 +0x410
2024/11/11 06:17:38 [INFO] (telemetry) ending proxmox-iso.ubuntu-noble-iso
==> Wait completed after 4 seconds 343 milliseconds
2024/11/11 06:17:38 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2024/11/11 06:17:38 machine readable: ubuntu-server-noble.proxmox-iso.ubuntu-noble-iso,error []string{"unexpected EOF"}
==> Builds finished but no artifacts were created.
2024/11/11 06:17:38 /root/.config/packer/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.2.1_x5.0_linux_amd64: plugin process exited
2024/11/11 06:17:38 [INFO] (telemetry) Finalizing.
2024/11/11 06:17:38 waiting for all plugin processes to complete...
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
2024/11/11 06:17:38 /bin/packer: plugin process exited
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Packer crashed! This is always indicative of a bug within Packer.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Packer[1] so that we can fix this.

Set the env var PACKER_LOG=1 for maximum log detail.

@stepanovdg stepanovdg added the bug label Nov 11, 2024
@stepanovdg
Copy link
Author

Appeared configuration iso_file
have to include :iso/ or will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant