Using MAMP and VirtualHostX with Parallels

(The following steps apply to Parallels 4. For updated steps using Parallels 5, please see this post at bechase.com.)

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

Technorati Tags: , , , , ,

  • http://discounteddesignerjeans.co.uk Seven Jeans

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

  • dano

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

  • http://www.hyperarts.com/ Daniel Dy-Liacco

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

  • http://www.hyperarts.com/ Daniel Dy-Liacco

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

  • Jason

    Thanks for the free tutorial Daniel. I know you wrote this back in 2009 and the actual steps are slightly different for the parallels 5 & 6, but the concept is the same, so it still helped a lot.

    Jason Allen
    Webmaster

  • http://www.eye-wrinkle-cream.net jools

    Thanks for this tutorial with screenshots. Make it all a lot easier. I’m trying to configure a virtualhost right now, and it hasn’t been easy. I really should have just hired someone who’s better at it than me, but I like a good challenge. Thank god for tutorials like this.

  • http://www.mousekick.com Brian Seal

    Hi thank you for sharing this, Im a beginner when it comes to this stuff.. is this applies to all type of OS i mean windows xp, 7, or vista?