Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Cannot add vbox additions on Windows 10 #379

Closed
mladenuzelac opened this issue Jul 13, 2020 · 13 comments
Closed

Cannot add vbox additions on Windows 10 #379

mladenuzelac opened this issue Jul 13, 2020 · 13 comments
Labels

Comments

@mladenuzelac
Copy link

Hi,

When I run vagrant up on Windows 7 everything runs fine (Virtualbox 6.1.10 and Vagrant 2.2.9 and vbguest 0.24)
When I try that on Windows 10 I get this error:

C:/HashiCorp/Vagrant/embedded/gems/2.2.9/gems/net-ssh-5.2.0/lib/net/ssh/buffered_io.rb:66:in `recv': An existing connection was forcibly closed by the remote host. - recvfrom(2) (Errno::ECONNRESET)

@Rulac
Copy link

Rulac commented Jul 15, 2020

Hi,

Same on Windows 10.

@fnordfish
Copy link
Member

Can you please run vagrant in debug mode and attach its log output here.

@mladenuzelac
Copy link
Author

Can you please run vagrant in debug mode and attach its log output here.

I sent in an email since the file is almost 500kb big.

@fnordfish
Copy link
Member

Looking through the logs it seems, that SSH communication with the guest is OK, but uploading the ISO via SCP fails.
@thumperward Any ideas?

@thumperward
Copy link
Contributor

I can't reproduce this (Windows 10, Virtualbox 6.1.10, Vagrant 2.2.9, vbguest 0.24) - copying the iso succeeds for me:

==> default: Machine booted and ready!
[default] GuestAdditions versions on your host (6.1.10) and guest (6.1.2) do not match.
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box $env:TEMP/VBoxGuestAdditions.iso


Attached          : True
BlockSize         : 0
DevicePath        : \\.\CDROM0
FileSize          : 60448768
ImagePath         : C:\Users\vagrant\AppData\Local\Temp/VBoxGuestAdditions.iso
LogicalSectorSize : 2048
Number            : 0
Size              : 60448768
StorageType       : 1
PSComputerName    :



Mounting Virtualbox Guest Additions ISO to: D

fwiw I used Windows 10 when developing Windows support.

@fnordfish - can you provide the relevant parts from the debug log?

@fnordfish
Copy link
Member

I've just put the log provided by @Rulac in a gist: https://gist.github.com/fnordfish/43805b4e2f5f2e4420152d9df69e8b24
The trace is at the very end. But there's not much to see there.

@thumperward But reading through the log again, it's not an issue with a windows guest. The host is windows 10, but the guest is centos 7. Sorry for the noise.

@Rulac
Copy link

Rulac commented Jul 23, 2020

I think this is not vagrant-vbguest issue. Problem is in Vagrant itself.

I have the same error without vagrant-vbguest plugin installed and vagrant upload command:
vagrant upload "C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso" /tmp

@mladenuzelac Do you have Docker on Windows 10?

I solved the problem with:

  1. Set Core Isolation Memory Integrity to Off
  2. run in CMD:
    bcdedit /set hypervisorlaunchtype off
  3. restart

@mladenuzelac
Copy link
Author

I have Docker on Windows 10, I check these settings.

@jserra91
Copy link

Hello @Rulac

Thank you, this is the problem 👍

Regards and a beer for you!

@BRAiNCHiLD95
Copy link

BRAiNCHiLD95 commented Aug 13, 2020

I'm running Windows 10 Home, so Hyper-V is unavailable, also Core Isolation/Memory Integrity was OFF by default.
So,
The solution in my case was to use "virtualbox" as the type for synced_folders -

config.vm.synced_folder ".", "/vagrant", type: "virtualbox"

And also, inside the config specific to provider -

config.vm.provider "virtualbox" do |vb|
      # Allow shared folders sym linking
      vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
end

Note that /vagrant is the path I use inside my virtual machine - therefore that's the path added at the end of SharedFoldersEnableSymlinksCreate.

Did both of these - and Guest Additions were installed/updated, and also fixed most issues with npm/yarn and composer.

PS: Here's the output of -
vagrant upload "C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso" /tmp (which was failing before applying aforementioned changes)

image

@stale
Copy link

stale bot commented Oct 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 12, 2020
@mladenuzelac
Copy link
Author

There are some issues regarding newer Windows 10 pro edition and virtualbox.
So I don't try to use Vbox at all, I use WSL2 these days.

@stale stale bot removed the wontfix label Oct 12, 2020
@stale
Copy link

stale bot commented Dec 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 19, 2020
@stale stale bot closed this as completed Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants