spuder

Untitled

Feb 11th, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.51 KB | None | 0 0
  1. Vagrant tries to run 'apt-get update' when I run 'vagrant provision'. This isn't an ubuntu vm.  
  2.  
  3. sowens-MBP:ND-Webserver2012 sowen$ vagrant up
  4. Bringing machine 'default' up with 'virtualbox' provider...
  5.    default: The Berkshelf shelf is at "/Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default"
  6. ==> default: Sharing cookbooks with VM
  7. ==> default: Importing base box 'lmayorga1980/windows-2012r2'...
  8. ==> default: Matching MAC address for NAT networking...
  9. ==> default: Checking if box 'lmayorga1980/windows-2012r2' is up to date...
  10. ==> default: Setting the name of the VM: ND-Webserver2012_default_1423673882548_97092
  11. ==> default: Updating Vagrant's Berkshelf...
  12. ==> default: Resolving cookbook dependencies...
  13. ==> default: Fetching 'ND-Webserver2012' from source at .
  14. ==> default: Using ND-Webserver2012 (0.1.0) from source at .
  15. ==> default: Using iis (2.1.6)
  16. ==> default: Using windows (1.36.1)
  17. ==> default: Using chef_handler (1.1.6)
  18. ==> default: Vendoring ND-Webserver2012 (0.1.0) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/ND-Webserver2012
  19. ==> default: Vendoring chef_handler (1.1.6) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/chef_handler
  20. ==> default: Vendoring iis (2.1.6) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/iis
  21. ==> default: Vendoring windows (1.36.1) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/windows
  22. ==> default: Clearing any previously set network interfaces...
  23. ==> default: Preparing network interfaces based on configuration...
  24.     default: Adapter 1: nat
  25. ==> default: Forwarding ports...
  26.     default: 3389 => 3389 (adapter 1)
  27.     default: 5985 => 55985 (adapter 1)
  28.     default: 22 => 2222 (adapter 1)
  29. ==> default: Running 'pre-boot' VM customizations...
  30. ==> default: Booting VM...
  31. ==> default: Waiting for machine to boot. This may take a few minutes...
  32. ==> default: Machine booted and ready!
  33. ==> default: Checking for guest additions in VM...
  34. ==> default: Mounting shared folders...
  35.     default: /vagrant => /Users/sowen/Devops/vagrant-windows/ND-Webserver2012
  36.  
  37.  
  38.  
  39.  
  40. ^C==> default: Waiting for cleanup before exiting...
  41.  
  42. ^C==> default: Exiting immediately, without cleanup!
  43. sowens-MBP:ND-Webserver2012 sowen$ vagrant provision
  44. ==> default: Loading Berkshelf datafile...
  45. ==> default: Sharing cookbooks with VM
  46. ==> default: Updating Vagrant's Berkshelf...
  47. ==> default: Resolving cookbook dependencies...
  48. ==> default: Fetching 'ND-Webserver2012' from source at .
  49. ==> default: Using ND-Webserver2012 (0.1.0) from source at .
  50. ==> default: Using chef_handler (1.1.6)
  51. ==> default: Using iis (2.1.6)
  52. ==> default: Using windows (1.36.1)
  53. ==> default: Vendoring ND-Webserver2012 (0.1.0) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/ND-Webserver2012
  54. ==> default: Vendoring chef_handler (1.1.6) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/chef_handler
  55. ==> default: Vendoring iis (2.1.6) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/iis
  56. ==> default: Vendoring windows (1.36.1) to /Users/sowen/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150211-3256-mhpte3-default/windows
  57. ==> default: Running provisioner: chef_solo...
  58.    default: Installing Chef (latest)...
  59. The following WinRM command responded with a non-zero exit status.
  60. Vagrant assumes that this means the command failed!
  61.  
  62. apt-get update -y -qq
  63. if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 1 } }
  64.  
  65. Stdout from the command:
  66.  
  67.  
  68.  
  69. Stderr from the command:
  70.  
  71. #< CLIXML
  72. <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">apt-get : The term 'apt-get' is not recognized as the name of a cmdlet, _x000D__x000A_</S><S S="Error">function, script file, or operable program. Check the spelling of the name, or _x000D__x000A_</S><S S="Error">if a path was included, verify that the path is correct and try again._x000D__x000A_</S><S S="Error">At line:1 char:1_x000D__x000A_</S><S S="Error">+ apt-get update -y -qq_x000D__x000A_</S><S S="Error">+ ~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : ObjectNotFound: (apt-get:String) [], CommandNotF _x000D__x000A_</S><S S="Error">   oundException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : CommandNotFoundException_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
Advertisement
Add Comment
Please, Sign In to add comment