Created
November 17, 2024 22:22
-
-
Save carlosonunez/b10049ba3339da9400d51fe2ae02cf2c to your computer and use it in GitHub Desktop.
Packer `efi_mode=false` issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2024/11/17 16:08:39 [INFO] Packer version: 1.9.4 [go1.21.1 darwin arm64] | |
2024/11/17 16:08:39 [TRACE] discovering plugins in | |
2024/11/17 16:08:39 [TRACE] discovering plugins in /opt/homebrew/bin | |
2024/11/17 16:08:39 [INFO] Discovered potential plugin: qemu = /opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 | |
2024/11/17 16:08:39 [INFO] Discovered potential plugin: vagrant = /opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 | |
2024/11/17 16:08:39 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin | |
2024/11/17 16:08:39 [INFO] found external [-packer-default-plugin-name-] builders from vagrant plugin | |
2024/11/17 16:08:39 [INFO] found external [-packer-default-plugin-name- cloud registry] post-processors from vagrant plugin | |
2024/11/17 16:08:39 [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2024/11/17 16:08:39 [INFO] PACKER_CONFIG env var set; attempting to open config file: /Users/cn/.packerconfig | |
2024/11/17 16:08:39 [WARN] Config file doesn't exist: /Users/cn/.packerconfig | |
2024/11/17 16:08:39 [INFO] Setting cache directory: /Users/cn/.cache/packer | |
2024/11/17 16:08:39 [TRACE] listing potential installations for "github.com/hashicorp/qemu" that match "1.1.0". plugingetter.ListInstallationsOptions{FromFolders:[]string{"", "/opt/homebrew/bin"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"darwin", ARCH:"arm64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0x14000160180)}}}} | |
2024/11/17 16:08:39 [TRACE] Found the following "github.com/hashicorp/qemu" installations: [{/opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 v1.1.0}] | |
2024/11/17 16:08:39 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin | |
2024/11/17 16:08:39 [TRACE] listing potential installations for "github.com/hashicorp/vagrant" that match "~> 1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"", "/opt/homebrew/bin"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"darwin", ARCH:"arm64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0x14000160180)}}}} | |
2024/11/17 16:08:39 [TRACE] Found the following "github.com/hashicorp/vagrant" installations: [{/opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 v1.1.5}] | |
2024/11/17 16:08:39 [INFO] found external [-packer-default-plugin-name-] builders from vagrant plugin | |
2024/11/17 16:08:39 [INFO] found external [-packer-default-plugin-name- cloud registry] post-processors from vagrant plugin | |
2024/11/17 16:08:39 [TRACE] validateValue: not active for ignition_file, so skipping | |
2024/11/17 16:08:39 [TRACE] validateValue: not active for test_subnet, so skipping | |
2024/11/17 16:08:39 [TRACE] validateValue: not active for test_subnet_dhcp_start, so skipping | |
2024/11/17 16:08:39 [INFO] Starting external plugin /opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 start builder -packer-default-plugin-name- | |
2024/11/17 16:08:39 Starting plugin: /opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 []string{"/opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64", "start", "builder", "-packer-default-plugin-name-"} | |
2024/11/17 16:08:39 Waiting for RPC address for: /opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Plugin address: unix /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin1207178531 | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Waiting for connection... | |
2024/11/17 16:08:39 Received unix RPC address for /opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64: addr is /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin1207178531 | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Serving a plugin connection... | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 [TRACE] starting builder -packer-default-plugin-name- | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 use specified accelerator: hvf | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 MemorySize 0 is too small, using default: 512 | |
2024/11/17 16:08:39 [INFO] Starting internal plugin packer-provisioner-file | |
2024/11/17 16:08:39 Starting plugin: /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer []string{"/opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer", "plugin", "packer-provisioner-file"} | |
2024/11/17 16:08:39 Waiting for RPC address for: /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer | |
2024/11/17 16:08:39 packer-provisioner-file plugin: [INFO] Packer version: 1.9.4 [go1.21.1 darwin arm64] | |
2024/11/17 16:08:39 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2024/11/17 16:08:39 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /Users/cn/.packerconfig | |
2024/11/17 16:08:39 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /Users/cn/.packerconfig | |
2024/11/17 16:08:39 packer-provisioner-file plugin: [INFO] Setting cache directory: /Users/cn/.cache/packer | |
2024/11/17 16:08:39 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"} | |
2024/11/17 16:08:39 Received unix RPC address for /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer: addr is /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin3979443526 | |
2024/11/17 16:08:39 packer-provisioner-file plugin: Plugin address: unix /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin3979443526 | |
2024/11/17 16:08:39 packer-provisioner-file plugin: Waiting for connection... | |
2024/11/17 16:08:39 packer-provisioner-file plugin: Serving a plugin connection... | |
2024/11/17 16:08:39 [INFO] Starting internal plugin packer-provisioner-shell | |
2024/11/17 16:08:39 Starting plugin: /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer []string{"/opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer", "plugin", "packer-provisioner-shell"} | |
2024/11/17 16:08:39 Waiting for RPC address for: /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: [INFO] Packer version: 1.9.4 [go1.21.1 darwin arm64] | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /Users/cn/.packerconfig | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /Users/cn/.packerconfig | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: [INFO] Setting cache directory: /Users/cn/.cache/packer | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"} | |
2024/11/17 16:08:39 Received unix RPC address for /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer: addr is /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin3845352593 | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: Plugin address: unix /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin3845352593 | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: Waiting for connection... | |
2024/11/17 16:08:39 packer-provisioner-shell plugin: Serving a plugin connection... | |
2024/11/17 16:08:39 [INFO] Starting external plugin /opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 start post-processor -packer-default-plugin-name- | |
2024/11/17 16:08:39 Starting plugin: /opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 []string{"/opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64", "start", "post-processor", "-packer-default-plugin-name-"} | |
2024/11/17 16:08:39 Waiting for RPC address for: /opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 | |
2024/11/17 16:08:39 packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Plugin address: unix /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin256190463 | |
2024/11/17 16:08:39 packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Waiting for connection... | |
2024/11/17 16:08:39 Received unix RPC address for /opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64: addr is /var/folders/6g/7hnkvj7514953dqrtsv2rfgc0000gn/T/packer-plugin256190463 | |
2024/11/17 16:08:39 packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Serving a plugin connection... | |
2024/11/17 16:08:39 packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 [TRACE] starting post-processor -packer-default-plugin-name- | |
2024/11/17 16:08:39 Build debug mode: false | |
2024/11/17 16:08:39 Force build: false | |
2024/11/17 16:08:39 On error: | |
2024/11/17 16:08:39 Waiting on builds to complete... | |
2024/11/17 16:08:39 Starting build run: qemu.machine | |
2024/11/17 16:08:39 Running builder: | |
2024/11/17 16:08:39 [INFO] (telemetry) Starting builder qemu.machine | |
[1;32mqemu.machine: output will be in this color.[0m | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Qemu path: /opt/homebrew/bin/qemu-system-aarch64, Qemu Image path: /opt/homebrew/bin/qemu-img | |
[1;32m==> qemu.machine: Retrieving ISO[0m | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Acquiring lock for: https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/aarch64/alpine-standard-3.20.3-aarch64.iso?checksum=md5%3A7d6f065d18af54c3686dceae51235661 (/Users/cn/.cache/packer/ed3bca62fd625c28471aba9ec336e117157a982c.iso.lock) | |
[1;32m==> qemu.machine: Trying https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/aarch64/alpine-standard-3.20.3-aarch64.iso[0m | |
[1;32m==> qemu.machine: Trying https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/aarch64/alpine-standard-3.20.3-aarch64.iso?checksum=md5%3A7d6f065d18af54c3686dceae51235661[0m | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Leaving retrieve loop for ISO | |
[1;32m==> qemu.machine: https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/aarch64/alpine-standard-3.20.3-aarch64.iso?checksum=md5%3A7d6f065d18af54c3686dceae51235661 => /Users/cn/.cache/packer/ed3bca62fd625c28471aba9ec336e117157a982c.iso[0m | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 No floppy files specified. Floppy disk will not be made. | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 No CD files specified. CD disk will not be made. | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 [INFO] Creating disk with Path: out/test and Size: 5G | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Executing qemu-img: []string{"create", "-f", "qcow2", "out/test", "5G"} | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 stdout: Formatting 'out/test', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=5368709120 lazy_refcounts=off refcount_bits=16 | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 stderr: | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444 | |
2024/11/17 16:08:39 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:39 Found available port: 3573 on IP: 127.0.0.1 | |
[1;32m==> qemu.machine: Found port for communicator (SSH, WinRM, etc): 3573.[0m | |
[1;32m==> qemu.machine: Creating temporary RSA SSH key for instance...[0m | |
[1;32m==> qemu.machine: Looking for available port between 5900 and 6000 on 127.0.0.1[0m | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Looking for available port between 5900 and 6000 on 127.0.0.1 | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Found available port: 5904 on IP: 127.0.0.1 | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Found available VNC port: 5904 on IP: 127.0.0.1 | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Qemu --version output: QEMU emulator version 9.0.0 | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Qemu version: 9.0.0 | |
[1;32m==> qemu.machine: Starting VM, booting from CD-ROM[0m | |
qemu.machine: view the screen of the VM, connect via VNC without a password to | |
qemu.machine: vnc://127.0.0.1:5904[0m | |
[0;32m qemu.machine: The VM will be run headless, without a GUI. If you want to | |
qemu.machine: view the screen of the VM, connect via VNC without a password to | |
qemu.machine: vnc://127.0.0.1:5904[0m | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Qemu Builder has no floppy files, not attaching a floppy. | |
[1;32m==> qemu.machine: Overriding default Qemu arguments with qemuargs template option...[0m | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Executing /opt/homebrew/bin/qemu-system-aarch64: []string{"-netdev", "user,id=user.0,hostfwd=tcp::3573-:22", "-vnc", "127.0.0.1:4", "-m", "512M", "-bios", "/opt/homebrew/share/qemu/edk2-aarch64-code.fd", "-machine", "type=virt,accel=hvf", "-drive", "file=out/test,if=virtio,cache=writeback,discard=ignore,format=qcow2", "-drive", "file=/Users/cn/.cache/packer/ed3bca62fd625c28471aba9ec336e117157a982c.iso,media=cdrom", "-smp", "4,sockets=1,cores=4,threads=1", "-name", "test", "-boot", "-device", "virtio-gpu", "-device", "virtio-scsi-pci,id=scsi-bus", "-device", "virtio-net,netdev=user.0"} | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Started Qemu. Pid: 13774 | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 Qemu stderr: qemu-system-aarch64: virtio-gpu: drive with bus=0, unit=0 (index=0) exists | |
[1;31m==> qemu.machine: Error launching VM: Qemu failed to start. Please run with PACKER_LOG=1 to get more info.[0m | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 failed to unlock port lockfile: close tcp 127.0.0.1:5904: use of closed network connection | |
2024/11/17 16:08:42 packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64 plugin: 2024/11/17 16:08:42 failed to unlock port lockfile: close tcp 127.0.0.1:3573: use of closed network connection | |
[1;32m==> qemu.machine: Deleting output directory...[0m | |
2024/11/17 16:08:42 [INFO] (telemetry) ending qemu.machine | |
==> Wait completed after 2 seconds 962 milliseconds | |
2024/11/17 16:08:42 machine readable: error-count []string{"1"} | |
==> Some builds didn't complete successfully and had errors: | |
2024/11/17 16:08:42 machine readable: qemu.machine,error []string{"Build was halted."} | |
==> Builds finished but no artifacts were created. | |
[1;31mBuild 'qemu.machine' errored after 2 seconds 962 milliseconds: Build was halted.[0m | |
==> Wait completed after 2 seconds 962 milliseconds | |
2024/11/17 16:08:42 [INFO] (telemetry) Finalizing. | |
==> Some builds didn't complete successfully and had errors: | |
--> qemu.machine: Build was halted. | |
==> Builds finished but no artifacts were created. | |
2024/11/17 16:08:42 waiting for all plugin processes to complete... | |
2024/11/17 16:08:42 /opt/homebrew/bin/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.5_x5.0_darwin_arm64: plugin process exited | |
2024/11/17 16:08:42 /opt/homebrew/bin/github.com/hashicorp/qemu/packer-plugin-qemu_v1.1.0_x5.0_darwin_arm64: plugin process exited | |
2024/11/17 16:08:42 /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer: plugin process exited | |
2024/11/17 16:08:42 /opt/homebrew/Cellar/packer/1.9.4/libexec/bin/packer: plugin process exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment