hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.16k stars 4.43k forks source link

vagrant cant ssh into the box during vagrant up #13189

Closed terminaldweller closed 1 year ago

terminaldweller commented 1 year ago

when I run the vagrant up, vagrant cant ssh into the VM. Though if i do ssh -i path_to_vagrant_insecure_key vagrant@box_ip while vagrant up is still trying to connect with ssh, i can successfully ssh into the box. Also here's the output of ruby version:

ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]

Debug output

https://gist.github.com/terminaldweller/b1fab1cf189361965fb3ed3cdfcfdc5d

Expected behavior

For vagrant up to be able to connect to the VM successfully

Actual behavior

vagrant cannot ssh into the VM

Reproduction information

Vagrant version

Vagrant 2.3.5

Host operating system

NAME="Void" ID="void" PRETTY_NAME="Void Linux" HOME_URL="https://voidlinux.org/" DOCUMENTATION_URL="https://docs.voidlinux.org/" LOGO="void-logo" ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"

Guest operating system

alpinel linux 3.17

Steps to reproduce

1.run vagrant up

Vagrantfile

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
# Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
Vagrant.require_version '>= 2.2.6'
Vagrant.configure('2') do |config|
  config.vm.box = 'generic/alpine317'
  config.vm.box_version = '4.2.14'
  config.vm.box_check_update = false
  config.vm.hostname = 'virt-ephemeral'

  config.vm.provider 'libvirt' do |libvirt|
    libvirt.storage_pool_name = 'ramdisk'
    libvirt.default_prefix = 'ephemeral-'
    libvirt.driver = 'kvm'
  end
end