Goal: make virtual machine (guest) available to on your LAN
Way 1: change VM and router (dhcp server, dns server) settings, aka. “I own this place”
- the good: any PC on your LAN can access the VM under its name
- the bad: you need full control over dhcp and dns in your network
Way 2: change VM only
- the good: easy setup
- the bad: machines other that the host can access the guest only via its IP address
Mission:
Edit tsvm.vmx, delete those lines:
ethernet[n].generatedAddress
ethernet[n].addressType
ethernet[n].generatedAddressOffset
Add this line:
ethernet0.address = "00:50:56:00:13:37"
You can set another MAC address. It must have the form “00:50:56:XX:YY:ZZ” with XX between 00 and 3F and YY and ZZ between 00 and FF. (hex of course)
From http://www.vmware.com/support/gsx3/doc/network_macaddr_gsx.html
find /etc/udev/rules.d/ -name "*-net.rules" -exec rm {} \;
echo 'KERNEL=="eth*", SYSFS{address}=="00:50:56:00:13:37", NAME="eth"' > /etc/udev/rules.d/10-net.rules
vim /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth
iface eth inet dhcp
In vmware go to Edit ‣ Virtual Network Editor. Set vmnet8 to NAT, tick both Use local DHCP service to distribute IP addresses to VMs and Connect a host virtual adapter (vmnet8) to this network. Set subnet IP to 10.0.0.0. The changes you made are saved to /etc/vmware/vmnet8/dhcpd/dhcpd.conf. Edit this file and append:
host tsvm {
hardware ethernet 00:50:56:00:13:37;
fixed-address 10.0.0.23;
}
Now restart vmware networking services:
/etc/init.d/vmware restart
From http://www.vmware.com/support/ws55/doc/ws_net_advanced_ipaddress.html and http://www.stereoplex.com/two-voices/vmware-fusion-guests-with-a-static-ip