Kamran Agayev’s Oracle Blog

Kamran Agayev’s Oracle Blog

Installing CentOS on VMware – Step by Step

Posted by Kamran Agayev A. on January 5, 2009

Today, I’m going to show you, installation of CentOS on a virtual machine

First of all, we’ve to download CentOS. CentOS is a freely-available operating system that is based on Red Hat Enterprise Linux system.  You can download the latest release (5) from its website. To download, please refer to download page of CentOS web site

http://isoredirect.centos.org/centos/5/isos/i386/

Select nearest location and begin downloading *.iso files.

After you finish downloading *.iso files, you have to mount it and let your VMware recognize it as a virtual “cd” or “dvd”. For this purpose, I prefer to download one DVD *.iso installation file. Please open VMware, double click on CD-ROM (IDE 1-0) item, select Use ISO image option and click Browse button to select your recently downloaded *.iso installation file of CentOS as shown below

 

 

Now you virtually inserted you installation DVD into DVD-ROM. And you’re ready to install your OS virtually.  

 

You should change your Memory to 1024 MB for your further Oracle installation. Double click on Memory item and set it to 1024

Then click Power button to start your virtual pc

  

When your virtual pc starts, you’ll see welcome screen of installation CentOS

 

 

If you’ll not be able to see this screen, then restart your virtual pc and click Esc button for Boot menu. And from this menu, select CD-ROM Drive

Click enter. The installation will tell you to begin testing of your installation cd or dvd. Select Skip button. It will skip testing your cd media and save your time

 

Then you’ll get another welcome screen, you only have to click next button on this screen

 

Select your language of installation and click Next

 

Then, select your keyboard configuration to use it for the system you’re installing and click Next

 

Then, you’ll be warned to create new partitions by erasing ALL DATA on your newly created hard drive. As there’s no information in this drive, you’ll select Yes

centos_installation_8

 

In this step, just let it remain selected and click next

centos_installation_9 

 

Then there’ll be warning “You have chosen to remove all Linux partitions (and ALL DATA on them) on the following drives: /dev/sda   Are you sure you want to do this?” Click Yes

Then, you’ll see Network Configurations screen, as it is your test virtual pc, don’t change anything and click next. You can change whatever you want after installation, for now, let it continue in this way and click Next

centos_installation_10 

 

From this screen, select your region and click Next

centos_installation_11 

 

Then, you’ll be prompted to enter password for root user, enter it and click Next

 centos_installation_12 

 

To install packages, especially for working with Oracle Server, select all options except Clustering and Storage Clustering. Then select Customize now option and click Next

centos_installation_13 

 

Then, from Base System menu, select Legacy Software Support, System Tools and click Next

centos_installation_14

 

Now, you’re ready for installation. Click next on this screen, the installation will begin

centos_installation_16

 

You’ll see how all packages are installing. After a while, your OS will be ready for use

centos_installation_17

 

After the installation is completed, click Reboot button to reboot your OS

centos_installation_18

 

After reboot, you’ll face with another Welcome screen. There’re some steps need to be completed

Click Forward button on the screen.

centos_installation_19

 

Here, just disable your Firewall. Its only for test purpose, don’t disable your Firewall on real system! And click forward button

centos_installation_20

 

For testing purpose, it would be good to disable SELinux too

centos_installation_21

 

Then keeping Kdump disabled, click Forward

 centos_installation_22

 

If you need, make your Date and Time configuration and click Forward

 centos_installation_23

 

If you want to create a new user, you can fill these blanks. You can pass this step too by clicking Forward button

 

centos_installation_24

 

Then Click Finish and the system will reboot

 

centos_installation_25

 

After reboot, CentOS will be opened and you’ll be prompted to enter username (root) and password (root’s password)

 

centos_installation_26 

 

Your Centos is ready to use! Congratulations.

 

centos_installation_27

 

In the next article, I’m going to show installation of Oracle 10g Release 2 on our Centos OS

 

Additionally, while using an operating system inside VMware, you recognize that every time you have to enter to its area and then press Ctrl+Alt buttons to leave this area and to return to your system.

To solve this issue, you should install VMware Tools.

As the VMware Tools will be installed from CD-Rom device, you should disconnect your connected CD-Rom device as shown below

 centos_installation_29

 

Next, Select VM menu on VMware application and select Install VMware Tools menu item.

 

centos_installation_28

 

Then click Install button on this message box to Install VMware Tools

 

centos_installation_30 

 

Then enter to My Computer and double click on CD-ROM Drive. You’ll see there two packages.

 

centos_installation_31

 

Now, double click on *.rpm file to setup   

After installation complete, copy another *.gz file to anywhere in hard drive. In our example we are coping it to tmp directory inside FileSystem, paste the file into this folder, right click on it and select Extract Here menu item

 

centos_installation_32

 

Then enter to the folder vmware-tools-distrib and double click on vmware-install.pl file and click Run in Terminal button

 

centos_installation_33

 

Then, whenever you’re asked to enter the value, just click enter

But when you’re prompted to enter value for the display size of your X, be careful to enter default value. If you want your Virtual Machine to be little size, enter 2 (800-600)

That’s all! Your VMware Tools installed. Now you can enter to VMware’s area and exit it without clicking Ctrl+Alt

P.S. If you’ll face with “VMware hgfs: HGFS is disabled in the host” error, just reboot your system

Advertisements

