Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th October 2007, 19:05
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Can CentOS 5 run as guest OS on VMWare server

Hi folks,


Hardware
AMD Athlon64 x2 3000 AM2
RAM - 2G dual channel 6400

VMWare server 1.0.4
Host OS - Ubuntu 7.04 server amd64


Can I install CentOS amd64 as guest OS on VMWare? Are there any foreseeable problem?

TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 5th October 2007, 20:02
dtrotter dtrotter is offline
Member
 
Join Date: Aug 2006
Location: Colorado
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to dtrotter Send a message via MSN to dtrotter Send a message via Yahoo to dtrotter
Default

I have run CentOS 5 under VMware, but the host OS was Win2k3. The install seemed to take forever, but once it was installed everything was fine.

Devin
Reply With Quote
  #3  
Old 5th October 2007, 21:33
deadwait deadwait is offline
Junior Member
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi , i have just today installed a centos 5 as a guest os on vmware server which runs on ubuntu gutsy gibbons tribe 5 release , my cpu is intel 1.8ghz and ram is 512mb, its running smooth as of yet, i have set it up for learning RHCE.

Allan
__________________
Deadwait

http://deadwait.wordpress.com
Reply With Quote
  #4  
Old 6th October 2007, 05:00
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi folks,


Tks for your advice.


Re manual/guide for installing CentOS 5 as guest OS on VMware 1.0.4, I don't have it. I have manual for installing Window 2003 server and OpenSuse as guest OS on VMWare.


Google search did not find it. Is there manual on direct installation via BT or CD/DVD? TIA


satimis
Reply With Quote
  #5  
Old 6th October 2007, 15:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

You can install CentOS like any other distribution under VMware. Why do you need a guide for it?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 6th October 2007, 16:08
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
You can install CentOS like any other distribution under VMware. Why do you need a guide for it?
This is my 1st experiment building a virtual machine. I'm following this guide;
How to create a virtual machine with VMware on Linux:
http://searchservervirtualization.te...245061,00.html

It runs Window 2003 server as an example.


Now I have "VMware Server Console" running.
$ /usr/bin/vmware-server-console
starts the "VMware Server Console" window ready for installing guest OS.

Also I have "CentOS-5_lamp.x86_64.zip" download and extracted on
Code:
/home/satimis/CentOS-5_lamp.x86_64/
CentOS-5_lamp.x86_64-s001.vmdk
CentOS-5_lamp.x86_64-s002.vmdk
CentOS-5_lamp.x86_64-s003.vmdk
CentOS-5_lamp.x86_64-s004.vmdk
CentOS-5_lamp.x86_64-s005.vmdk
CentOS-5_lamp.x86_64.vmdk
CentOS-5_lamp.x86_64.vmsd
CentOS-5_lamp.x86_64.vmx
nvram
readme
I have no idea how to proceed. Neither their "readme" file provides instruction. Is /home/satimis/CentOS-5_lamp.x86_64/ an ideal path for its installation.

OR
I have to move it to;
/usr/local/src/CentOS-5_lamp.x86_64/
???


Advice would be appreciated. TIA


B.R.
satimis
Reply With Quote
  #7  
Old 6th October 2007, 18:57
dtrotter dtrotter is offline
Member
 
Join Date: Aug 2006
Location: Colorado
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to dtrotter Send a message via MSN to dtrotter Send a message via Yahoo to dtrotter
Default

Quote:
Originally Posted by satimis
Code:
/home/satimis/CentOS-5_lamp.x86_64/
CentOS-5_lamp.x86_64-s001.vmdk
CentOS-5_lamp.x86_64-s002.vmdk
CentOS-5_lamp.x86_64-s003.vmdk
CentOS-5_lamp.x86_64-s004.vmdk
CentOS-5_lamp.x86_64-s005.vmdk
CentOS-5_lamp.x86_64.vmdk
CentOS-5_lamp.x86_64.vmsd
CentOS-5_lamp.x86_64.vmx
nvram
readme
All of the VMDK files are VMWare disk images, so you can attach those to the VMWare session and boot from them and or use them in VMWare, etc... What does the readme say? I have always just downloaded the ISO for the guest os I want to install, tell VMWare to boot from that ISO and instlal it just like it was a regular install.

D
Reply With Quote
  #8  
Old 6th October 2007, 19:15
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by dtrotter
All of the VMDK files are VMWare disk images, so you can attach those to the VMWare session and boot from them and or use them in VMWare, etc...
Thanks for your advice. Please advise in more detail with example, if possible.


