ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

SOLVED: Windows 7 (64-bit) & Installing VirtualBox Instance Using Vagrant #276

Open jmwoloso opened 9 years ago

jmwoloso commented 9 years ago

Hello!

When I have VirtualBox open during "vagrant up" I get an error from VirtualBox that says: "The instruction at 0xd67e8342 referenced memory at 0x00000021. The memory could not be read."

I'm pretty sure VirtualBox is configured fine because I'm doing a Udacity course on Hadoop which uses a VirtualBox instance and it runs just fine.

Here is the command line output from running "vagrant up":

(Canopy 64bit) c:\Code\oreilly\Mining-the-Social-Web-2nd-Edition>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'precise64' could not be found. Attempting to find and install. .. default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Adding box 'precise64' (v0) for provider: virtualbox default: Downloading: http://files.vagrantup.com/precise64.box default: Progress: 100% (Rate: 367k/s, Estimated time remaining: --:--:--) ==> default: Successfully added box 'precise64' (v0) for 'virtualbox'! ==> default: Importing base box 'precise64'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: Mining-the-Social-Web-2nd-Edition_defau lt_1434645153637_340 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 8888 => 8888 (adapter 1) default: 5000 => 5000 (adapter 1) default: 27017 => 27017 (adapter 1) default: 27018 => 27018 (adapter 1) default: 27019 => 27019 (adapter 1) default: 28017 => 28017 (adapter 1) default: 22 => 2222 (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff' state. Please verify everything is configured properly and try again.

If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you're using VirtualBox, run vagrant up while the VirtualBox GUI is open.

jmwoloso commented 9 years ago

Should also add that I'm running Win 7 (64-bit)

jmwoloso commented 9 years ago

This solution worked like a charm!

Note: The place to enter the code is highlighted in the .png I attached. In my Vagrantfile that was at line 60. The solution is from Issue #170. In that thread the user posts a link to the original source for the two lines of code.

Code to Enter in Vagrantfile (which is inside the directory you cloned the source files from, i.e. on your computer): vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]

vagrant_fix