I'm using VMWare to emulate Ubuntu on my Leopard Mac OS X.
The IP address changes everytime I put the Mac to sleep.
I was wondering if I can avoid that.
You can do this -- just configure the Ubuntu virtual machine with a static IP. The choice of IP will depend on the network you're connecting to... You didn't mention if you were using a NAT or Bridged connection, and the choice of IP will different based on that. I can provide specific instructions if you like, but, they'll be all things you do within the Ubuntu VM, not within the Mac environment. (So you may find better luck asking on http://askubuntu.com or http://unix.stackexchange.com/)
You could also install the "avahi-daemon" package in Ubuntu and then you won't need to remember the VM's IP address, you can use
EDIT: I see you're using a NAT interface. I typed up a long list of instructions only got get stuck on the final step. I'll do more research into this, but in the meantime, here's some instructions which I have not tested, but might work on the Mac side...
Here's incomplete instructions, I will finish them up shortly:
VMware Susion starts assigning IPs via DHCP at
To complement on Josh’s post, the answer is yes, but it depends.
Technically speaking, any OS inside a VM has direct access to either the network card or a private network created by the host OS. In either case, you can configure your VM to have any IP address you want.
Now I assume you want to have your VM with the same IP all the time, so you should switch to bridged connection, which will make the VM believe that it has a dedicated network card that you can later configure as you please. In fact, for the rest of the network, the machine will be a regular computer. VMWare will take care of the virtualization and the virtual Network Card (NIC).