I can start

satimis@ubuntu:~$ sudo /etc/init.d/httpd.vmware start
Code:
Password:
Starting httpd.vmware:
satimis@ubuntu:~$ /usr/bin/vmware-server-console
Code:
/usr/lib/vmware-server-console/bin/vmware-server-console: /usr/lib/vmware-server-console/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib32/libcairo.so.2)
start VMWare-Server-Console window as user.

To install guest OS can I work as user OR must be root;
$ sudo /usr/bin/vmware-server-console
???

Quote:
What does the readme say?
$ cat /home/satimis/CentOS-5_lamp.x86_64/readme
Code:
"LAMP" CentOS-5 x86_64 installation

root password: centos
remote acces with ssh enable

updated on 'Tue Oct  2 14:44:12 CEST 2007'

100Hz kernel added and being default, see
http://bugs.centos.org/view.php?id=2189 and
http://bugs.centos.org/view.php?id=1722

B.R.
satimis
Reply With Quote
  #9  
Old 7th October 2007, 21:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

I VMware, there's an option to import existing vms (I think it's under File > Import). Please try that.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 8th October 2007, 15:39
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Hi folks,


Thanks for your advice. I got it done.


satimis@ubuntu:~$ sudo chown satimis:satimis /home/satimis/.vmware/preferences
Password:
satimis@ubuntu:~$ /usr/bin/vmware-server-console

starts vmware-server-console

Open a Virtural Machine -> Location -> Browse - CentOS-5_lamp.x86_64.vmx -> Power on the Virtural Machine -> highlight "CentOS-5lamp/x86_64 /home/satimis/CentOS_lamp.x86_64.... -> OK -> Edit Virtual Machine Settings ->
Memory - 512MB (I have 2G RAM onboard. Only keep the default setting=512MB)
Processor - select "Two"
others not changed

Code:
(Remark:
- please advise are there other items requesting "change"?
- how about the partitioning of the HD ?)
-> OK -> Power on this virutal machine ->

Error popup
Code:
Cannot find a serial number to unlock this version of VMware Server.
Please ask your system administrator to run "vmware-config.pl"
and enter the serial number. For more information, please read
the INSTALL file in VMware Server's documentation directory.
[OK]

Start a new Console.

satimis@ubuntu:~$ cd /usr/local/src/vmware-server-distrib-1.0.4-56528/
satimis@ubuntu:/usr/local/src/vmware-server-distrib-1.0.4-56528$ sudo /usr/bin/vmware-config.pl
Code:
Making sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons? 
[/usr/share/icons] [Enter]

What directory contains your desktop menu entry files? These files have a 
.desktop file extension. [/usr/share/applications] [Enter]

In which directory do you want to install the application's icon? 
[/usr/share/pixmaps] [Enter]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your 
running kernel.  Do you want this program to try to build the vmmon module for 
your system (you need to have a C compiler installed on your system)? [yes] [Enter]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.20-15-generic/build/include] [Enter]

Would you like to skip networking setup and keep your old settings as they are?
(yes/no) [yes] [Enter]

Shutting down http.vmware
Starting httpd.vmware:
Please specify a port for remote console connections to use [902] [Enter]

Do you want this program to set up permissions for your registered virtual 
machines?  This will be done by setting new permissions on all files found in 
the "/etc/vmware/vm-list" file. [no] [Enter]

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files? 
[/var/lib/vmware/Virtual Machines] [Enter]

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  abcde-fghij-klmno-pqrst

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   done
   Host-only networking on /dev/vmnet1 (background)                    done
   Host-only networking on /dev/vmnet8 (background)                    done
   NAT service on /dev/vmnet8                                          done
   Starting VMware virtual machines...                                 done

The configuration of VMware Server 1.0.4 build-56528 for Linux for this running
kernel completed successfully.

Setup found that the VMware Management Interface is installed on your machine. 
The VMware Management Interface configurator (/usr/bin/vmware-config-mui.pl) 
needs to be run. Do you want to run this program now? [yes] [Enter]

File /usr/lib/vmware-mui/apache/conf/httpd.conf is backed up to 
/usr/lib/vmware-mui/apache/conf/httpd.conf.old.0.

Configuring httpd.conf to run Apache as: 
User: www-data and Group: nogroup

File /etc/init.d/httpd.vmware is backed up to /etc/init.d/httpd.vmware.old.0.

