mitchellh/vagrant — Issue #568: SCP fails with Return Code 127 (host-only network)
Author: nfisher
Created: 2011-11-24 21:51:47+00:00
State: open

VirtualBox: 4.1.x (Tested against all versions up to 6)
Vagrant: 0.8.7
Host(s): OS X 10.6.8, Ubuntu 11.10
Guest: Centos 6

Encountered this error when provisioning a VM from a custom base box. On Centos you need to install openssh-clients, not sure the equivalent package on Ubuntu. If I have some time this weekend I'll see about creating a patch that gives clear output for why the failure happened (right now it just stack dumps) and leaves the VM running in an unknown state. In this situation it's a known failure and the stack trace feels less than ideal.

Does this sound like a reasonable approach for the situation?

Output an error to the effect of "scp not found on guest, unable to upload network config".