However, for a particular event, I needed to install CentOS into VM rather than directly dropping it onto the hardware.
Since vmware runs its own dhcpd, to dish out its own IP addresses, I needed to redirect it to my server. The solution is relatively simple, but remember, it assumes that you have all PXE boot aspects already configured on the server.
Step (1)
Stop the vmware service:
sudo service vmware stop
Step (2)
Edit vmware's own dhcpd configuration file, to point at you server (here: 192.168.1.242) and its PXE boot file. Below is a snippet of the content. Notice the normally included lease information is now commented out, and the two additional lines point at my server.
Leave the remainder of the file as is.
sudo vi /etc/vmware/vmnet1/dhcpd/dhcpd.conf
[...]
allow unknown-clients;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
subnet 172.16.141.0 netmask 255.255.255.0 {
range 172.16.141.128 172.16.141.254;
option broadcast-address 172.16.141.255;
option domain-name-servers 172.16.141.1;
option domain-name localdomain;
# default-lease-time 1800; # default is 30 minutes
# max-lease-time 7200; # default is 2 hours
filename "pxelinux.0";
# max-lease-time 7200; # default is 2 hours
filename "pxelinux.0";
next-server 192.168.1.242;
}
Step (3)
Start the vmware service:
sudo service vmware start
You are now ready to start VM Player, create a new disk for a new OS (if you haven't done it already) and start the installation. Your VM should redirect to the server, obtain the IP address and continue with the installation.