xen3.4.0_another_install

1. First we need to add the YUM repository holding the updated Xen. Only use ONE of the following files depending on your CPU architecture!

 

Create the following file with a text editor and save it as /etc/yum.repos.d/gitco.repo

# Name: RPM Repository for Red Hat Enterprise 5 - gitco
[gitco]
name = Red Hat Enterprise $releasever - gitco
baseurl = http://www.gitco.de/linux/i386/centos/5/rpms_testing/
enabled = 1
protect = 0
gpgcheck = 0

 

2. Uninstall old Virtualization files

yum groupremove Virtualization

3. Install the relevant packages using YUM

yum groupinstall -y Virtualization

 

Yum will probably want to upgrade some other files along with the ones we've chosen.

Warning! If you get an error message from grubby this is bad!

Installing: kernel-xen                   ####################### [ 9/13]
grubby fatal error: unable to find a suitable template

This means that your grub.conf file couldn't be written to for whaterver reason. I'm not sure yet why this is happening but it basically means the grub.conf will be pointing to your old xen-kernel instead of your new one so you won't be able to successfully reboot. If you get this message you need to edit your /boot/grub/grub.conf file and make the kernel lines match the kernel you installed. To get your installed xen-kernel version check it with rpm.

[ root@vs / ] rpm -q kernel-xen

kernel-xen-2.6.18-92.1.6.el5

Now edit your /boot/grub/grub.conf to match


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/vgsys/lvroot
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.6.el5xen)
root (hd0,0)
kernel /xen.gz-3.3.0
module /vmlinuz-2.6.18-92.1.6.el5xen ro root=/dev/vgsys/lvroot rhgb quiet
module /initrd-2.6.18-92.1.6.el5xen.img

4. Reboot - no really I mean it.

5. Try it out by using the xm dmesg command

[ root@vs ~ ] xm dmesg
__  __            _____ _  _    ___  
/ // /___ _ __   |___ /| || |  / _ /
/  // _ / '_ /    |_ /| || |_| | | |
/  /  __/ | | |  ___) |__   _| |_| |
/_//_/___|_| |_| |____(_) |_|(_)___/

