设为首页 收藏本站
查看: 1060|回复: 0

[经验分享] xen3.4.0_another_install

[复制链接]

尚未签到

发表于 2015-10-11 14:29:24 | 显示全部楼层 |阅读模式
  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!
   
版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-125508-1-1.html 上篇帖子: 在 Debian 上安装和配置 Xen 下篇帖子: 在centos6.0下安装xen
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表