How to Install Drupal VM on Windows

Installing drupal vm on windows

An OSTraining member asked how to use the Drupal VM environment on Windows. Drupal VM is a virtual machine that contains many convenient utilities for local Drupal development

In this tutorial, we will install Drupal VM in a few simple steps.

Download

First, you will need to download the following:

Step #1. Install

Install Vagrant and Virtualbox. You must make sure these are up to date in order for the vm to run correctly.

Extract the Drupal-VM from github into the location you wish to install the local Drupal VM.

Open Now command prompt with administrative powers:

  • In windows search type com and right click on the command prompt and select run as administrator 

4# cd into the folder with the administrative command prompt

with my setup that would be :

cd d:\drupalvmtest\drupal cd.. d:

Step #2. Initiate Vagrant

vagrant up

This can take around minutes depending on how good your machine is. However, everything is 100% automated, so you can leave it working and check back later.

Once completed you will have status report with 4 options. If failed=0, everything has completed successfully and you can continue.

Step #3. Making the VM accessible via the browser

Open up notepad with administrative powers (see step 3).

Navigate to C:\Windows\System32\drivers\etc.

Change the open type to All Files (*.*).

Select hosts, go to the end of the file and add 192.168.88.88 drupalvm.dev . Save the file and close it.

Step #4. Check the vm is working

Enter drupalvm.dev in your browser should bring up the drupal 8 main page.

Step #5. Login

By default the login and password are admin and admin

Author

0 0 votes
Article Rating
Subscribe
Notify of
6 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Jeff Geerling
Jeff Geerling
7 years ago

Ha, perfect timing for this post! I just posted a video walkthrough of the same thing to my YouTube channel, which makes a great companion for more visual learners: [url=https://www.youtube.com/watch?v=mNio_aXMLos]https://www.youtube.com/wat…[/url]
Also, to save the steps in manually editing the hosts file, run the command `vagrant plugin install vagrant-hostsupdater`, and this will install a plugin to do the dirty work for you!

Huub Mengede
Huub Mengede
7 years ago

I’m Getting errors all the way.

I downloaded the latest files available as for download and followed the text above to the letter. What obviously doesn’t work.!

Instead of D: I have to use F:, but that shouldn’t be a problem.

I’m also working on windows 10 pro and not on a linux version.

In order of download and install:

1. vagrant_1.8.4.msi

2. VirtualBox-5.0.24-108355-Win.exe ( Even tried to make a VM with this name: geerlingguy-drupal-vm-1a82cc3 )

3. [url=http://geerlingguy-drupal-vm-3.1.3-0-g1a82cc3.zip]geerlingguy-drupal-vm-3.1.3…[/url]

(4. As last option I tried overwriting #3 with [url=http://drupal-vm-master.zip]drupal-vm-master.zip[/url] from the GitHub.)

Doesn’t make any difference for the outcome / error messages.!
This is what I keep getting:

F:\drupalvmtest\Drupal\geerlingguy-drupal-vm-1a82cc3>vagrant up

Bringing machine ‘drupalvm’ up with ‘virtualbox’ provider…

==> drupalvm: Box ‘geerlingguy/ubuntu1604’ could not be found. Attempting to find and install…

drupalvm: Box Provider: virtualbox

drupalvm: Box Version: >= 0

The box ‘geerlingguy/ubuntu1604’ could not be found or

could not be accessed in the remote catalog. If this is a private

box on HashiCorp’s Atlas, please verify you’re logged in via

`vagrant login`. Also, please double-check the name. The expanded

URL and error message are shown below:
URL: [“[url=https://atlas.hashicorp.com/geerlingguy/ubuntu1604]https://atlas.hashicorp.com…[/url]”]

Error: SSL certificate problem: unable to get local issuer certificate

More details here: [url=http://curl.haxx.se/docs/sslcerts.html]http://curl.haxx.se/docs/ss…[/url]
curl performs SSL certificate verification by default, using a “bundle”

of Certificate Authority (CA) public keys (CA certs). If the default

bundle file isn’t adequate, you can specify an alternate file

using the –cacert option.

If this HTTPS server uses a certificate signed by a CA represented in

the bundle, the certificate verification probably failed due to a

problem with the certificate (it might be expired, or the name might

not match the domain name in the URL).

If you’d like to turn off curl’s verification of the certificate, use

the -k (or –insecure) option.

So obviously something in the “fully automated install” file of you is wrong or missing, or you forgot to ad some extra info in the article above.

Looking forward to some response.

Nick
7 years ago
Reply to  Huub Mengede

Hi and welcome, Huub!
Please sign up for one our very affordable support plans at [url=https://www.ostraining.com/pricing/]https://www.ostraining.com/…[/url] and Daniel will be able to help you out directly.
Cheers,

Huub Mengede
Huub Mengede
7 years ago
Reply to  Nick Savov

If I could I would, but I can’t. Way to expensive for me. 🙁 (No income atm at all, no job since a couple of years due to sickness. So that’s why I’m looking for open source and free stuff to set up a local Drupal site so I’m be able learn it.)
I don’t mind to wait a little longer.
But besides that…
Something has to be wrong with and/or missing from the tutorial above.

(I’ve got Mint Cinnamon 18 64bit version installed and working without errors in Virtual Box, so that program can’t be the culprit.)

Thom Toogood
Thom Toogood
7 years ago

Hi Huub,
Maybe you could try beetbox — [url=https://github.com/beetboxvm/beetbox]https://github.com/beetboxv…[/url]
It’s essentially a DrupalVM fork which uses all the same base roles and the setup is a little easier.

You’ll still need the latest versions of Vagrant & Virtualbox but from there you only need to drop the project Vagrantfile into your own drupal project (in the same the directory as index.php) — [url=https://raw.githubusercontent.com/beetboxvm/beetbox/master/Vagrantfile]https://raw.githubuserconte…[/url], then vagrant up.
If you need help please post an issue to the project — [url=https://github.com/beetboxvm/beetbox/issues]https://github.com/beetboxv…[/url]

Disha
Disha
4 years ago

I get a blank page when I type drupalvm.dev in my browser

6
0
Would love your thoughts, please comment.x
()
x