Assigning a fixed IP address to a virtual machine in VMware Fusion 7

‹ Deleting a single URL from Chrome History | Shaing your home directory between Mac OSX and a VMware Fusion 7 Linux Virtual machine ›

1. Find the dhcpd.conf corresponding to the network that your virtual machine is on.  By default the NAT network uses /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf. You can find the right one by running ifconfig (or ipconfig in Windows) inside your virtual machine to find its IP address, and look for a range containing that IP address in all of the dhcpd.conf files.

2. Edit the file to add the portions in green.  Be careful not to use a number in the dynamically allocated range, the host computer's IP, or the DNS IP:

###### VMNET DHCP Configuration. Start of "DO NOT MODIFY SECTION" #####
subnet 172.16.221.0 netmask 255.255.255.0 {
  range 172.16.221.128 172.16.221.254;
  option domain-name-servers 172.16.221.2;
}
host vmnet8 {
  hardware ethernet 00:50:56:C0:00:08;
  fixed-address 172.16.221.1;
  ...
}
####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######
host my-ubuntu-14 {
  hardware ethernet 00:0c:29:4e:1b:60;
  fixed-address 172.16.221.10;
} # My Ubuntu 14.04 virtual machine

3. Restart the dhcpd, which you can do by shutting down all virtual machines and the main vmware application entirely and restarting it.

Subscribe to All Posts - Wesley Tanaka