Error while creating sync folder via Vagrant in Ubuntu (VirtualBox)
NickName:tmk1 Ask DateTime:2018-02-12T23:55:28

Error while creating sync folder via Vagrant in Ubuntu (VirtualBox)

I get the following error:

The following SSH command responded with a non-zero exit status. 
Vagrant assumes that this means the command failed!
mkdir -p /home/myuser/synced

Host: Windows 10 Guest: Ubuntu Server 17.10

My Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :


Vagrant.configure("2") do |config|

  config.vm.box = "mybox"

  config.ssh.shell = "bash -l"
  config.ssh.username = "myuser"
  config.ssh.password = "mypassword"  

  config.vm.synced_folder ".", "/vagrant", disabled: true
  config.vm.synced_folder "data", "/home/myuser/synced", create: true, group: "mygroup", owner: "myuser"

end

When logged in via SSH into guest I can invoke

mkdir -p /home/myuser/synced

without any problems.

Copyright Notice:Content Author:「tmk1」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48750434/error-while-creating-sync-folder-via-vagrant-in-ubuntu-virtualbox

More about “Error while creating sync folder via Vagrant in Ubuntu (VirtualBox)” related questions

Error while creating sync folder via Vagrant in Ubuntu (VirtualBox)

I get the following error: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mkdir -p /home/myuser/synced Host: Windows 10 Guest:

Show Detail

Sync Vagrant folder in Windows with VirtualBox

I don't understand the answers that I can find to this, so I'll try to ask it again. I'm using Vagrant on a virtual machine using VirtualBox. My host machine has Windows 10. According to https://www.

Show Detail

Mounting a symlinked folder in vagrant & virtualbox

Okay, so here is my problem: I use vagrant with VirtualBox. The host is Windows 8.1, the guest is Ubuntu (64bit). I am trying to use a symlinked windows folder created by mklink /j somefolder

Show Detail

Vagrant / Virtualbox, shared folder out of sync when there are many file-related operation

This is not about vagrant or virtualbox guest running slowly due to slow shared folder access, we know that can be resolved more or less by enabling nfs. It's rather about mounted shared folder go...

Show Detail

Unable to start Vagrant VirtualBox on Ubuntu

I am just trying to start some Windows vagrant VirtualBox VMs. vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports......

Show Detail

Vagrant nfs sync folder issue with Ubuntu Host

I'm trying to run vagrant in a Ubuntu host with nfs enabled, but it's getting an error while I try to run vagrant. These are my specifications: Host : Ubuntu 14.04 LTS Guest : Ubuntu 14.04 LTS V...

Show Detail

Vagrant sync folder doesn't work on windows 10

I'm trying to sync folders from a windows 10 hosto to a ubuntu guest but I get this error: $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box '

Show Detail

Virtualbox image corrupted on vagrant up

I've been having some trouble with Vagrant and Virtualbox lately and I can't pinpoint what is going on. I am trying to use the Vagrant setup in this repository (https://github.com/sapienza/vagrant-...

Show Detail

VirtualBox error while using Vagrant

I want to use Vagrant to create a virtual machine for a development environment. I am getting an error when it tries to install the virtual machine into VirtualBox. The output of VBoxManage import is

Show Detail

Reconnect synced folders from Vagrant after VirtualBox restart

I have created a puppet/vagrant/VirtualBox generated installation of Ubuntu running on a Windows host; see https://bitbucket.org/dmenne/rstudio-shiny-server-on-ubuntu for details. This allows users...

Show Detail