Trying to set up a virtual box with vagrant

64 views
Skip to first unread message

Carlos Morales

unread,
Dec 6, 2017, 6:40:09 AM12/6/17
to Vagrant
I have a virtualbox 5.1.30 and I have vagrant 2.0.1 and I have this error after doing a vagrant up --provider=virtualbox:

C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/machine.rb:333:in `unlink': Permission denied @ unlink_internal - C:/Users/Carlos/Desktop/Vagrant_base/.vagrant/machines/default/virtualbox/id (Errno::EACCES)
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/machine.rb:333:in `delete'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/machine.rb:333:in `id='
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/machine.rb:146:in `initialize'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/vagrantfile.rb:79:in `new'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/vagrantfile.rb:79:in `machine'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:733:in `machine'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/plugin/v2/command.rb:180:in `block in with_target_vms'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/plugin/v2/command.rb:204:in `block in with_target_vms'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/plugin/v2/command.rb:186:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/plugin/v2/command.rb:186:in `with_target_vms'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/plugins/commands/up/command.rb:87:in `execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/cli.rb:42:in `execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:308:in `cli'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/bin/vagrant:138:in `<main>'


How can I solve it?. Thanks in advance


Alvaro Miranda Aguilera

unread,
Dec 6, 2017, 4:35:32 PM12/6/17
to vagra...@googlegroups.com
Hello

There is this error:


C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/machine.rb:333:in `unlink': Permission denied @ unlink_internal - C:/Users/Carlos/Desktop/Vagrant_base/.vagrant/machines/default/virtualbox/id (Errno::EACCES)

what user are you using?

are you in Windows over cmd.exe, powershell, wsl, some bash?

Alvaro

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5cbeee61-6b10-4fdd-ba08-1039ca622ac1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Carlos Morales

unread,
Dec 6, 2017, 4:40:15 PM12/6/17
to Vagrant
I'm working with the admin  user and I'm working on  cmd.exe. Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Dec 6, 2017, 4:46:58 PM12/6/17
to vagra...@googlegroups.com
hello

please use your normal user, no need to use run-ad-admin

Alvaro.


To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4b80eaac-69ec-4c1e-b386-1061cbabb6cd%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages