3. I had a conversation with
Hashimoto-san
before this meetup.
What he told me was
Something makes
this presentation meaningless
not before long.
この勉強会の前に、
少しHashimotoさんと
話をする機会がありました
彼が話してくれたことは、
このプレゼンテーションの内容が
遠からず意味なしになってしまう
ということを意味していました。
13年7月12日金曜日
4. But I believe there’s somebody
here who is in need for the
information about using
Windows as guest OS onVagrant
NOW.
でも、今すぐWindowsゲストをVagrantで使い
たい人だって、きっといますよね!
13年7月12日金曜日
5. So, Here’s how & watch out for
✤ Use Vagrant 1.1
✤ vagrant-windows works fine(https://github.com/WinRb/vagrant-windows)
✤ follow Readme.md, but:
✤ ‘installation’ is wrong.
✤ vagrant plugin install vagrant-windows
✤ ‘Enable WinRM’ entries need single quotes.
✤ winrm set winrm/config/winrs ‘@{MaxMemoryPerShellMB="512"}’
ということで、やり方と注意事項です
Vagrantは1.1を使いましょう。
vagrant-windowsのページはちゃんと書かれています
Readmeに従えばOKですが、Installationには間違いがあります。
gemじゃなく、plugin installを使いましょう。
Enable WinRMのところは、シングルクォートが抜けてます
13年7月12日金曜日
6. Setting Local Security Policy for
new networks
✤ By default, Windows treats a new network connection(i.e. has a
different default gateway) as ‘public’ and WinRM is disabled
✤ This causes that Vagrant up timeouts when you use an Windows box in
a different host.
✤ You can change this behavior by setting Network List Manager Policy
in Local security policy.
新しいネットワークが検出されたときのローカルセキュリ
ティポリシーを設定しましょう
デフォルトでは、Windowsは新しいネットワークを検
出すると、それをパブリックと見なすので、WinRMが
通らなくなります。デフォルトゲートウェイが変わる
と、新しいネットワークと見なすらしいです。
そのため、ローカルでBox作ったときにはうまくいって
いるのに、別のホストでそのBoxを使うと、WinRMが
タイムアウトするという問題が起きます。
この振る舞いは、右の図のあたりをいじってやれば解
消できます。
13年7月12日金曜日
7. Setting Startup mode forWinRM
Service
✤ By default, Start up of WinRM Service is delayed.
✤ It causes a strange pause (a minute or two) during Vagrant up process.
✤ Setting startup mode to ‘auto’ fixes this problem.
WinRMサービスの起動モードを設定しましょう
デフォルトでは、WinRMは遅延起動になって
いるため、Vagrant upの処理が終わるまで、
変に時間がかかります。
WinRMサービスを自動起動にしておけば、こ
の問題を解消できます。
13年7月12日金曜日
8. But I’m looking forward to see 1.3 :)
でもやっぱり1.3が楽しみですよね(^^)
13年7月12日金曜日