Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Upgrade XEN to 4.1.4 on CentOS?
#1
Hello,

First you need to check your Xen Version by typing a command in your SSH Client

Quote:xm info
xl info
You will get a 10 to 20 line output result but you need to check only this 3 lines..
xen_major : 4
xen_minor : 1
xen_extra : .1

It means your Xen version is 4.1.1

If both commands are not working then you can check your Xen version from /etc/grub.conf file..

Command:
Quote:nano /etc/grub.conf

output result
Quote:default=0 << If set to 3 then check 3rd title
timeout=10
splashimage=
hiddenmenu
title CentOS (3.2.12-434.3.2.el5xen)
root (hd0,0)
kernel /xen.gz-4.2.1 <<< YOUR XEN VERSION
module /vmlinuz-4.2.1.el5xen ro
module /initrd-4.2.1.el5xen.img << << Your Xen Version
title CentOS (xyz)

How to Upgrade Xen? (If you don't want to change your whole version from 3.x to 4.x.
Upgrade Kernel:
Quote:yum upgrade kernel-xen*


How to Upgrade Xen Version from 3.x to 4.1.4? (Warning: Do this at your own risk)

Run this command
Quote:cd /etc/yum.repos.d

Now download latest version of Xen repo from Gitco: (If you want to install your selected repo then go to <removed> and replace with your repo url in wget command

Command:
Quote:wget removed


Now we need to remove Xen:

Quote:yum remove xen
Quote:yum remove kernel-xen*

Once you remove Xen and Xen kernel then you can install latest Xen by running this command:
Quote:yum install xen

Edit /boot/grub/grub.conf and change "default 0" to your new xen kernel line..(Eg: If your newly installed kernel title listed on 1st line then change to "default 0", If listed on 2nd then change to "default 1")

For example: (Only for example, don't replace your grub config with this config otherwise your server will stop working)

Quote:nano /etc/grub.conf
PHP Code:
default=1
timeout
=5
splashimage
=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS 
(OpenVZ)
        
root 
        kernel 
/vmlinuz-example
        initrd 
/initrd-example.el5.img
title CentOS 
(Xen)
        
root (hd0,0)
        
kernel /xen.gz-4.1.4
        module 
/vmlinuz-4.1.4.el5xen ro root=LABE
        module 
/initrd-4.1.4.el5xen.img 


Now reboot your vps/server
Quote:reboot


After rebooting VPS/Server you can verify your Xen Version by running a xm info command or xl info.
Kunnu (Administrator)
Dewlance.com - Best Web Hosting

Create a Ticket
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)