(XEN) Xen version 3.4.0 ( root@gitco.tld This e-mail address is being protected from spambots. You need JavaScript enabled to view it

That's about all. If you have any questions drop a comment here.

 

 

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
 * extras: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net
 * base: mirror01.idc.hinet.net
 * addons: mirror01.idc.hinet.net
Setting up Group Process
Checking for new repos for mirrors
Package virt-viewer-0.0.2-2.el5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package xen.i386 0:3.4.0-3.el5 set to be updated
--> Processing Dependency: xen-libs = 3.4.0-3.el5 for package: xen
--> Processing Dependency: libflask.so.1.0 for package: xen
--> Processing Dependency: libxenctrl.so.3.4 for package: xen
--> Processing Dependency: libxenguest.so.3.4 for package: xen
---> Package virt-manager.i386 0:0.7.0-1.el5 set to be updated
--> Processing Dependency: python-virtinst >= 0.400.3 for package: virt-manager
--> Processing Dependency: gtk-vnc-python >= 0.3.4 for package: virt-manager
--> Processing Dependency: libvirt-python >= 0.6.1 for package: virt-manager
---> Package gnome-applet-vm.i386 0:0.1.2-1.el5 set to be updated
---> Package libvirt.i386 0:0.6.4-3.el5 set to be updated
--> Processing Dependency: /usr/bin/qemu-img for package: libvirt
--> Processing Dependency: cyrus-sasl-md5 for package: libvirt
--> Processing Dependency: iscsi-initiator-utils for package: libvirt
---> Package kernel-xen.i686 0:2.6.18-164.el5 set to be installed
--> Processing Dependency: libvirt = 0.3.3 for package: libvirt-devel
--> Running transaction check
---> Package libvirt-devel.i386 0:0.6.4-3.el5 set to be updated
---> Package iscsi-initiator-utils.i386 0:6.2.0.868-0.18.el5_3.1 set to be updated
---> Package libvirt-python.i386 0:0.6.4-3.el5 set to be updated
---> Package qemu.i386 0:0.10.5-1.el5.rf set to be updated
---> Package gtk-vnc-python.i386 0:0.3.7-2 set to be updated
--> Processing Dependency: gtk-vnc = 0.3.7 for package: gtk-vnc-python
--> Processing Dependency: libxenctrl.so.3.0 for package: xen-devel
--> Processing Dependency: libxenguest.so.3.0 for package: xen-devel
--> Processing Dependency: xen-libs = 3.0.3-80.el5_3.3 for package: xen-devel
---> Package xen-libs.i386 0:3.4.0-3.el5 set to be updated
---> Package cyrus-sasl-md5.i386 0:2.1.22-4 set to be updated
---> Package python-virtinst.noarch 0:0.400.3-1.el5 set to be updated
--> Running transaction check
---> Package xen-devel.i386 0:3.4.0-3.el5 set to be updated
---> Package gtk-vnc.i386 0:0.3.7-2 set to be updated
--> Processing Dependency: libgdkglext-x11-1.0.so.0 for package: gtk-vnc
--> Processing Dependency: libgtkglext-x11-1.0.so.0 for package: gtk-vnc
--> Running transaction check
---> Package gtkglext-libs.i386 0:1.2.0-6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch      Version                   Repository   Size
================================================================================
Installing:
 gnome-applet-vm          i386      0.1.2-1.el5               base         76 k
 kernel-xen               i686      2.6.18-164.el5            updates      17 M
 xen                      i386      3.4.0-3.el5               gitco       9.1 M
Updating:
 gtk-vnc                  i386      0.3.7-2                   gitco        78 k
 gtk-vnc-python           i386      0.3.7-2                   gitco        13 k
 libvirt                  i386      0.6.4-3.el5               gitco       2.1 M
 libvirt-devel            i386      0.6.4-3.el5               gitco       260 k
 libvirt-python           i386      0.6.4-3.el5               gitco       139 k
 python-virtinst          noarch    0.400.3-1.el5             gitco       383 k
 virt-manager             i386      0.7.0-1.el5               gitco       1.4 M
 xen-devel                i386      3.4.0-3.el5               gitco       252 k
 xen-libs                 i386      3.4.0-3.el5               gitco       161 k
Installing for dependencies:
 cyrus-sasl-md5           i386      2.1.22-4                  base         45 k
 gtkglext-libs            i386      1.2.0-6                   gitco       145 k
 iscsi-initiator-utils    i386      6.2.0.868-0.18.el5_3.1    updates     566 k
 qemu                     i386      0.10.5-1.el5.rf           rpmforge     26 M

Transaction Summary
================================================================================
Install      7 Package(s)        
Update       9 Package(s)        
Remove       0 Package(s)        

Total size: 57 M
Total download size: 57 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                            62 kB/s |  57 MB     15:36    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

  Updating       : xen-libs                                        [ 1/25]

  Installing     : qemu                                            [ 2/25]

  Installing     : cyrus-sasl-md5                                  [ 3/25]

  Installing     : gtkglext-libs                                   [ 4/25]

  Updating       : gtk-vnc                                         [ 5/25]

  Updating       : gtk-vnc-python                                  [ 6/25]

  Installing     : iscsi-initiator-utils                           [ 7/25]

  Updating       : xen-devel                                       [ 8/25]

  Installing     : kernel-xen                                      [ 9/25]

  Updating       : libvirt                                         [10/25]

  Updating       : libvirt-python                                  [11/25]

  Updating       : python-virtinst                                 [12/25]

  Updating       : libvirt-devel                                   [13/25]

  Installing     : xen                                             [14/25]
warning: /etc/xen/scripts/locking.sh created as /etc/xen/scripts/locking.sh.rpmnew
warning: /etc/xen/scripts/network-bridge created as /etc/xen/scripts/network-bridge.rpmnew
warning: /etc/xen/scripts/network-nat created as /etc/xen/scripts/network-nat.rpmnew
warning: /etc/xen/scripts/vif-common.sh created as /etc/xen/scripts/vif-common.sh.rpmnew
warning: /etc/xen/scripts/xen-hotplug-cleanup created as /etc/xen/scripts/xen-hotplug-cleanup.rpmnew
warning: /etc/xen/xend-config.sxp created as /etc/xen/xend-config.sxp.rpmnew

  Updating       : virt-manager                                    [15/25]

  Installing     : gnome-applet-vm                                 [16/25]

  Cleanup        : gtk-vnc                                         [17/25]

  Cleanup        : libvirt-devel                                   [18/25]

  Cleanup        : xen-libs                                        [19/25]

  Cleanup        : libvirt-python                                  [20/25]

  Cleanup        : virt-manager                                    [21/25]

  Cleanup        : libvirt                                         [22/25]

  Cleanup        : gtk-vnc-python                                  [23/25]

  Cleanup        : xen-devel                                       [24/25]

  Cleanup        : python-virtinst                                 [25/25]

Installed: gnome-applet-vm.i386 0:0.1.2-1.el5 kernel-xen.i686 0:2.6.18-164.el5 xen.i386 0:3.4.0-3.el5
Dependency Installed: cyrus-sasl-md5.i386 0:2.1.22-4 gtkglext-libs.i386 0:1.2.0-6 iscsi-initiator-utils.i386 0:6.2.0.868-0.18.el5_3.1 qemu.i386 0:0.10.5-1.el5.rf
Updated: gtk-vnc.i386 0:0.3.7-2 gtk-vnc-python.i386 0:0.3.7-2 libvirt.i386 0:0.6.4-3.el5 libvirt-devel.i386 0:0.6.4-3.el5 libvirt-python.i386 0:0.6.4-3.el5 python-virtinst.noarch 0:0.400.3-1.el5 virt-manager.i386 0:0.7.0-1.el5 xen-devel.i386 0:3.4.0-3.el5 xen-libs.i386 0:3.4.0-3.el5
Complete!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值