Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: The shared folder guest path must be absolute: $env:TEMPomnibusche #256

Closed
bheuvel opened this issue Dec 1, 2016 · 3 comments
Closed
Assignees
Labels

Comments

@bheuvel
Copy link
Contributor

bheuvel commented Dec 1, 2016

Problems occurs on 0.21.0.
Problem does NOT occur on 0.20.0

When provisioning a Windows VM, errors out on:

-----> Creating <default-windows2012>...
       There are errors in the configuration of this machine. Please fix
       the following errors and try again:
       
       vm:
       * The shared folder guest path must be absolute: $env:TEMPomnibusche

(Part of) Resulting Vagrantfile:

Vagrant.configure("2") do |c|
  c.berkshelf.enabled = false if Vagrant.has_plugin?("vagrant-berkshelf")
  c.vm.box = "Win2012R2DC-x86_64"
  c.vm.communicator = "winrm"
  c.vm.synced_folder ".", "/vagrant", disabled: true
  c.vm.synced_folder "/Users/bheuvel/.kitchen/cache", "$env:TEMP\omnibus\cache", create: true
  c.vm.provider :cloudstack do |p|
    p.host = "XXXXXXXXXXXXXXXXX"
    p.path = "/client/api"
    p.port = 443
<snip>
    p.expunge_on_destroy = true
  end
end

Version 0.21.0 introduces the problematic line:
c.vm.synced_folder "/Users/bheuvel/.kitchen/cache", "$env:TEMP\omnibus\cache", create: true

bheuvel added a commit to MissionCriticalCloud/vagrant-cloudstack that referenced this issue Dec 1, 2016
bheuvel added a commit to MissionCriticalCloud/vagrant-cloudstack that referenced this issue Dec 2, 2016
bheuvel added a commit to MissionCriticalCloud/vagrant-cloudstack that referenced this issue Dec 2, 2016
@kernelsmith
Copy link

kernelsmith commented Dec 2, 2016

I'm also encountering this error, the classic ruby strings vs '' windows file path issue. I don't have any sync_folder items in my .kitchen.yml, results are exactly the same as @bheuvel. Looks like the fix is in #251, do chef gem update kitchen-vagrant to update I assume? Any idea when that gem gets cut? Currently there are no updates available and 0.21 is still latest (vs 0.21.1)

@afiune afiune added the Bug label Dec 5, 2016
@afiune
Copy link

afiune commented Dec 5, 2016

@bheuvel Thank you for reporting this issue, we have fixed this problem and we are now in the process of releasing a new gem. If you want to try it you can always use the latest code in master this repository.

afiune pushed a commit that referenced this issue Dec 5, 2016
We are excluding FreeBSD systems and also adding the ability to disable
the `cache_directory` by setting it up to `false` in the `kitchen.yml`
file.

Example:
```
platforms:
- name: ubuntu-12.04
  driver:
    cache_directory: false
```

Closes #260
Closes #256
Closes #257

Signed-off-by: Salim Afiune <[email protected]>
@bheuvel
Copy link
Contributor Author

bheuvel commented Dec 6, 2016

@afiune thanks! 👍

stefanwb pushed a commit to stefanwb/vagrant-cloudstack that referenced this issue Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants