Here is a little something I recently learned about VM Ware images.
I run my classes from these images now…makes setup on my portable lab a snap! Setup one image and copy it to the lab computers…everyone has the same thing…no worries.
When doing the OBIEE training, I’m back to client-server off this quad processor computer…it takes quite a bit to run this image…the Oracle database, the weblogic server, and the BI software.
To get a consistent IP address from your router or hub, follow these simple directions:
Start the VMWare player and open your vmware image. Click on ‘Edit virtual machine settings’. On the left…click ‘Network Adapter’ It should be set like the picture below to ‘Bridged: connected directly to the physical network’.
Click on the ‘Configure Adapters’ right under this area.
Unselect the VirtualBox Adapter…the middle one on my computer. IF you are not using a wireless connection…you can turn the Wireless adapter off here too.
Now…when you start your VMWare image…it will pick up the IP address from the host computer. On this computer, the network card is the Ipv4 listed below. It also helps to know about what IP address will be issued. Notice they are just one apart! Perfect.
Host computer IP address
Vmware IP address
For SQL*Net…you MIGHT have to edit the c:\windows\system32\drivers\etc\hosts file…adding the computer name and its ip address. Plug the above VMWare IP address in here…
This allows for a name to be associated with the IP address of your VMWare server.
In the TNSNames.ora file…you now refer to this name instead of the IP address…easier to adjust the IP address in the hosts file. Otherwise…if you have multiple tnsnames.ora files (as I do…easy to fix…just haven’t done it…a future blog perhaps)…would have to adjust each one with the IP address so the computer name makes things easier.
…and it works. This is SQL*Plus from a client computer…
Just a quick note…I am by no way a VMWare expert. I love the computing environment…I can quickly setup a test environment for any one-time shot. The images I use for my classes…are all from a ‘base’ image as I call it…I make a copy of the base…set the desktop up for the particular class…and simply copy this folder to the lab computers.
Note: I noticed the ip address in the vmware image is NOT dynamic. IF the host computer isn’t on the network…and the VMWare doesn’t have the right IP address…you have to bring down the vmware image, fix the IP issue, and start it again.
It's best if you can give a static IP address to your VMWare server. This saves having to adjust the hosts or tnsnames entry files with the dynamic IP address.
Good luck out there. People in the USA…enjoy the Thanksgiving Holiday.
Dan HotkaOracle ACE Director/Instructor/Author