LoginSignup
2
3

More than 5 years have passed since last update.

vagrantでmodern.IE動かす

Posted at

昔やって出来なかったのでリベンジ

とりあえず書いた時のバージョン

$ vagrant -v
Vagrant 1.8.1
$ virtualbox -h
Oracle VM VirtualBox Manager 5.0.16

共通

$ mkdir ~/modern_ie/ && cd $_
$ vagrant init win81-ie11

Windows8.1 + IE11

box追加する

$ vagrant box add win81-ie11 http://aka.ms/vagrant-win81-ie11
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'win81' (v0) for provider:
    box: Downloading: http://aka.ms/vagrant-win81-ie11
==> box: Box download is resuming from prior download progress
==> box: Successfully added box 'win81-ie11' (v0) for 'virtualbox'!
$ mkdir ~/modern_ie/win81-ie11/ && cd $_
$ vim Vagrantfile

Vagrantファイルに下記追記

  # 追記
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
  end
  config.vm.guest = :windows
  config.vm.communicator = "winrm"
  config.vm.network :forwarded_port, guest: 3389, host: 3389
  # メモリ
  vb.memory = "1024"
  # クリップボードの共有: 双方向
  vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
  # ビデオメモリー(MB)
  vb.customize ["modifyvm", :id, "--vram"  , "128"]

立ち上げる

$ vagrant up

とりあえず立ちあがるところまで確認した

Windows10 + edge

$ vagrant box add win10-edge modernIE/w10-edge
==> box: Loading metadata for box 'modernIE/w10-edge'
    box: URL: https://atlas.hashicorp.com/modernIE/w10-edge
==> box: Adding box 'modernIE/w10-edge' (v0.0.3) for provider: virtualbox
    box: Downloading: https://atlas.hashicorp.com/modernIE/boxes/w10-edge/versions/0.0.3/providers/virtualbox.box
==> box: Successfully added box 'win10-edge' (v0.0.3) for 'virtualbox'!
$ mkdir ~/modern_ie/win10-edge/ && cd $_
$ vagrant init win10-edge
$ vim Vagrantfile

Vagrantファイルに下記追記

  # 追記
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    # メモリ
    vb.memory = "1024"
    # クリップボードの共有: 双方向
    vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
    # ビデオメモリー(MB)
    vb.customize ["modifyvm", :id, "--vram"  , "128"]
  end
  config.vm.guest = :windows
  config.vm.communicator = "winrm"

立ち上げる

$ vagrant up

とりあえず立ちあがるところまで確認した

先駆者が居ると楽だわね

http://qiita.com/sl2/items/935be39daa549c3d279c
http://dackdive.hateblo.jp/entry/2016/03/11/094501

2
3
0

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
2
3