Getting windows running in Parallels 6 to see a site hosted on OS X apache virtual host

01st Sep, 2011 | osx parallels unix web

1) Use the instructions in Elric's post, just above, to get things into their default state, and then change the IP range if you need to (I use the 10.x.x.x range for other things, so for Parallels, I use address in the 172.31.x.x range)

2) Launch the Terminal (Applications>Utilities>Terminal) if it's not already running, and type: ifconfig

3) As joevt stated above "In Mac OS X, the Parallels shared networking interface is vnic0", so look for a block in the terminal output something like this:

Code:

vnic0: flags=8843 mtu 1500

ether 00:1c:42:00:00:08

inet6 fe80::21c:42ff:fe00:8%vnic0 prefixlen 64 scopeid 0x7

inet 172.31.0.2 netmask 0xffffff00 broadcast 172.31.0.255

inet6 fec0:0:0:fea9::2 prefixlen 64

media: autoselect

status: active

4) Note down the address after "inet" within the block (you'll note that mine was 172.31.0.2)

5) On the parallels virtual machine, you need to edit the hosts file, which can be found at this path under Windows XP:

Code:

C:WINDOWSsystem32driversetc

6) Add lines corresponding to your sites as configured within apache, which will look something like this:

Code:

172.31.0.2 my.coolsite.com

172.31.0.2 apache_local

7) For details, you may find some parts of the originally linked article useful, but keep in mind that the options within Parallels changed with version 6, but hopefully the current post will help with that.

Good luck!