Thursday, November 5, 2009

VMWare + iWeb - network briding over different networks.

How to get VMWare Server working with iWeb's "Usable secondary addresses"

iWeb sets up their servers with a primary IP on 1 network, then allocates a group of IP's
on a secondary network. The problem is if you want to use VMWare Server to virtualize,
it's not so easy to get bridging mode working.

I was able to get it working and here's what I did (linux):

Enable IP forwarding on your server:

Edit the appropriate line in /etc/sysctl.conf like this:
net.ipv4.ip_forward = 1

You can enable it immediately for testing like this:
echo "1" > /proc/sys/net/ipv4/ip_forward

---------

Take a look at the other small network iWeb has allocated.. eg. 100.100.100.100-105/ 255.255.255.248

Bind the 1st IP to the host. Edit your corresponding /etc/network/interfaces file (ubuntu) to create the ethernet alias.

We're going to use that IP as the gateway for this small network and the linux host will route/forward between the 2 networks.

At this point you can use the other IP's in the network in VMWare with the 1st IP as the gateway.

I just tested this out by copying a 656MB ISO image to test the speed out, and I was able to copy the file over in 1 minute (10MB/s).

So there appear to be no performance issues related to this configuration.

Any other suggested solutions would also be appreciated.