Coder Social home page Coder Social logo

configuring-a-virtual-machine's Introduction

configuring-a-virtual-machine

To setup a virtual machine running a windows OS, We would be using vagrant and virtualbox.

Vagrant is an open-source software product for building and maintaining portable virtual software developement environments. We can use vagrant to build a box from scratch or use an existing box

Box is the package format for Vagrant environments. A box can be used by anyone on any platform that Vagrant supports to bring up an identical working environment.

Virtualbox is a free and open-source hosted hypervisor for x86 computers currently being developed by Oracle Corporation. Basically, virtualbox enables us to run more than one operating system at a time. For example, On my MacOS I could also run a windows OS.

Prerequisites

To follow along with this guide, we need to have vagrant and virtualbox installed on our system. If you don't have them installed, follow the steps below

  1. Ensure you have homebrew installed on your system or click here for instruction on installing homebrew
  2. To install vagrant, run the command below in your terminal
    brew install cask vagrant
    
  3. To install virtualbox, run the command below
    brew install cask virtualbox
    

Procedure

After completing the prerequisites, follow the steps below to configure a virtual machine on your system.

  1. Clone the repository below on github, run the command below to do that

    git clone https://github.com/kensanni/configuring-a-virtual-machine.git
    
  2. Move into configuring-a-virtual-machine directory

    cd configuring-a-virtual-machine
    
  3. To build the windows OS, run

    vagrant up
    

    This might takes some time, depending on your network connectivity since the size of the box is a little bit large.

  4. run virtualbox to open the virtualbox UI and click on the show button to open your windows OS

When we run vagrant up, vagrant checks for a Vagrantfile. Vagrantfile is a configuration file for vagrant, here we specified an existing windows OS vagrant box.

Trobleshooting

If you are getting an error like the one below

This is most likely caused by a poor network connectivity. To fix this error, ensure you have a stable network and also prevent your system from going to sleep while vagrant up is still running.

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.