SSH command responseed with a non-zero exist status caused by sudo command not found

2 views
Skip to first unread message

kongyi...@gmail.com

unread,
Mar 17, 2017, 1:07:30 AM3/17/17
to Vagrant
Hello

I get a base window7 box it can work well on my Mac, then I made some changes and package it to new box, but when I run ' vagrant up ' (same issue when run  vagrant reload and vagrant halt) on this new box, I always get the error message: 

ERROR warden: Error occurred: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

I open debug model and get error message as below, it says the sudo command not found

DEBUG guest: Found cap: halt in linux
 INFO guest: Execute capability: halt [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>] (atomic)
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: shutdown -h now (sudo=true)
DEBUG ssh: stderr: sh: sudo: command not found

Anyone can give me some help ?  Thanks 


Reply all
Reply to author
Forward
0 new messages