WSL Vagrant seems to pass wrong path format to VBoxMange.exe

527 views
Skip to first unread message

Ivan Ceasario

unread,
Feb 26, 2019, 6:19:36 AM2/26/19
to Vagrant
Hello,
I am trying to  use vagrant under WSL. 
It launches VBoxMange.exe on the Windows OS side and tries to boot up the guest OS, however
it fails with Stderr: VBoxManage.exe: error: RawFile#0 failed to create the raw output file /mnt/d/vag/.....log
Seems vagrant is not providing the Windows/DOS path format that would be needed to right the vb log file.
I tried all combinations of the VAGRANT env variables but all result in same error:

export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS=1
export VAGRANT_WSL_DISABLE_VAGRANT_HOME=true
# VAGRANT_HOME=/mnt/d/vag/wordpress-boilerplate/.vagrant.d
# export VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH=/mnt/d/vag/wordpress-boilerplate
export VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH="D:\\vag\\wordpress-boilderplate"
export VAGRANT_HOME="D:\\vag\\wordpress-boilderplate\\.vagrant.d"

Any ideas what else is needed to get vagrant in WSL (Ubuntu 18.08) btw?
I also tried several versions of vagrant up to 2.2.3

thanks for any clues that may help

Brian Cain

unread,
Feb 26, 2019, 11:46:36 AM2/26/19
to vagra...@googlegroups.com
Hey there,

It looks like that error message has something to do with the Vagrant box you are trying to bring up. From what I can
tell it looks like adding this VirtualBox customization command to your Vagrantfile will disable the serial port which
is causing the error from VirtualBox:


  config.vm.provider "virtualbox" do |v|
    v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
  end

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f037e896-819a-4961-a4b7-56c102585b2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brian Cain

Ivan Ceasario

unread,
Feb 28, 2019, 9:11:38 AM2/28/19
to Vagrant
Hi Brian,

Thanks for the suggestion! I didn't realize you can customize virtualbox configuration in Vagrantfile.
Reply all
Reply to author
Forward
0 new messages