Upload
-
View
1.287
Download
0
Embed Size (px)
DESCRIPTION
2013/7/12のHashimotoさん来日記念Vagrant meetupでLTするはずだった資料です。時間切れで発表できませんでしたが、VagrantでWindowsゲストを使いたい方は参考にしていただければと思います。
Citation preview
2013/7/12 Vagrant Meetup
Windows Guest on Vagrant
玉川竜司
13年7月12日金曜日
軽く自己紹介
Sky株式会社でいろいろやってます。兼業翻訳やってます。tamagawa_ryuji@twitter / Ryuji Tamagawa@FB
13年7月12日金曜日
I had a conversation with Hashimoto-sanbefore this meetup.
What he told me wasSomething makes this presentation meaninglessnot before long.
この勉強会の前に、少しHashimotoさんと
話をする機会がありました
彼が話してくれたことは、このプレゼンテーションの内容が遠からず意味なしになってしまうということを意味していました。
13年7月12日金曜日
But I believe there’s somebody here who is in need for the information about using Windows as guest OS on Vagrant
NOW.でも、今すぐWindowsゲストをVagrantで使い
たい人だって、きっといますよね!
13年7月12日金曜日
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日金曜日
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日金曜日
Setting Startup mode for WinRM 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日金曜日
But I’m looking forward to see 1.3 :)
でもやっぱり1.3が楽しみですよね(^^)
13年7月12日金曜日