Set the number of minutes before a http session times out. (This is the length 
of time before someone connecting to VMware Management Interface will be logged
out) [60] [Enter]

Generating SSL Server Certificate

   Starting httpd.vmware:-ne                                          failed

The configuration of VMware Management Interface completed successfully.

satimis@ubuntu:/usr/local/src/vmware-server-distrib-1.0.4-56528$ sudo /etc/init.d/httpd.vmware start
Starting httpd.vmware:-ne failed


On another console

satimis@ubuntu:~$ sudo /etc/init.d/httpd.vmware start
Password:
Starting httpd.vmware:-ne failed

Same result.


satimis@ubuntu:~$ sudo /etc/init.d/vmware restart
Code:
Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   done
   Host-only networking on /dev/vmnet1 (background)                    done
   Host-only networking on /dev/vmnet8 (background)                    done
   NAT service on /dev/vmnet8                                          done
   Starting VMware virtual machines...                                 done
satimis@ubuntu:~$ sudo /etc/init.d/httpd.vmware start
Code:
   Starting httpd.vmware:-ne                                          failed

$ sudo rm /usr/local/src/vmware-server-console-distrib/etc/not_configured
$ sudo rm /usr/local/src/vmware-server-distrib-1.0.4-56528/etc/not_configured
$ sudo rm /usr/local/src/vmware-mui-distrib-1.0.4-56528/etc/not_configured
reboot PC

All did not help.


satimis@ubuntu:~$ cd /tmp/
satimis@ubuntu:/tmp$ wget http://users.piuha.net/martti/comp/u...pd.vmware.diff
satimis@ubuntu:/tmp$ cd /
satimis@ubuntu:/$ sudo patch -b -p0 < /tmp/httpd.vmware.diff
Code:
Password:
patching file /etc/init.d/httpd.vmware
patching file /usr/lib/vmware-mui/src/lib/httpd.vmware
satimis@ubuntu:/$ sudo /etc/init.d/httpd.vmware start
Code:
   Starting httpd.vmware: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_HK.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
satimis@ubuntu:/$ sudo cp -p /etc/init.d/httpd.vmware /etc/init.d/httpd.vmware.origin
satimis@ubuntu:/$ sudo nano /etc/init.d/httpd.vmware
adding following line
Code:
export LC_ALL=C ; export LANG=C
at the beginning.

Code:
Is here the right file and right place adding the above line
???
satimis@ubuntu:~$ sudo /etc/init.d/httpd.vmware start
Code:
Password:
   Starting httpd.vmware:                                              done
Now it works.

satimis@ubuntu:~$ /usr/bin/vmware-server-console
starts vmware-server-console

Repeat following steps
Code:
Open a Virtural Machine -> Location -> Browse - CentOS-5_lamp.x86_64.vmx -> Power on the Virtural Machine -> highlight "CentOS-5lamp/x86_64 /home/satimis/CentOS_lamp.x86_64.... -> OK ->  Edit Virtual Machine Settings ->
Memory - 512MB (I have 2G RAM onboard.  Only keep the default setting=512MB) 
Processor - select "Two"
-> Power On this virtual machine
CentOS 5 starts to boot finally ending at
localhost login : root
password
[root@localhost]#


What shall be the next?

What are the function of these 2 kernels

Cent 2.6.18 ........el5vm
Cent 2.6.18 ........el5

???


IIRC I came across a Howtoforge tutorial re setup LAMP on CentOS 5 before. Any advice? TIA


Edit:

Finally I found following documents

1)
The Perfect Setup - CentOS 5.0 (32-bit)
http://howtoforge.org/perfect_setup_centos5.0

I'm running 64bit CentOS 5. I do hope that the document also works on 64bit.


2)
Installing Lighttpd With PHP5 And MySQL Support On CentOS 5.0
http://howtoforge.org/taxonomy/term/57


I think 1) above will be more suitable for me. Advice would be appreciated. TIA



B.R.
satimis

Last edited by satimis; 8th October 2007 at 18:41.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 06:35
VMware tools install help for Debian Sarge guest cic Installation/Configuration 3 27th September 2007 22:51
How to setup VMware Server on Centos 5.0 Osricson Suggest HOWTO 3 2nd May 2007 11:48
SuSE as master DNS server and Centos as slave DNS server... sthompson Server Operation 3 17th September 2006 14:24
VMware Server on a Debian server? edge Server Operation 7 25th July 2006 22:21


All times are GMT +2. The time now is 12:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.