31 Responses to “Installing CentOS on VMware – Step by Step”

  1. Mustafa Aydinalp said

    Kamran Teşekkürler,
    devamını bekliyoruz.

    Saygılarımla.

  2. John said

    Kamran good job!!!
    Thanx a lot,
    John

  3. israelagnouhyattara said

    Nice post! This might be interesting for people attempting to install various practice environments for learning network administration: http://israelany.wordpress.com/tag/vmware/

  4. Thank you all guys!

  5. Thanks you so much dear its nice and great..

    even simple to use.

  6. You’re welcome Shahid Ahmed 🙂 Thank you for your comment

  7. Bratek said

    Thank you so much!

  8. You’re welcome Bratek 🙂

  9. shakeel mahmood said

    hi
    thank you so much for writing such an article.
    i have a little problem on which i need your opinion.
    i have installed Oracle enterprise linux on VMware and it installed successfully.
    now when i tried to reboot it whole system crashes giving this error
    “Panic on CPU 0
    General protection fault
    [error_code 0000] :”
    i have followed all those steps as you have described.
    ill be thankful to you for your help 🙂
    Regards

  10. Paul Chester said

    Very nice flow .. but unfortunately there is nothing which tells the user what to do when something does NOT go according to the flow … and why it is happening! I get an error “no valid devices were found on which to create new file systems … ” This is clearly because no virtual disk was created … but how to fix!!
    The point is if things go well the screenshots are generally not necessary. Troubleshooting/known errors add immense value to such a procedure!

  11. karthi said

    this article is very useful for beginners……..Thanks you so much KAMRAN

  12. You’re welcome Karthi. I’m so happy that my articles are “sometimes” useful for someone 🙂

  13. Dear Paul. I totally agree with you. I show only the steps which 95% should be successfully finished by anyone. In case someone gots an error, he just came to this link and post the comment. There should be dozen errors, thus I’ve decided to not show them (or explain), however I’m ready to answer and clarify the problem which you got

    Thanks again for your comment and suggestion

  14. Rene said

    I have the same problem as Paul. So what is the solution? How do I fix the error: “no valid devices were found on which to create new file systems … ”

    Thanks in advance.

    Rene

  15. Dear Rene

    There’re tons of answers regarding this quesion over the web. One of them:

    When you created the virtual disk, did you create a disk image file or point it at an unused partition on the physical HD?
    If a file, try making it an IDE drive instead of SCSI.

    Taken from : http://www.experts-exchange.com/Software/VMWare/Q_23283221.html

    Moreover, you can do a simple google search as well 🙂
    http://tinyurl.com/yjq7ckg

    Good Luck!

  16. Rakesh said

    Thanks a lot ..Kamran

    rakesh

  17. mady said

    Very good article..! I followed all the steps u described..!
    It is useful for beginners..!

    THANK YOU KAMRRAN..!!

  18. Sharad said

    Hi Kamran,

    I have installed CentOS first time and your article was very useful for me.

    Thanks a lot for such a wonderful article.

    Regards,
    Sharad.

  19. Amin said

    Dear Raj
    When I tried to click Power button to start my virtual pc, I receive the message that said to me:
    A valid license key is required to power on virtual machine.
    Do I need to buy VMware? I thought that it is free.
    I downloaded these software to run virtual machine:
    VMware-workstation-full-7.1.3-324285.exe
    CentOS-5.5-i386-bin-DVD.iso
    Let me know what is my problem.
    My windows is windows 7 and 64x.

  20. Dear AMin. VMware is not free, you can try VirtualBox, it’s free. And I hope vmware should be free for one month period

  21. Is it really necessary to install ALL of the software you’ve suggested during the CentOS install? Do we really need the “Virtualization” group and both KDE and Gnome?

    I understand this is a “newbie” howto but I think the install could be trimmed down some. (Though I don’t know what to remove/not-install.)

  22. Hi Max

    Sure we don’t need Virtualization and KDE. And I didn’t show them on “Step by step installating Oracle on CentOS” and “Video tutorial installing Oracle on OEL”

    Thanks for feedback

  23. Murthy said

    thanks a lot kamran, i am a java architect. now i am going move into solution architect. for that i am preparing vmware, linux and oracle. i struggled a lot for one week due to installation procedure. finally i got your web site. thanks for helping others. keep it up like this. cheers.

  24. Abbas said

    Hi dear

    Thank you very much for this nice job, I do have problem with my dual boot, I have windows 7 64 bit am trying to install Centos 5.6 as dual boot beside Win 7, everything it seems fine, but when I reboot my pc there where no graphic only black screen. I do have NVIDIA Q96 FX 580.
    I do open this system in vmware where I can paste the nvidia driver installations, and it work but my hostname is changing all time. Do u have any idea, I did tried all methode but no chance. This affect my oracle db installtion. Please help me here.

    Cheers

    Abbas

  25. Dear Abbas. I wouldn’t suggest you to use dual boot while you have an option to install CentOS on the virtual machine. So try to perform all your test on virtual machines and avoid dual boot installation

  26. Abbas said

    Dear Kamran

    Thanks for your advice, am attending to use a heavy mathmatical complex software. I understand that Vmware is stable in such mathmatical calculations.
    The idea is now to install oracle DB 10201 and make it stable.

    cheers

  27. Nick said

    Hello,

    I’ve downloaded the CentOS 5.6 iso and when I tried to install it on VmWare, the vmware didn’t readily recognized it. However, I selected “CentOS” from next screen. Now instead of installing, the OS is live booting from the ISO image.

    I would greatly appreciate any help.

  28. Nick said

    Sorry, nvm my question. Its my fault I downloaded the live cd version. So stupid of me.

  29. It’s ok Nick 🙂 I was going to let you know that it should be a live cd. Try the installation cd instead.

    Good Luck!

  30. Ashraf İslamsevər said

    Allah razı olsun,superdi

  31. Santosh said

    thx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: