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