Skip to content

Instantly share code, notes, and snippets.

@gebailey
Created October 18, 2023 01:04
Show Gist options
  • Save gebailey/03a39a43fd5921284c4c7bd247b09db2 to your computer and use it in GitHub Desktop.
Save gebailey/03a39a43fd5921284c4c7bd247b09db2 to your computer and use it in GitHub Desktop.
vagrant 2.4.0 downloads wrong box version
C:\Users\gbailey\a9>vagrant init gbailey/amzn2
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.
C:\Users\gbailey\a9>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'gbailey/amzn2' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'gbailey/amzn2'
default: URL: https://vagrantcloud.com/api/v2/vagrant/gbailey/amzn2
==> default: Adding box 'gbailey/amzn2' (v20230914.0.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/gbailey/boxes/amzn2/versions/20230914.0.0/providers/virtualbox/unknown/vagrant.box
default:
default: Calculating and comparing box checksum...
==> default: Successfully added box 'gbailey/amzn2' (v20230914.0.0) for 'virtualbox'!
==> default: Importing base box 'gbailey/amzn2'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'gbailey/amzn2' version '20230914.0.0' is up to date...
==> default: Setting the name of the VM: a9_default_1697590583302_2360
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:
https://www.virtualbox.org/manual/ch04.html#sharedfolders
This option can be disabled globally with an environment variable:
VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
or on a per folder basis within the Vagrantfile:
config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
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!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/gbailey/a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment