虚拟服务器XEN通过yum来安装,虚拟主机通过virt-install来安装。步骤:1.为了方便行事,把系统默认的yum源换成中科大的源,这个速度国内比较快。cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.save wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 mv CentOS-Base.repo.5 CentOS-Base.repo2.确认当前XEN并未安装在系统中,并通过yum来安装XENyum clean allyum grouplist //若Virtualization位于Available Groups而非Installed Groups里则说明XEN并未安装在系统中yum groupinstall Virtualization -y3.安装完成后修改grub让它以xen内核启动vi /etc/grub.conf#boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.