Error `chmod': Operation not permitted @ chmod_internal

Hello,

I try to run vagrant in Windows.

When I run vagrant up in WSL, I have the following error:

/home/xxx/Sites/yyy/trellis/lib/trellis/vagrant.rb:78: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
/opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/environment.rb:1059:in `chmod': Operation not permitted @ chmod_internal - /mnt/c/Users/xxx/.vagrant.d/insecure_private_key (Errno::EPERM)
        from /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/environment.rb:1059:in `chmod'
        from /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/environment.rb:1059:in `copy_insecure_private_key'
        from /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/environment.rb:166:in `initialize'
        from /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/bin/vagrant:154:in `new'
        from /opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/bin/vagrant:154:in `<main>'

I have install:

  • in Windows:
    • VirtualBox 6.1.2
    • Vagrant 2.2.7
  • in WSL (Debian):
    • Vagrant 2.2.7
    • Ansible 2.9.4

Can you help?

Thanks.

It’s OK!

I have to run this command in PowerShell as admin:

Restart-Service LxssManager

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.