Difference between revisions of "Centos 5.x Installed as a Virtual Machine"

From Klaus' wiki
Jump to: navigation, search
Line 25: Line 25:
 
[[File:Create_virtual26.png|500px]]
 
[[File:Create_virtual26.png|500px]]
 
[[File:Create_virtual27.png|500px]]
 
[[File:Create_virtual27.png|500px]]
[[File:Create_virtual28.png|500px]]
+
 
[[File:Create_virtual29.png|500px]]
+
 
[[File:Create_virtual30.png|500px]]
+
Reboot the newly created machine.
 +
 
 +
SSH to the machine.
 +
 
 +
Execute the following commands:
 +
<source lang="bash">
 +
scp 10.1.18.101:~/.bashrc .
 +
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
 +
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm
 +
vi /etc/yum.repos.d/*
 +
yum update
 +
history
 +
init 6
 +
</source>
 +
The first line gets the modified .bashrc (if you got the particular machine up running and know the root password), that among other things, paints the prompt red for root logins - nice warning!
 +
 
 +
The second line installs the epel repository and the third line the rpmfusion repository.
 +
 
 +
Fourth line opens all the repository files enabling to enable or disable selected repositories. Enable at least in Centos Base repo: centorplus and contrib by changing the line enabled=0 to enabled=1 respectively.
 +
 
 +
Fifth line updates the machine (answer y(es) to everything asked) and finally the sixth line reboots with the newly installed software and patches.
 +
 
 +
You can from here install what ever is needed by using yum.

Revision as of 19:37, 10 May 2010

The Centos 5.x can be installed as a virtual machine on the Xen virtualisation framework. Follow the picture guide below:

Create virtual1.png Create virtual2.png Create virtual3.png Create virtual9.png Create virtual5.png Create virtual6.png Create virtual7.png Create virtual8.png Create virtual10.png Create virtual11.png Create virtual12.png Create virtual13.png Create virtual14.png Create virtual15.png Create virtual16.png Create virtual17.png Create virtual18.png Create virtual19.png Create virtual21.png Create virtual22.png Create virtual25.png Create virtual24.png Create virtual26.png Create virtual27.png


Reboot the newly created machine.

SSH to the machine.

Execute the following commands:

scp 10.1.18.101:~/.bashrc .
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm
vi /etc/yum.repos.d/*
yum update
history
init 6

The first line gets the modified .bashrc (if you got the particular machine up running and know the root password), that among other things, paints the prompt red for root logins - nice warning!

The second line installs the epel repository and the third line the rpmfusion repository.

Fourth line opens all the repository files enabling to enable or disable selected repositories. Enable at least in Centos Base repo: centorplus and contrib by changing the line enabled=0 to enabled=1 respectively.

Fifth line updates the machine (answer y(es) to everything asked) and finally the sixth line reboots with the newly installed software and patches.

You can from here install what ever is needed by using yum.