XEN 是一种直接运行在硬件上一层软件,它可以让电脑硬件上同时跑多个用户的操作系统。由于对 x86, x86-64, Itanium, Power PC,
和 ARM 这些处理器的支持,所以 XEN 管理工具可以支持的操作系统有 Linux, NetBSD,FreeBSD,Solaris, Windows 和其他一些
运行在 XEN 上的正常的操作系统。
下面我将分3步讲解Fedora16下如何安装XEN虚拟机,并创建DomU:
建议:
在安装XEN时,为保证用户权限不受限避免出现权限错误,建议用root用户登录安装。
如不知道如何开启root用户登录,请阅读《设置Fedora能够使用root用户登录》 http://www.linuxidc.com/Linux/2011-12/48728.htm
--------------------------------------------------------------------
安装好Fedora16后,先对其进行适当配置再进行XEN的安装,可提高XEN安装的成功率。
[root@localhost ~]$ chkconfig network on
[root@localhost ~]$ /etc/init.d/network start
[root@localhost ~]$ gedit /etc/selinux/config
[root@localhost ~]$ gedit /etc/hosts
[root@localhost ~]$ yum update
[root@localhost ~]$ chkconfig iptables off
[root@localhost ~]$ chkconfig ksmtuned off
[root@localhost ~]$ reboot
重启选择新内核登录后,就可以安装XEN了,在安装XEN之前,我们先安装一些XEN运行时可能会用到到包。
[root@localhost ~]$ yum groupinstall "Development Libraries"
[root@localhost ~]$ yum groupinstall "Development Tools"
[root@localhost ~]$ yum install transfig wget texi2html libaio-devel dev86 glibc-devel e2fsprogs-devel gitk mkinitrd iasl xz-devel bzip2-devel
pciutils-libs pciutils-devel SDL-devel libX11-devel gtk2-devel bridge-utils PyXML qemu-common qemu-img mercurial
[root@localhost ~]$ yum install glibc-devel.i686
[root@localhost ~]$ yum install xen
[root@localhost ~]# /etc/init.d/xenconsoled start
[root@localhost ~]# /etc/init.d/xend start
[root@localhost ~]# /etc/init.d/xendomains start
[root@localhost ~]# /etc/init.d/xencommons start
[root@localhost ~]# /etc/init.d/xenstored start
[root@localhost ~]# /etc/init.d/libvirtd start
[root@localhost ~]$ reboot