Advertisement
otku

Vagrant Issues

May 12th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. SOLUTION:
  2. apt-get install ifupdown
  3.  
  4. PROBLEM:
  5. The following SSH command responded with a non-zero exit status.
  6. Vagrant assumes that this means the command failed!
  7.  
  8. /sbin/ifdown 'eth1' || true
  9. /sbin/ip addr flush dev 'eth1'
  10. # Remove any previous network modifications from the interfaces file
  11. sed -e '/^#VAGRANT-BEGIN/,$ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces.pre
  12. sed -ne '/^#VAGRANT-END/,$ p' /etc/network/interfaces | tac | sed -e '/^#VAGRANT-END/,$ d' | tac > /tmp/vagrant-network-interfaces.post
  13. cat \
  14. /tmp/vagrant-network-interfaces.pre \
  15. /tmp/vagrant-network-entry \
  16. /tmp/vagrant-network-interfaces.post \
  17. > /etc/network/interfaces
  18. rm -f /tmp/vagrant-network-interfaces.pre
  19. rm -f /tmp/vagrant-network-entry
  20. rm -f /tmp/vagrant-network-interfaces.post
  21.  
  22. /sbin/ifup 'eth1'
  23.  
  24. Stdout from the command:
  25.  
  26.  
  27.  
  28. Stderr from the command:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement