Playing with VMWare, Linux and Oracle sttuff

Our systems are traditionally purchased by large retailers and run on dirty great big servers with oodles of CPU, memory and disk. To educate ourselves on new versions, etc we have taken to installing Linux virtual machines on our laptops. They are not huge though, 2ghz core 2 duos with 2gb of RAM, so we have to be frugal with resources, which we all know Oracle products traditionally are not. If you want to get more RAM the request apparently ends up on you know who's desk and I am not into troubling him too much.

We need an Oracle 10G database with an RMS schema and Oracle Forms for the base merchandising system, RMS. When one starts all of this on the VM performance is not great but at least one can check out some stuff. Being Oracle we use Oracle Enterprise Linux. The products are certified on OEL 4.5 but I am currently mucking around with 5.3. The database and RMS Proc batch needs 64 bit while the Oracle App Servers are all 32 bit. Weird that, I find, not yet figured out why the app servers are still 32 bit. That makes for a bit of discomfort on 64 bit Linux as it does not support 32 bit apps as easily as AIX does. You need to run OAS after running 'linux32 bash' at the shell prompt. I would prefer it to be an option in /etc/inittab.

We tend to use VMPlayer 2 as it is nice and light and easy to get going. I have tried VMWare Server 2 which I quite like except for the fact that it does not have the nice easy files sharing with Windows that VMPlayer has. With a bit of tweaking one can see all your Windows shares from the Linux VM under /mnt/hgfs. I dislike Windows shares as they are not very safe but our software is quite large and I keep it in a stage directory on my USB drive and then share it with the Linux VM. I then create a symbolic link from the user's $HOME/stage to wherever my software is. Make sure to set up good permissions on the shares - read only for everyone except yourself. Make sure your firewall is on too on Windows.

I cut my Unix teeth on SCO Xenix, SCO Unix, Interactive Unix and Unixware on PCs as well as Solaris on Sun and AIX on IBM. The Korn shell rules although most of my scripts run on the good old Bourne shell. I used to run about 8 users on terminals off a 386 PC with 16mb of RAM on SCO Unix, Oracle 6 and Forms 2! I sort of watched the whole Linux thing with one eye and played around with it a bit but it got on my nerves as it was a Unix clone and not a 'true' Unix, like System V Release 4. A lot of the utilities have different arguments. It has matured nicely though and in spite of my reservations is a nice product, lots of good device support and gazillions of utilities and apps. Shell cripts that run fine on other Unixes like Solaris and AIX don't always run so well on Linux though. For example it does not seem to handle the shell formatting characters like \c, \t and \n and my scripts are full of them. I even see a few of the Oracle Retail supplied scripts failing on Linux that run fine on others, oops! And where the h*ll is the banner command!

I am inquisitive to see what Oracle is going to do with Solaris. I had a very soft spot for Unixware too, pity that died. Cudos to Linux' longevity though, shows what the support of the masses does for a product. It's very fast too, I once did a comparison on two similar PCs way back on 2003 in Sydney on a project. Installed Oracle on Windows NT and Linux and the Linux version was done long before the Windows version.

So at the moment I am experimenting with the networking on my Linux VM. I want to have a fixed IP address and see the Internet as well. To complicate this we often work on the Oracle VPN as well as other client VPNs. One of the nice things about my job is that when I am not on site at a client I work from home. This does make networking a little trickier. My VM is st up with NAT and after a lot of digging around and begging uncle Google I discovered the VMPlayer utility called vmnetcfg.exe in the VMPlayer installation directory. These are my assumptions:
4.1. You want to be able to access the Internet from the Linux VM for patches, RPMs, updates from Oracle, etc.
4.2. VMnet1 is the Windows private network interface shared with the host
4.3. Vmnet8 is the Windows interface on the subnet the VM runs on – seems to be 192.168.1.0
4.4. Set a fixed IP of 192.168.1.1 on the Windows VMnet8 interface
4.5. Set a fixed IP of 192.168.1.3 on the Linux VM.
4.6. Remove DHCP from VMnet8 in the vmnetcfg.exe GUI.
4.7. Add a gateway of 192.168.1.2 and DNS of 10.167.162.36 (Oracle), 67.138.54.100 (Scrubit free DNS) and any other, preferably one from your home ADSL router, to Vmnet 1 and 8. Do a ipconfig /all in a Dos window and check the DNS IP addresses.
4.8. Set the VMWare DHCP Service to manual and stop it in Windows Services.
4.9. Edit /etc/hosts as follows – vhost is an alias for the Windows host, in my case pmstewar-za or peter – format is IP Address hostname alias with tabs as separators:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.3 jabba.oracle.com jabba
::1 localhost6.localdomain6 localhost6
192.168.1.1 vmhost pmstewar-za peter
192.168.1.2 gateway

Will so how this goes. For now I get out onto the Internet from the VM. Need to go hunting for some RPMs for the 32 bit OAS.

Comments

Popular posts from this blog

End of our ALS road

Traversing Ikea

My Job