Vagrant, cannot load such file -- log4r

131 views
Skip to first unread message

Cherry Ardillos

unread,
May 3, 2018, 12:26:06 AM5/3/18
to Vagrant
I installed Vagrant in Windows 10 machine and it seems working fine until I ssh the box I just added.
Anyone know the fix of this problem? Vagrant version is 2.0.4
C:\Users\D008\VagrantVMs\debianwheezy64>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'debian/wheezy64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'debian/wheezy64' is up to date...
==> default: Setting the name of the VM: debianwheezy64_default_1525310067077_8551
==> 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: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default:
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Installing rsync to the VM...
==> default: Rsyncing folder: /cygdrive/c/Users/Dash10-008/VagrantVMs/debianwheezy64/ => /vagrant 
C:\Users\D008\VagrantVMs\debianwheezy64>vagrant ssh
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- log4r (LoadError)
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:\HashiCorp\Vagrant\embedded\gems\2.0.4\gems\vagrant-2.0.4\bin\vagrant:74:in `<main>'

C:\Users\D008\VagrantVMs\debianwheezy64>vagrant halt
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- log4r (LoadError)
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:\HashiCorp\Vagrant\embedded\gems\2.0.4\gems\vagrant-2.0.4\bin\vagrant:74:in `<main>'
Reply all
Reply to author
Forward
0 new messages