0

I have a win7 host (don't ask..) and a vagrant 2.1.2/virtualBox 5.2.16 VM which is running win10. It comes up and runs well enough for my testing purposes, but I can't manage to get a shared folder. There is no error message at all as it comes up, and I give it my local machine's admin-enabled username/pwd without incident. Now don't get me wrong, the original 'vagrant' folder from which I bring up the VM is totally available on the win10 guest, and I can pass files back and forth this way. But if I can't really share another folder I'm limited in what I can do (next would be running a program from a shared network drive).

The strange bit is that I am running another vagrant box with ubuntu on the same PC, using the same vagrant/VirtualBox setup, practically the same Vagrantfile, and that works swimmingly. So clearly the problem is likely to be with the setup of my win10 guest box.

Rummaging around the net has yielded a lot of advice about synching the VirtualBox extensions, making sure WinRM is actually setup on the guest, setting up its domain to be a work one, increasing the boot time so the slow rumblings of Windows booting have time to settle down. All good useful stuff. But most of what's out there is about the setup subtleties for a windows host, not a windows guest. Any advice on what I might try next?

Here is my Vagrantfile (without most comments)

Vagrant.configure("2") do |config| config.vm.box = "inclusivedesign/windows10-eval"

# increase timeout because windows booting is super slow
config.vm.boot_timeout = 900 # 15 minutes

# Create a private network, which allows host-only access to the machine # using a specific IP. config.vm.network "private_network", ip: "192.168.33.11"

# Share an additional folder to the guest VM

C:/vagrant_data/win10-chrome", "C:/vagrant_data", type: "smb"

config.vm.provider "virtualbox" do |vb|
vb.gui = true vb.name = "windows10-eval"
vb.memory = "2048" end

# Configure winRM config.vm.communicator = "winrm"
config.winrm.timeout = 900 # 15 minutes

end

Note that with the guest file explorer I can see the desired folder, but when I try to look in it I get the message "Location is not available. C:\vagrant_data is not accessible. The username or password is incorrect"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.