Creating (create_remote_directory) /tmp directory: How to fix it?

Hi folks. I have a failure when vagrant tries to make a /tmp/ directory… using QEMU, on a windows box. Is it required to have a /tmp directory ? has anyone else ever run into a similar error when provisioning vagrant boxes ? (note this is a windows provisioning step)

  • this is using the vagrant-qemu provisioner
  • this is a windows provisioning step

 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x00007f9316bfd168>                                                                                                                                               
ERROR vagrant: Vagrant experienced an error! Details:                                                                                                                                                                                         
ERROR vagrant: #<Vagrant::Errors::VagrantError: The following SSH command responded with a non-zero exit status.                                                                                                                              
Vagrant assumes that this means the command failed!                                                                                                                                                                                           
                                                                                                                                                                                                                                              
mkdir -p "/tmp"                                                                                                                                                                                                                               

The detailed logs are:

ERROR vagrant: The following SSH command responded with a non-zero exit status.                                                                                                                                                               
Vagrant assumes that this means the command failed!
...                    
ERROR vagrant: /opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/plugins/communicators/ssh/communicator.rb:268:in `execute'
/opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/plugins/communicators/ssh/communicator.rb:769:in `create_remote_directory'
/opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/plugins/communicators/ssh/communicator.rb:328:in `block (2 levels) in upload'
/opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/plugins/communicators/ssh/communicator.rb:338:in `block in upload'

so dug around, looks like in general this is for provisioning steps. i.e. i guess you need a tmp dir before provisioning starts.