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

plugin disappears from vagrant plugin list after running packer #28

Open
iapicca opened this issue Nov 11, 2022 · 1 comment
Open

plugin disappears from vagrant plugin list after running packer #28

iapicca opened this issue Nov 11, 2022 · 1 comment

Comments

@iapicca
Copy link

iapicca commented Nov 11, 2022

Overview of the Issue

cc @ppggff
after successfully installing the plugin it gets removed by the list of installed plugin after installing vagrant

Reproduction Steps

setup
  1. test on macos m1 w/ homebrew installed
  2. install qemu brew install qemu
  3. install Vagrant brew install --cask vagrant
  4. install vagrant-qemu plugin vagrant plugin install vagrant-qemu
verify version
vagrant plugin list
vagrant-qemu (0.3.3, global)vagrant --version
Vagrant 2.3.2brew install qemu

Warning: qemu 7.1.0 is already installed and up-to-date.
To reinstall 7.1.0, run:
brew reinstall qemu
run vagrant up
~ vagrant plugin list
No plugins installed.~ vagrant plugin install vagrant-qemu

Installing the 'vagrant-qemu' plugin. This can take a few minutes...
Fetching vagrant-qemu-0.3.3.gem
Installed the plugin 'vagrant-qemu (0.3.3)'!~ vagrant plugin list
vagrant-qemu (0.3.3, global)~ vagrant init -m perk/ubuntu-2204-arm64

A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.~ vagrant up

Bringing 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 destroy -f

==> default: Stopping the instance...
==> default: Destroying the instance...
run packer build
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 6 minutes 36 seconds: error: SSH Port was not properly retrieved from SSHConfig.

==> Wait completed after 6 minutes 36 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.
  • observe plugin disappeared
vagrant plugin list
No plugins installed.

Plugin and Vagrant version

vagrant --version
Vagrant 2.3.2

Operating system and Environment details

neofetch
                    'c.          yakforward@yakforward.local
               ,xNMM.          ---------------------------
             .OMMMMo           OS: macOS 13.0.1 22A400 arm64
             OMMM0,            Host: MacBookAir10,1
   .;loddo:' loolloddol;.      Kernel: 22.1.0
 cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 1 hour, 47 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 89 (brew)
XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8.1
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1440x900
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark)
.XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: iTerm2
.XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: Monaco 12
  kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1
   ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1
     .cooc,.    .,coo:.        Memory: 1187MiB / 8192MiB

Logs

no logs available, see related issue for packer buildfile

related issues

@ppggff
Copy link
Owner

ppggff commented Nov 12, 2022

Cannot reproduce the problem.

Please save the output of following command before and after packer build:

vagrant plugin list --debug
find ~/.vagrant.d/ -name "vagrant-qemu*"
cat ~/.vagrant.d/plugins.json
cat ~/.vagrant.d/bundler/global.sol

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

No branches or pull requests

2 participants