Archive for November, 2007

VMware Server +nat -dhcp?

Saturday, November 10th, 2007

I’ve just been testing an install CD for enkix, our custom Debian installer, to make sure it works next week when I re-install some servers in Paris.

The problem is that our datacenter lacks a dhcp server (everythings static), whereas I had never tested enkix using static IPs before (all installs were done at the office).

Vmware was my poison of choice for this task, since it offers sevral network parameters: Bridged networking using the offices DHCP, net using it’s own DHCP, and a host only network using…. it’s own DHCP. Hmm… and what happens if you just don’t like DHCP? What if you want everything static? Or if you prefer Avahi? Or, as is in my case, you’re testing for a DHCP-less environment and DHCP is the last thing you want?

After a few fruitless searches on the web, the solution was revealed by probing /etc/vmware. In the network sub directories (vmnet0-vmnet8), those which have a DHCP server have a dhcp sub directory, the others don’t.

Solution: Just create a natted vmnet, then pop into the corresponding directory, rm -rf dhcp and /etc/init.d/vmware restart, problem solved.

One last thing: if you do this, please make a note of the network parameters before hand, since it’s always some funny value like 192.168.28.x