Git Product home page Git Product logo

msedge-vagrant's Introduction

This Vagrantfile helps to setup and provision the Virtual Machine "Windows 10 with Legacy Microsoft Edge and Internet Explorer 11" provided by Microsoft for usage with Vagrant.

Prerequisites

Only VirtualBox and Vagrant are required. On macOS, these dependencies can be installed using Homebrew:

$ brew install --cask virtualbox
$ brew install --cask vagrant

For managing your Vagrant virtual machines, I can recommend the use of Vagrant-Manager, a small utility app for the menu bar.

$ brew install --cask vagrant-manager

Usage

The Vagrant Box from Microsoft, which provides "Windows 10 with Legacy Microsoft Edge and Internet Explorer 11", has to be downloaded and added into your local Vagrant installation under the name MSEdge. This process can be automated with the script prepare.sh:

$ # in case jq isn't installed yet:
$ brew install jq
$ ./prepare.sh

Some parts of the provisioning process can be configured. To make this possible a file config.ps1 is expected. If it doesn't exist, prepare.sh will create one based on config.dist.ps1.

To build the virtual machine based on the above Vagrant Box and your configuration, you only need to execute

$ vagrant up

This will create the virtual machine, updates the VirtualBox guest tools and applies the provisioning. This can take some time, please wait until the command is finished before using the VM. When the VM is ready, it has been rebooted and the user IEUser is logged on automatically.

The VM uses an account with username IEUser and password Passw0rd!. To access the VM, a remote desktop connection can be used as well:

$ vagrant rdp

The host (the computer running Vagrant) from the perspective of VM can be reached via the IP address 10.0.2.2 or the hostname vagrant-host (if not changed in config.ps1).

So if your local running web application is listening on *:8443, you can access it via https://10.0.2.2:8443 or https://vagrant-host:8443. If it is listening on localhost:8443, you first have to set up a reverse ssh tunnel, so you can access it via https://localhost:8443 from within the VM as well:

$ vagrant ssh -- -R8443:localhost:8443

If your application expects to be accessed via a custom host name, modifiy $hostsFile in config.ps1 accordingly.

Windows Updates

The VM can be unusable for a significant amount of time due to the search and installation for updates. Therefore, the automatic update feature of Windows Update can be disabled in the configuration of the provisioning.

If you do so, I strongly recommend to manually initiate the installation of the updates when you do not need the VM but as soon as possible.

System UI Language

If you need another Windows display language than the preinstalled "English (United States)", you have to install the corresponding language pack by your own via the Settings app.

msedge-vagrant's People

Contributors

chkpnt avatar fazlearefin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.