LoginSignup
90
89

More than 5 years have passed since last update.

modern.IE を Vagrant で使う

Last updated at Posted at 2014-09-20

Mitchell さんの Tweet で modern.IE の Vagrant 用イメージが公開されていることを知ったので試してみました。

Modern.IE については「 無償で Web ページの検証ができる modern.IE. とは? - monoe's blog - Site Home - MSDN Blogs
」で詳しく説明されていました。

Vagrant 用で対応している仮想環境は今のところ VirtualBox だけの様ですです。Vagrant 用でなければもっと幅広く対応されています (Hyper-V, VMware, Virtual PC, Parallels など)。

$ vagrant init xp-ie6 http://aka.ms/vagrant-xp-ie6
$ vagrant up

ダウンロードに時間がかかるのでしばらく待ち時間がありますが、すでに VirtualBox で Vagrant を使っていればたったこれだけで IE の実行環境が立ち上げられます。便利ですね。

イメージファイルは次のものがあるようです。

  • XP with IE6
  • XP with IE8
  • Vista with IE7
  • Windows 7 with IE8
  • Windows 7 with IE9
  • Windows 7 with IE10
  • Windows 7 with IE11
  • Windows 8 with IE10
  • Windows 8 with IE11 (リンク先が Win7 IE11 になってる)

ライセンスへの同意があるのでリンクはこちらにしておきます。
http://blog.syntaxc4.net/post/2014/09/03/windows-boxes-for-vagrant-courtesy-of-modern-ie.aspx

~/.vagrant.d/boxes/ 内のサイズは XP-IE6 が 701M で Win7-IE11 が 3.5GB でした。

SSH 接続はできないので Vagrantfile に config.vm.boot_timeout を小さい値で設定しましょう。

そして headless モードでは不便なので、コメントアウトされている gui 設定アンコメントしましょう。

config.vm.provider "virtualbox" do |vb|
  vb.gui = true
end

ぶっちゃけ、ゲストが Windows の場合 vagrant ではインポートだけやって VirtualBox マネージャで起動や停止したほうが良いかもしれず。
Vagrant 用の box ファイルじゃない VirtualBox 用の仮想イメージも提供されてます。
https://modern.ie/ja-jp/virtualization-tools#downloads

90
89
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
90
89