Re: [vagrant-up] Re: Vagrant up First time running error

2016-02-09 Thread Shawn Neal
The book you're following and the associated repository has an outdated copy of the Chef Python cookbook. Follow the suggestion in this issue comment to workaround the old pip installer link.

[vagrant-up] Re: Provision of aws windows image fails on chef-solo start

2015-10-21 Thread Shawn Neal
vagrant-aws will work with Windows but you need to install the vagrant-winrm-syncedfolders plugin to allow Vagrant to be able to upload files to the instance over WinRM since rsync can't use the winrm transport. On Tuesday, October

Re: [vagrant-up] Re: Unattended Visual Studio (SQL Server) install failing when running via Vagrant

2015-06-15 Thread Shawn Neal
we are running into a Windows Update access issue. (It is entirely > possible that I am not looking in the right place, though.) > > > Thanks, > > -Dave > > > > On Saturday, June 13, 2015 at 10:32:55 AM UTC-4, Shawn Neal wrote: >> >> That's odd, I've ha

[vagrant-up] Re: Unattended Visual Studio (SQL Server) install failing when running via Vagrant

2015-06-13 Thread Shawn Neal
That's odd, I've had SQL Server 2008 R2 installing on Vagrant boxes via Chef for a while now without any issues. I just checked my CI build for our SQL Server cookbook and its running fine through Vagrant 1.6.5 and our custom Packer build that uses WinRM. Mind sharing your Vagrantfile? On Frid

[vagrant-up] Re: Vagrant on Linux + Windows Guest (VirtualBox) + Salt Provider: any luck?

2015-06-10 Thread Shawn Neal
This doesn't sound like a combination that many people use, myself included. I remember helping you with one of the Vagrant/Salt issues . If there are more Vagrant issues please file GitHub issues, I'd love to get them fixed. On Tuesday, June 9, 2

[vagrant-up] Re: Error from C:\tmp\vagrant-elevated-shell.ps1 when provisioning windows guest

2015-04-29 Thread Shawn Neal
Try changing test.cmd to use double quotes. echo "Ensuring basic commands will run" On Saturday, April 25, 2015 at 7:34:24 PM UTC-7, Hamilton Turner wrote: > > My (very simple) Vagrantfile is here > - trying to > provision using a batch f

Re: [vagrant-up] Re: salt provisioning on windows guest broken?

2015-04-14 Thread Shawn Neal
helpful if I open an issue and reference your > pull request? Or is there an issue about this already? > > Cheers > Oliver > > On Tuesday, 14 April 2015 15:06:31 UTC+2, Shawn Neal wrote: >> >> I think PR 5593 >> <https://www.google.com/url?q=https%3A%2F%2Fgi

[vagrant-up] Re: salt provisioning on windows guest broken?

2015-04-14 Thread Shawn Neal
I think PR 5593 should fix your issue. I think what happened is that we tightened up the error code and stderr detection in the WinRM communicator and this exposed an issue with the Salt bootstrap PowerShell script

Re: [vagrant-up] Re: Is there a way to set up a box repository inside the corporate network

2015-02-19 Thread Shawn Neal
You set the VAGRANT_SERVER_URL env var. At work we set this on all our dev machines (via Boxen) so we can add boxes using the short notation 'mycompany/mybox'. The env var points to an internal web server which produces JSON responses for Vagrant to consume which contain the real URLs to the ac

Re: [vagrant-up] Re: Vagrant 1.6.x with windows guest and virtualbox

2015-01-29 Thread Shawn Neal
Thanks Michael. I'm in the progress of fixing this. Now that the upstream winrm gem properly throws an auth error, we can fail fast in Vagrant instead of retrying to connect without any obvious error to indicate you have the wrong user/pwd. On Thu Jan 29 2015 at 8:20:33 AM Michael Zhou wrote: >

Re: [vagrant-up] Re: View Vagrant provision log other than STDOUT?

2014-10-30 Thread Shawn Neal
@anatoly The original poster was using Chef, what is it you're doing? On Thursday, October 30, 2014 11:06:38 AM UTC-7, anatoly techtonik wrote: > > And I am not using Chef. > > On Thu, Oct 30, 2014 at 8:52 PM, Shawn Neal > wrote: > > Assuming you're already w

[vagrant-up] Re: View Vagrant provision log other than STDOUT?

2014-10-30 Thread Shawn Neal
Assuming you're already writing the Chef output to a log file, just ensure the log is put into the /vagrant folder on the guest. This folder is already mapped back to the host machine in the same directory as your Vagrantfile. On Wednesday, October 29, 2014 10:29:28 PM UTC-7, anatoly techtonik

[vagrant-up] Re: Vagrant Provisioning in Windows - Sudo Error

2014-10-16 Thread Shawn Neal
Vagrant supports Windows guests using WinRM, you need to change the communicator type to :winrm. Also, Vagrant doesn't support XP as a guest, although it _might_ work with some additional guest config/updates. config.vm.communicator = :winrm The other option is to use SSH as a communicator via

Re: [vagrant-up] Setting System Environment Variables in Windows

2014-08-11 Thread Shawn Neal
running > Vagrant twice? If there's no clean workaround, I'm going to propose there > be a Vagrant method to reconnect to the VM on GitHub. I'm currently > experimenting with workarounds involving killing the connection from the > guest, but I'm not sure Vagrant has automati

[vagrant-up] Re: Vagrant Chef Provision - Copy to /etc/chef/ missing

2014-08-11 Thread Shawn Neal
You must be trying to run chef-client outside of Vagrant on subsequent runs, e.g. directly on the guest. If that's the case, why not just run chef-client through Vagrant again? You might look at the Vagrant "file provisioner" to upload files to the guest, from the host. If you create a custom.r

[vagrant-up] Re: Vagrant shell provisionning on a Windows Guest (background task issue)

2014-08-01 Thread Shawn Neal
Should have said privileged => false On Friday, August 1, 2014 7:59:35 AM UTC-7, Shawn Neal wrote: > > I don't know why you're trying to do this, but the Vagrant source which > generates the scheduled task is here: > https://github.com/mitchellh/vagrant/blob/master/pl

[vagrant-up] Re: Vagrant shell provisionning on a Windows Guest (background task issue)

2014-08-01 Thread Shawn Neal
I don't know why you're trying to do this, but the Vagrant source which generates the scheduled task is here: https://github.com/mitchellh/vagrant/blob/master/plugins/communicators/winrm/scripts/elevated_shell.ps1.erb You can also _not_ use a scheduled task with the shell provision by setting

Re: [vagrant-up] Parsing/populating Ruby variables from within a JSON file for chef.json

2014-07-17 Thread Shawn Neal
If you're just reading in a file then you'll need to take some explicit action to force interpolation to occur. This sounds like your exact question here: http://stackoverflow.com/questions/346380/in-ruby-can-you-perform-string-interpolation-on-data-read-from-a-file On Thu, Jul 17, 2014 at 5:52 A

[vagrant-up] Re: wget progress bar in windows cmd while provisioning

2014-07-17 Thread Shawn Neal
Can you share a Vagrantfile provisioner block which reproduces this? On Wednesday, July 16, 2014 5:35:29 AM UTC-7, ManRie wrote: > > Hi everybody, > > I am using wget to download a file in the provision file of my vagrant > machine. > My problem is, that the wget progress bar is not correctly dis

[vagrant-up] Re: Parsing/populating Ruby variables from within a JSON file for chef.json

2014-07-16 Thread Shawn Neal
Why do you have such a large and complex Vagrantfile? It sounds like you have a lot of attributes that would be better managed outside Vagrant via Chef Server roles and environments. On Wednesday, July 16, 2014 3:07:43 PM UTC-7, Alvaro Miranda Aguilera wrote: > > > if you write a json in the vag

Re: [vagrant-up] How do I extend/monkey-patch a core Vagrant provisioner?

2014-07-08 Thread Shawn Neal
Vagrant will copy the validation.pem to the guest box for you: chef.validation_key_path = "/etc/chef/validation.pem", but perhaps your use case isn't quite as simple as that. You can monkey match the Chef-Client provisioners, here's an example that works with Vagrant 1.1 -> 1.5: https://github

Re: [vagrant-up] Windows Base Build

2014-06-29 Thread Shawn Neal
I use Packer to build my base boxes which runs my shutdown command that syspreps the box: "shutdown_command": "c:/windows/system32/sysprep/sysprep.exe /generalize /oobe /quiet /shutdown /unattend:a:/unattend.xml", On Sunday, June 29, 2014 2:29:07 AM UTC-7, Alvaro Miranda Aguilera wrote: > > usu

Re: [vagrant-up] Setting System Environment Variables in Windows

2014-06-27 Thread Shawn Neal
Calling this method is equivalent to calling the SetEnvironmentVariable(String, String, EnvironmentVariableTarget) overload with a value of EnvironmentVariableTarget.Process for the target argument. http://msdn.microsoft.com/en-us/library/z46c489x(v=vs.110).aspx Try using setx instead http://t

Re: [vagrant-up] Reboot during provisions

2014-06-25 Thread Shawn Neal
Windows is rebooting before your provisioner has a chance to report "done" back to Vagrant. If you add a delay into your shutdown command (i.e. -t 30), it'll work fine. The provisioner will finish and before Vagrant starts the next provisioner block it will see that a reboot is going to happen

[vagrant-up] Re: My struggle in creatin Windows Guest in EC2

2014-06-19 Thread Shawn Neal
WinRM doesn't require SSH on the guest, they're both independent communication channels. Windows guest drive mapping on VirtualBox, VMWare, and Parallels uses their native shared folders implementation. For EC2 obviously this won't work. I'd like to see EC2/Vagrant/WinRM work, but at this point

Re: [vagrant-up] Re: Vagrant 1.6.x with windows guest and virtualbox

2014-06-11 Thread Shawn Neal
AM UTC-5, Shawn Neal wrote: >> >> Did you fully configure winrm as per https://github.com/winrb/ >> vagrant-windows#winrm-configuration? >> > > I did try those at one point. I am not sure I have done that on this > attempt. It's not clear if any of those

[vagrant-up] Re: Vagrant 1.6.x with windows guest and virtualbox

2014-06-11 Thread Shawn Neal
Did you fully configure winrm as per https://github.com/winrb/vagrant-windows#winrm-configuration? Setting the network to private, not sure about that one. Usually work is used. Firewall? IMO the easiest way to create a Vagrant base box is to use Packer with packer-windows (https://github.com/j

Re: [vagrant-up] Re: Vagrant/Berkshelf `initialize': undefined method `opts'

2014-06-05 Thread Shawn Neal
IIRC there's a vagrant-berkshelf issue on GitHub for this error. You may need to blow away your ~/.vagrant.d folder and reinstall. It seems you have some bad state/gems installed. On Wednesday, June 4, 2014 5:41:34 PM UTC-7, Jerrod wrote: > > Installed vagrant-bekrshelf 2.0.1 Now getting this..

Re: [vagrant-up] Re: Vagrant/Berkshelf `initialize': undefined method `opts'

2014-06-04 Thread Shawn Neal
You Vagrant box didn't upgrade to the new 1.5+ box format. Not sure why, but this issue should help get around it https://github.com/mitchellh/vagrant/issues/3195 On Wed, Jun 4, 2014 at 5:29 AM, Jerrod wrote: > > And with up to date everything.. > > /Applications/Vagrant/embedded/lib/ruby/2.0.0

Re: [vagrant-up] Re: Packaging windows vm force shuts down if running

2014-06-03 Thread Shawn Neal
ppens to be a Windows VM, which supports WinRM and could be shut > down that way, but vagrant does not try to. (it only tries ssh) > > -Ben > > > On Tuesday, June 3, 2014 8:39:58 AM UTC-7, Shawn Neal wrote: >> >> I would expect that it should only attempt to use the com

[vagrant-up] Re: Vagrant/Berkshelf `initialize': undefined method `opts'

2014-06-03 Thread Shawn Neal
This is Berkshelf issue, but... You need to use Vagrant 1.5 or newer with vagrant-berkshelf 2.0+ or downgrade vagrant-berkshelf to 1.37 or older. Vagrant 1.5 made a breaking change to the UI class which this plugin is using. On Monday, June 2, 2014 7:36:18 PM UTC-7, Jerrod wrote: > > Sorry, thi

[vagrant-up] Re: Packaging windows vm force shuts down if running

2014-06-03 Thread Shawn Neal
I would expect that it should only attempt to use the communicator type you have configured. In your example, which communicator type are you using, SSH or WinRM? On Monday, June 2, 2014 3:12:22 PM UTC-7, Ben Hines wrote: > > When using 'vagrant package' to package a windows vm which is running

[vagrant-up] Re: windows communicator settings

2014-05-20 Thread Shawn Neal
On Friday, May 16, 2014 4:19:15 PM UTC-7, Michael Legleux wrote: > > I created a base box of windows 7 and 8 using virtualbox. > I configured the winrm according to the vagrant-windows port-forwarding > for rdp and winrm. > also this post helped since: > https://github.com/mitchellh/vagrant/issu

[vagrant-up] Re: bindler alternative compatible with Vagrant 1.4?

2014-03-09 Thread Shawn Neal
Waiting for Vagrant 1.5 is probably your best bet. Here's how I hack around it for 1.4 (and older), I install and consume the Chef gem from my Vagrantfile. On Saturday, March 8, 2014 1:48:29 PM UTC-8, Torben Knerr wrote

Re: [vagrant-up] Re: Vagrant::Windows - Error: We executed a shell command and the exit status was not 0

2014-03-06 Thread Shawn Neal
I assume you're packaging a Windows guest from a Windows host, correct? The path specified for the failed command looks very non-Windows friendly. tar -cvf '/C/VirtualBox/windows2008R2/windows2008R2.box' Can you run the tar command successfully yourself as-is? Which versions of Vagrant are you

Re: [vagrant-up] Having issues with port forwarding using windows. vagrant seems to map 3389 (RDP) regardless of configuration.

2014-02-04 Thread Shawn Neal
Vagrant-windows doesn't do any port forwarding. Sounds like you have another Vagrantfile with the forwarded ports its inheriting from. On Tuesday, February 4, 2014 12:51:26 AM UTC-8, Mitchell Hashimoto wrote: > > Owain, > > You might want to reach out and ping the vagrant-windows folks directly,

[vagrant-up] Re: struggling with plugin install

2014-01-21 Thread Shawn Neal
I've never seen vagrant-windows fail to install like that. Do you have a corporate proxy on your network or something? On Friday, January 17, 2014 2:10:04 PM UTC-8, CB wrote: > > I've been trying to install vagrant-windows plugin. I've got rvm > stable, ruby 1.9.2, and 'gem install vagrant-wi

[vagrant-up] Re: Windows Server 2008 R2 VM gets host-only adapter created, but static IP doesn't get set

2014-01-16 Thread Shawn Neal
Unless you're using the vagrant-windows plugin, its not going to set the static IP for you. Vagrant-windows will handle this for you (with VirtualBox) by running the appropriate netsh commands. On Wednesday, January 15, 2014 2:53:39 PM UTC-8, Nicholas Chappell wrote: > > Pretty much what the tit