webdevops / vagrant-docker-vm

:computer: Development Vagrant VM with Docker, Samba and Mail sandbox (customizable)
https://webdevops.io/projects/vagrant-docker-vm/
MIT License
87 stars 28 forks source link

Error File not found disks/data [partialy solved] #108

Closed panigrc closed 5 years ago

panigrc commented 7 years ago

In windows 7 when I try to open the vm with workstation, or do any jobs with vagrant command line (except up) I got a "file not found" error, after checking the logs I saw that there is a problem with the disks/data file. The problem is that in the ubuntu1404-docker.vmx the file path to data is scsi0:1.filename = "C:/myproject/disks/data"

If I change it to scsi0:1.filename = "C:\myproject\disks\data"

The problem is that everytime I run vagrant up the .vmx file is regenerated. The same problem must exist in the ubuntu 16.04 version.

panigrc commented 7 years ago

A quick and dirty solution is to replace all the slashes with back-shlashes in the Vagrantfile

            v.vmx['scsi0:1.filename'] = "#{VAGRANT_ROOT}/disks/data".gsub(/\//, '\\')
josefglatz commented 6 years ago

@PanadeEdu can u reproduce this behaviour in Windows?

panigrc commented 5 years ago

I can't reproduce this problem anymore so I close the issue.