-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant hangs settings hostname on windows #5742
Comments
@tcuthbert I'm also using Vagrant 1.7.2 on OSX with both VMware Fusion and VirtualBox with Windows guests and can confirm that setting the hostname works. For WinRM some settings are needed in the Windows guest to have eg. enough memory for the remote processes. Have a look at https://github.com/boxcutter/windows/blob/master/floppy/install-winrm.cmd#L55 I had a long and colorful discussion with @ferventcoder at his Chocolatey repo in issue chocolatey/choco#277 as the provision scripts sometimes worked and sometimes not. BTW: Vagrant 1.7.3 will have the old way to set the hostname for windows guests and have a reboot #5261 |
Hey Stefen, I am building my windows boxes through the virtualbox packer provider. Regards, Thomas Cuthbert On Fri, May 22, 2015 at 1:48 PM, Stefan Scherer notifications@github.com
|
@tcuthbert I personally use the packer-windows baseboxes for a long time as they have the Windows Update script we need at work. Haven't tried the boxcutter/windows for months, but their settings winrm settings indeed look good. |
@StefanScherer I'm having the same issues with upstream packer-windows. I couldn't get it to work by manually setting the winrm shell mem to 2048 so I'm going to try and generate a fresh box with it set to 4096. |
After tweaking the memory value and rebuilding a new box, still having the same issues. |
This can be closed. Turns out the issue was caused by having hyphens in the hostname. |
For what it's worth, this is currently tanking a Vagrant build of mine on Windows (hyphens in the hostname causing |
note #5835, and the fact that the lease pool of your hypervisor (in my case vmware) may be full. So double-check if the ip address of the hanging VM does not already occur in your vagrant inventory file for some other machine. |
Hey I'm running OSX and vagrant version 1.7.2
When I explicitly set the hostname in my Vagrantfile, my windows guest hits an exception and I'm unable to perform tasks like, opening powershell or control panel without an insufficient memory exception.
When I comment out the hostname line, everything appears to work again.
Vagrantfile
Debug:
The text was updated successfully, but these errors were encountered: