You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ dart_vagrant git:(setup_packer) ✗ packer build .vagrant.this: output will be in this color.==> vagrant.this: Creating a Vagrantfile in the build directory...==> vagrant.this: Adding box using vagrant box add ... vagrant.this: (this can take some time if we need to download the box)==> vagrant.this: Calling Vagrant Up (this can take some time)...==> vagrant.this: destroying Vagrant box...==> vagrant.this: Deleting output directory...Build 'vagrant.this' errored after 5 minutes 31 seconds: error: SSH Port was not properly retrieved from SSHConfig.==> Wait completed after 5 minutes 31 seconds==> Some builds didn't complete successfully and had errors:--> vagrant.this: error: SSH Port was not properly retrieved from SSHConfig.==> Builds finished but no artifacts were created.
run vagrant locally
➜ vagrant init -m perk/ubuntu-2204-arm64A `Vagrantfile` has been placed in this directory. You are nowready to `vagrant up` your first virtual environment! Please readthe comments in the Vagrantfile as well as documentation on`vagrantup.com` for more information on using Vagrant.
➜ vagrant upThe provider 'qemu' could not be found, but was requested toback the machine 'default'. Please use a provider that exists.Vagrant knows about the following providers: docker, hyperv, virtualbox
➜ vagrant plugin install vagrant-qemuInstalling the 'vagrant-qemu' plugin. This can take a few minutes...Fetching vagrant-qemu-0.3.3.gemInstalled the plugin 'vagrant-qemu (0.3.3)'!
➜ vagrant upBringing machine 'default' up with 'qemu' provider...==> default: Box 'perk/ubuntu-2204-arm64' could not be found. Attempting to find and install... default: Box Provider: libvirt default: Box Version: >= 0==> default: Loading metadata for box 'perk/ubuntu-2204-arm64' default: URL: https://vagrantcloud.com/perk/ubuntu-2204-arm64==> default: Adding box 'perk/ubuntu-2204-arm64' (v20221101.1) for provider: libvirt default: Downloading: https://vagrantcloud.com/perk/boxes/ubuntu-2204-arm64/versions/20221101.1/providers/libvirt.box default: Calculating and comparing box checksum...==> default: Successfully added box 'perk/ubuntu-2204-arm64' (v20221101.1) for 'libvirt'!==> default: Checking if box 'perk/ubuntu-2204-arm64' version '20221101.1' is up to date...==> default: Importing a QEMU instance default: Creating and registering the VM... default: Successfully imported VM==> default: Warning! The QEMU provider doesn't support any of the Vagrant==> default: high-level network configurations (`config.vm.network`). They==> default: will be silently ignored.==> default: Starting the instance...==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:50022 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection reset. Retrying... default: Warning: Remote connection disconnect. Retrying... default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key...==> default: Machine booted and ready!
➜ vagrant sshWelcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-52-generic aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Fri Nov 11 12:09:54 UTC 2022 System load: 0.0 Usage of /: 2.4% of 61.84GB Memory usage: 4% Swap usage: 0% Processes: 95 Users logged in: 0 IPv4 address for eth0: 10.0.2.15 IPv6 address for eth0: fec0::5054:ff:fe12:34560 updates can be applied immediately.The list of available updates is more than a week old.To check for new updates run: sudo apt updatevagrant@ubuntu:~$ exitlogout
➜ vagrant destroy -f==> default: Stopping the instance...==> default: Destroying the instance...
second run
➜ packer build .vagrant.this: output will be in this color.==> vagrant.this: Creating a Vagrantfile in the build directory...==> vagrant.this: Adding box using vagrant box add ... vagrant.this: (this can take some time if we need to download the box)==> vagrant.this: Calling Vagrant Up (this can take some time)...==> vagrant.this: Using SSH communicator to connect: 127.0.0.1==> vagrant.this: Waiting for SSH to become available...==> vagrant.this: Connected to SSH!==> vagrant.this: Packaging box...==> vagrant.this: destroying Vagrant box...Build 'vagrant.this' finished after 7 minutes 22 seconds.==> Wait completed after 7 minutes 22 seconds==> Builds finished. The artifacts of successful builds are:--> vagrant.this: Vagrant box 'package.box' for 'qemu' provider
Plugin and Packer version
➜ packer --version1.8.4
vagrant={
version =">= 1.0.2"
source ="github.com/hashicorp/vagrant"
}
Simplified Packer Buildfile
Buildfile
packer{
required_plugins {
# see https://github.com/hashicorp/packer-plugin-vagrantvagrant={
version =">= 1.0.2"
source ="github.com/hashicorp/vagrant"
}
}
}
source"vagrant""this" {
communicator="ssh"# see https://app.vagrantup.com/perk/boxes/ubuntu-2204-arm64source_path="perk/ubuntu-2204-arm64"provider="qemu"add_force=true
}
build {
sources=[
"source.vagrant.this"
]
}
Overview of the Issue
first run of
packer build .
fails, but succeeds if run aftervagrant up
Reproduction Steps
setup
macos m1
w/ homebrew installedbrew install qemu
brew install --cask vagrant
vagrant plugin install vagrant-qemu
brew install packer
verify version
first run
run vagrant locally
second run
Plugin and Packer version
Simplified Packer Buildfile
Buildfile
Operating system and Environment details
neofetch
Logs
packerlog.txt
related issues
The text was updated successfully, but these errors were encountered: