Navigate/Search

Archive for the 'VMWare' Category

Quick Post : Oracle jDeveloper Technical Preview 3 Virtual Machine

Tuesday, January 1st, 2008

Just a quick post on something I was working on, my father passed away suddenly yesterday so I don’t have as much time to put into this post as I had hoped. Anyways, over the holiday I put together a quick Ubuntu VMWare virtual machine with Oracle XE, the new 11g Technical Preview 3 jDeveloper release and the SOA suite. Over the last week I uploaded it to Amazon S3 and am now distributing it as a torrent. Here are the links to the four torrent files (Amazon doesn’t let you compress multiple files into a single torrent).

http://www.matttopper.com/personal/torrents/Oracle11gTechnicalPreview.disk1.zip.torrent
http://www.matttopper.com/personal/torrents/Oracle11gTechnicalPreview.disk2.zip.torrent
http://www.matttopper.com/personal/torrents/Oracle11gTechnicalPreview.disk3.zip.torrent
http://www.matttopper.com/personal/torrents/Oracle11gTechnicalPreview.disk4.zip.torrent

It is a VMWare virtual machine, personally I still like VMWare because I can run it on my laptop and take it with me anywhere. Oracle VM has its place in the server room, but not on the desktop, yet. It can be used by anyone with VMWare Player (www.vmware.com) for free.

The username and password for the machine is : oracle / oraclevms
These are torrents so please continue to seed them after your downloads are complete, this is the only way I’ll be able to afford to keep them online for people. If you are new to torrents check out http://support.bittorrent.com/ there you will find all the info you need, or just ask one of your pirate friends and I’m sure they can help you out. Admittedly the VM isn’t as nicely put together or as small as I normally do, but due to the circumstances I hope people can understand. I may be offline for a few days, but enjoy the download. This is my trial run for the bigger Oracle/VMware torrent site I hope to have together soon. Thanks to everyone helping with it, we’ll be launched shortly.

Oh yeah, and don’t forget to “Click It” below: ;-)

Leave it to Dan to spill the beans…side project in Alpha

Wednesday, September 5th, 2007

Well, as many of you know, Dan Norris and I used to work together at ITC. He decided to go join some company known for handing out mints that tend to appear in peculiar places. In his post today he linked to the new site I’ve been working on. It’s obviously not live, but I linked in the blog section tonight. I still have some work to do on the templates in both the blog and wiki sections, some organization of the wiki, a couple entries in the FAQ, and a digg style rating system for users. I’ve worked out all my kinks with Amazon’s S3 service for the torrent downloads, now I’m in the process of uploading the initial VMs.

The first ones to be released will be a generic Oracle Enterprise Linux Update 5 VM with all the pre-configuration completed for database and application server installs. Next up will be a Portal 10.1.4 / BI 10.1.2.2.0 vm, an 11g database vm, and then hopefully Dan’s RAC vms.  The IdM VMs will come after that.  I’ve also had offers from Mark and John @ Rittmanmead.com for some of their BI and Data Warehousing VMs, hopefully I can catch up with them for dinner before the BIWA summit.

I’ve been busy with a whole bunch of client stuff lately, when Dan left ITC he also left me with a pretty healthy pipeline to deliver to, and I had already been booked for a client through the end of the year. (BTW, any Fusion Middleware guys need a job?) Needless to say, I’ve been a little busy lately and the horrible hotel upload speeds haven’t helped the situation in pushing things to Amazon.

So for now, go ahead, start using it. Tell me whats good, whats bad, what works, what doesn’t work, and I’ll do my best to keep on top of things. The OracleVMs.com project forum (http://www.oraclevms.com/forums/project.php?projectid=8) is the best place to log bugs, issues and feature requests. Feel free to start putting them there and I’ll slot them into the release cycle.

Game back on!!

Sunday, August 5th, 2007

As some of you know, I was working on a side project a while ago to provide pre-built Oracle virtual machines and distribute them via torrents over the net. I talked a little bit about it back here. Well some people got wind of it and warned me that I would face problems with the Oracle licensing and it would be best if I didn’t move forward. Luckily, the Oracle licensing has been changed and I should be able to move forward. Also, Amazon’s S3 service is now providing torrent based seeding for files. Somehow their bandwidth bills are a lot less than mine (I guess when you buy in bulk you have quite the cost savings ;) )

Thanks to the people that helped out the first time beta testing and then getting disappointed when I didn’t actually launch the thing. I promise this time will be different, if anyone wants to help out let me know. I’m geeked about this again!!!

Blank VMware Guest on Server When Moving to Linux from Windows?

Sunday, April 29th, 2007

I’ve had a lot of people ask me about this lately, so I figured I’d write a quicky on how to fix this problem.

Problem Behavior:
A virtual machine was built in VMware Workstation on Microsoft Windows.  The person then FTP’d the machine to a Linux based VMware Server instance so that the image could be run in a central location.  After logging into the VMware Console for the server box, they boot the newly transferred virtual machine, but there is nothing on the interface.  The box boots fine, they can see it come up on the network, the MUI shows the box up and running and serving requests but each time the machine is connected to through the console it just displays a blank screen.
Solution:
The problem comes with permissions error on the Linux OS.  In order to see the machine through the console the vmx file must be executable for the user you’re starting it as.  The machine has no problem being bootable because it is readable, but in order to view it it must also be executable.

How to fix it:
Log into your Linux based VMware Server machine and find the directory where the virtual machine you are starting is located at.  Find the .vmx file and chmod it so that it’s executable i.e. chmod 755 myvm.vmx

Thats it.  Reboot the machine, reconnect through the VMware Console and you’re good to go.  This one stumped me for a while the fix time I came across it.

Collaborate Papers

Thursday, April 26th, 2007

I’ve had a lot of inquiries since Collaborate to get copies of my papers and presentations I gave. So I figured I’d put them up for everyone to download directly. If you click the “Papers and Presentations” link in the banner they are all listed there, or you can just click on the URL below:
http://www.matttopper.com/index.php?page_id=17

If you want any additional info on the topics feel free to call or email me. My contact info is on the right.

Collaborate Plans

Friday, April 13th, 2007

I finally got a chance to sit down and figure out which sessions I want to attend at next week’s Collaborate conference. I’ve been busy working on some proof of concepts and Oracle BIEE training material for the last couple weeks, as well as taking over the lead on a project from one of our developers. With giving 5 presentations and client meetings it really didn’t leave much room for going other presentations. So without further ado, here’s my planned schedule, more of a reference for me than anyone else.

START DATE START TIME END TIME ROOM TITLE
Sunday, Apr 15 10:00 AM 4:00 PM airport Travel to LAS
Monday, Apr 16 8:15 AM 9:00 AM Open 10 Ken Jacobs keynote
Monday, Apr 16 9:15 AM 10:15 AM Surf E PRESENTING: Oracle Identity Management – The Total Identity Solution
Monday, Apr 16 10:30 AM 11:30 AM Breakers D Using BIEE with Oracle eBusiness Suite
Monday, Apr 16 3:30 PM 4:30 PM Mandalay Bay C PRESENTING: Virtualizing Your Development and Test Environment with VMware
Tuesday, Apr 17 9:45 AM 12:00 PM Palm D PRESENTING: Oracle RAC load balancing and failover options
Tuesday, Apr 17 3:30 PM 4:30 PM Reef C Oracle’s BI Roadmap
Tuesday, Apr 17 4:45 PM 5:45 PM Palm D PRESENTING: Developing Speedy Applications with AJAX
Wednesday, Apr 18 8:30 AM 9:30 AM Surf C PRESENTING: Securing Web Services
Wednesday, Apr 18 9:45 AM 10:45 AM Surf C Defining Customer Approach for Master Data Management
Wednesday, Apr 18 11:00 AM 12:00 AM Breakers H CRM Analytics Overview
Wednesday, Apr 18 3:15 PM 5:30 PM Reef B Fusion Middlware SIG
Wednesday, Apr 18 7:30 PM 10:30 PM Beach Collaborate 07 Beach Party
Thursday, Apr 19 8:30 AM 9:30 AM Lagoon D Oracle 11g Database: Data Warehouse and Business Intelligence
Thursday, Apr 19 1:00 PM 11:00 PM airport Flying Home

I’m glad to be heading out next week, I work out of my home office most of the time when I’m not at a client site so this is going to give me a chance to meet face to face a lot of the people I talk to on a daily basis. Along with a bunch of friends who I don’t get to see very often.If I’m not presenting and you want to try and catch me around, either give me a call or stop by the IT Convergence booth in the vendor hall. I should have all my presentations and papers up here by the end of next week (as soon as I finish them up).

The Side Project Alpha Release Announcement

Thursday, September 7th, 2006

The side project I’ve been mentioning for a while now is a new site that delivers Oracle software through prebuilt VMWare virtual machines. Many people say the hardest part of using Oracle software is getting the installation down and functioning properly. I know many people who have been turned off of some wonderful software because its just a pain to configure. My goal with this new site it to remove that pain, allow people to download the prebuilt virtual machines and just start playing with the tools and walking through the demos instead of worrying with how to get everything setup correctly.

However, because I feel the architecture planning, installation, and configuration of the software is extremely important to success in many cases, I’m going to document all the virtual machine installs I do for the new site on here so that people can refer to them when they want to build their own from scratch. So over the next few weeks look for the build up of some of the virtual machines that will appear on the new site listed here.

First thing I would like to discuss is my selection of software for this project in hopes of getting some thoughts from you before I release everything publically. Over year ago when I had this idea originally there were many things in the way preventing me from doing this project with any success.

One of the first issues I struggled with was linux licensing. At the time, the only supported options for linux under the Oracle suite of tools were either Suse or RedHat AS. Both these products cost hundreds of dollars a license and my bank account could not support the fees of people downloading and using my licenses for personal use. Within the last 9 months I’ve stumbled onto a project called CentOS (http://www.centos.org) which aims to provide an open version of the RedHat AS distribution of linux with no licensing fees. While not officially supported by Oracle, there are plenty of people internally and externally (including myself) that use this distribution without a problem. Problem #1 solved.

The second barrier was VMWare and their virtual machine technology. At $200 a license for the Workstation software I knew it wouldn’t be in everyone’s budget to buy and use to “play” with new technologies. I had been using VMWare for years and really loved the product, but knew this would prevent a lot of people from using my prebuilt machines. Luckily enough, EMC (who owns VMWare), saved the day and in December of 2005 launched VMWare Player (http://www.vmware.com/products/player/), a free to use and distribute version of their popular Workstation product that allows users to run any prebuilt virtual machine on their own desktops on either Windows or Linux. And even recently they’ve started a beta version of the product for Mac OSX. Problem #2 solved.

The third major issue was how to distribute the software, with many of the virtual machines I was building nearing 6GB in size it greatly concerned me about the bandwidth costs I would ensue by allowing people to directly download the VMs from my site. Even with 2TB of bandwidth available a month, that was approximately 300 downloads a month and I’d be running into some major bills. And unmetered connections would greatly add to my monthly hosting fees. So because of that I decided to research Torrent networks deeply. I know torrents get a bad name because much of the “underground” uses it to trade music and movies, but the architecture and technology behind the distributed network is pretty amazing. The key to any torrent network is the seeders, they are the people that have entire copies of the download on their machines and seed the network sharing the bandwidth costs and boosting the download speeds for everyone. There are also some torrent tracker technologies that force people to authenticate to the trackers and monitor their contributions to the network. This greatly appealed to me because I could now track who my best users are and reward them with early downloads and also watch and ban the people that were leeching from the servers and the community without being seeders. I know its not the “nicest” solution, but it ensures a great community atmosphere and makes sure everyone is helping each other out (and not sticking me with a bandwidth bill).

So thats the idea, prebuilt Oracle Virtual Machines built using free and open source software, with a bulletin board and blogging community surrounding it. Should be fun, at the least should be an adventure. Consider this my Alpha Release announcement, I’m looking for anyone who would like to be an early adopter and help out with the start of the site. I really need someone to help with site design (I’m horrible with graphics), some beta testers for the torrent tracker and virtual machines, and anyone else who cares to help out I’d be more than happy to welcome you. Send me an email directly at: matt@matttopper.com or add a comment to the blog.

Keep your eye out in this space for some new articles about building the virtual machines and hopefully I’ll have the full release out by OracleWorld.

Adding a new disk to a VMWare Virtual Machine in Linux

Sunday, May 7th, 2006

I’ve been using VMWare for a while now and I always get asked some common questions about it. One of those is how to add a new virtual disk to a Linux virtual machine. So in response to that, here are the steps to adding a new SCSI based virtual disk to a CentOS Linux virtual machine. The steps for adding a disk to a Windows machine is very much the same except you would use the Disk Management utility from the Control Panel.

Step 1: Open virtual machine settings
Select your virtual machine, as you can see from the photo I selected the Infrastructure virtual machine. Next press the “Edit virtual machine settings’ to open the Virtual Machine Settings dialog.
Select your Virtual Machine

Step 2: Add new hardware
From the “Virtual Machine Settings” dialog select the “Add…” button at the bottom of the screen. From this dialog you can also modify how much memory you dedicate to the machine when it boots.
Virtual Machine Settings Dialog - /> Select the Add… button” src=”http://www.matttopper.com/images/blog/adding_disk_to_vmware/2.jpg” /></p>
<p>Step 3: Start hardware wizard<br />
Next we will walk through the “Add Hardware Wizard” the process makes it very simple to add additional hardware to a predefined virtual machine.  From this screen we want to select the “Next >” button.<br />
<img alt=

Step 4: Select new hard disk
From this screen we can see the many types of hardware we can add to a virtual machine. You can emulate just about any piece of hardware that one can expect in a modern operating system. It definitely makes testing with different configurations and devices much easier. For our example we want to select “Hard Disk” and then select the “Next >” button.
Select Hard Disk from the Add Hardware Wizard

Step 5: Create the virtual disk
In the next screen we see the three options for adding a new disk. We can “Create a new virtual disk”, this will create a brand new disk on the guest operating system. The second option, “Use an existing virtual disk”, allows you to mount a disk from another virtual machine. I like to do this with my “source” drive. I have one virtual disk that I’ve made that has all the Oracle and Linux CDs on it, that way I can just mount it to the machine I need when I have to do a new install instead of copying the binaries I need across disks, its definitely a big time saver. The last option is to “Use a physical disk”, this allows you to mount a local physical disk to the operating system. This option is akin to NFS mounting a drive to a virtual machine. To add a new disk we select the “Create a new virtual disk” option and select the “Next >” button.
Create a New Virtual Disk from the Add Hardware Wizard

Step 6: Select type of disk
Next we want to select the type of disk. I’ve been using VMWare for a long time and agree that the recommended Virtual Disk Type should be SCSI. I don’t know why, but I’ve had much better success with the SCSI virtual disks than the IDE ones. So in this step we want to select “SCSI (Recommended)” and the “Next >” button.
Select Disk Type from Add Hardware Wizard

Step 7: Set disk size and options
Now we want to set the size of the disk we are creating. One of the nice features of VMWare is that you don’t have to allocate all of the disk when you create it. So if you create a 40 GB disk it doesn’t have to take it all right away, the disk will grow as your virtual machine needs it. I will say this is a big performance hit you take when the disk has to extend, but for most applications its OK. Also, I will warn that if the virtual disk grows and there is no physical disk left on the host operating system you will see a catastrophic failure and in most cases both the host and guest operating systems lock up and become unusable. (Don’t say I didn’t warn you) Lastly, you can split the files into 2GB sizes, while this isn’t necessary, it just makes all the disks much easier to manage and move around. For this step we want to set our disk size (12 GB in this case), I chose not to allocate the disk space right now (the machine has a 300 GB drive and has only 20 GB on it) and Split disk into 2 GB files.
Specify Disk Capacity from the Add Hardware Wizard

Step 8: Name the disk file
This is actually pretty simple in that you decide what you want to physically call the disk and where to put it. .vmdk is the extension for VMWare virtual disks. After we name the disk we can select the “Finish” button which adds the disk to the virtual machine.
Name the Virtual Disk File from the Add Hardware Wizard

Step 9: Ensure new disk exists
So now we can see that the new disk has been added to the “Virtual Machine Settings” within the selected virtual machine. From here the disk acts just like it would if you added a new disk to a standalone server. So we select the “OK” button to continue.
Review Virtual Machine Settings for the newly created disk

Step 10: Boot the virtual machine
From here we just start the virtual machine like we would normally, either by selecting the button on the toolbar or selecting the “Start this virtual machine” link.
Start the Virtual Machine

Step 11: Virtual machine start up
The machine boots normally as it would any other time.
Booting Virtual Machine...

Step 12: Create the Partition
After we’ve logged in and accessed a terminal window as root (or another user with root/sudo privs) we first want to run fdisk on the newly created drive. In Linux the first SCSI drive is sda, the second sdb, the third sdc, etc. since this was the second SCSI drive we added to the system, the device is known as /dev/sdb
The first command we want to run is fdisk /dev/sdb (NOTE: Thanks to everyone that caught my typo here) this utility works very much like the DOS utility of the old days and allows you to create and manage partitions. To create a new partition we enter the command n to create a new partition. This is going to be a primary partition p, and the first partition number 1. Because I want this disk to consume the full 12 GB I specified earlier we start at the first cylinder and end it at the last cylinder. We then want to write the partition table with the new partition we have just created so we enter the command w which writes the new table and exits fdisk.
Create new partition with fdisk

Step 13: Format the partition
Now that we’ve create the partition, we now want to format the first with the new file system. I’ve decided to use ext3 filesystem for this disk, ext3 provides all the features of the classic ext2 file system plus journaling which helps to prevent disk corruption in the event of an improper shutdown and speeds up the recovery process. For a good overview of Linux standard file systems check out this article: http://linux.org.mt/article/filesystems So, to format the new partition we enter the command mkfs -t ext3 /dev/sdb1. This command makes a new files system with the type t ext3 on the /dev/sdb1 partition, this is the first partition on the sdb disk.
Create new filesystem in the virtual machine

Step 14: Create the mount point
Determine where you want to add the new virtual disk you’ve created. I like to create a partition specifically for all the software I install after the basic Linux install called /software to do that we run mkdir /software, just a simple make directory command. Once that is complete we then want to mount the newly created partition. Because we haven’t added the partition to the /etc/fstab yet we have to mount it manually. To do that we run mount -t ext3 /dev/sdb1 /software. To break down this command we run mount with the ext3 filesystem type, the partition /dev/sdb1 to the directory /software. Pretty simple and straight forward. To check that the partition is properly mounted we run df -k which shows us the mounted partitions and the amount of available space.
Create new mount point and mount the new drive

Step 15: Open the fstab file
The fstab file holds all of the used disks and partitions, and determines how they are supposed to be used by the operating system. So we edit the file to add the newly created partition

http://www.matttopper.com/images/blog/adding_disk_to_vmware/15.jpg

Step 16: Modify the fstab for the new partition
After we open the fstab file in the previous step we add the following line:
/dev/sdb1 /software ext3 defaults 1 1
The first column is the partition name, the second is the default mount point, the third is the filesystem type. The fourth is the mount options, in this case I used default which mounts the drive rw, suid, dev, exec, auto, nouser and asynchronous. The 5th and 6th options are for the dump and fsck options. If dump is set to 1 the filesystem is marked to be backed up, if you are going to have sensitive material on the drive its a good idea to set it to 1. If fsck is set to greater than 1, then the operating system uses the number to determine in what order fsck should be run during start up. If it is set to 0 it will be ignored such as in the case of a cdrom drive since its a solid state disk. For more information on the fstab file check out this article: http://www.tuxfiles.org/linuxhelp/fstab.html
Lastly, we write and quit the file with the :wq command.
Editing of the fstab

So now that the fstab has been written the drive will be mounted and unmounted when the machine is either started or shutdown. So there you have it, the quick and dirty process for adding a brand new disk to a virtual machine. Until next time…