Using MAMP and VirtualHostX with Parallels


In Geek & Mild's post on using MAMP and VirtualHostX in conjunction with VMWare, there are no less than four requests in the comments section asking how to run the same local webdev set-up using Parallels instead of VMWare. Well, I've got it running on my machine and I'm here to show you how I did it. It's quite easy, actually. (If you have not yet set-up MAMP and VirtualHostX, do follow Sean's excellent steps in the aforementioned article above).

  1. First of all, go to OS X's System Preferences and click on Network.
  2. Select Parallels NAT in the left pane. Copy the IP Address below the Configure drop-down with "Using DHCP" selected.
  3. Select "Using DHCP with manual address" from the Configure drop-down menu and paste the IP Address you copied onto the IP Address field. Click apply.
  4. Launch Parallels and go to Start>Run.
  5. Copy and paste the following in the Open field: wordpad c:\\windows\\system32\\drivers\\etc\\hosts and click OK.
  6. Type on a new line each of your hosts using the IP from the OS X side (the IP supplied here is just a sample):

    10.211.55.X mysite.dev
    10.211.55.X mysite2.dev

  7. Click Save. You should now be able to view the virtual host sites you set up in VirtualHostX under Parallels.

Resources:

Setting Up a Killer, Local Web Development Environment on a Mac With MAMP and VirtualHostX

, , , , ,

  1. #1 by Seven Jeans - August 7th, 2009 at 04:04

    It is a bit confusing. Could you please post it with the screenshots?

  2. #2 by dano - August 21st, 2009 at 06:28

    “Using DHCP with manual address”
    when I select this option the IP address changes to 0.0.0.0

  3. #3 by Daniel Dy-Liacco - August 21st, 2009 at 16:34

    Hello Seven Jeans, your request has been granted! I've added screenshots to each step.

  4. #4 by Daniel Dy-Liacco - August 21st, 2009 at 16:36

    Hi Dano, steps 2 and 3 should clear it up for you now.


(will not be published)

Be sure to wrap all code in <code></code> tags.

Submit Comment
  1. No trackbacks yet.