Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pow and VMware Fusion

I am using Pow to serve a Rack application on Mac OS X. http://myapp.dev correctly displays the application. On the same machine I am using VMware Fusion to run Windows 7 while sharing the Mac's network connection. I would like to test the Rack application using Internet Explorer within the VM. http://vmnet8.adapter.ip.address correctly displays the "Pow is installed screen". However, htttp://myapp.dev no longer works.

I understand that Pow creates a DNS resolver and uses it's own DNS server to intercept domains ending in ".dev" and redirect them to localhost. Is it possible to get this to work within the VM also?

like image 850
Martin Harrigan Avatar asked Oct 18 '11 16:10

Martin Harrigan


2 Answers

In my case I uses virtualbox, but it looks like it is kind the same concern I had to deal with, so:

  • Get the IP used by your Mac with ifconfig or any other way you prefer. In this case lets assume the IP address is 10.249.158.68

  • This link explains how to execute POW server from other computer; in our case it will be the virtualized Windows image: http://pow.cx/manual.html#section_2.1.5

So open IE[7|8|9] on your Windows virtual machine and type: http://myapp.10.249.158.68.xip.io/ ---> replaces "myapp" to the name used in your Mac to refer your project

like image 185
Alonso Baldioceda Avatar answered Nov 11 '22 13:11

Alonso Baldioceda


Create a symlink in your ~/.pow directory called default, and point it to the app you would like to test in VMWare. http://vmnet8.adapter.ip.address will now use that app instead of presenting the default pow screen, as will http://<myhostname>.local.

like image 28
Peter DeWeese Avatar answered Nov 11 '22 14:11

Peter DeWeese