Peaceful mind Where there is a will, there is a way!

29Oct/090

在centos5.2 (i386) 上安装xen虚拟机(转载)

有兴趣的可以查看英文原版:http://www.howtoforge.com/installing-xen-on-centos-5.2-i386

如果是全新安装。最好能单独生成用于保存虚拟机的分区

如果只是做测试用.随便指定保存虚拟机的分区即可。但必须有足够的空间

step1:修改/etc/sysconfig/selinux文件中 "SELINUX=disabled"

step2: reboot

step3:yum install kernel-xen xen(在网络连接正常情况下)

step4:查看/boot/grub/menu.lst配置

step5:reboot

step6:uname -r查看内核版本是否带xen标志

step7:xm list

step8:使用向导virt-install安装(必须要求内存大于512M,否则总是提示失败)

step9:cat /etc/xen/vm01

常用命令:

xm create -c /path/to/config - Start a virtual machine.
xm shutdown <name> - Stop a virtual machine.
xm destroy <name> - Stop a virtual machine immediately without shutting it down. It's as if you switch off the power button.
xm list - List all running systems.
xm console <name> - Log in on a virtual machine.
xm help - List of all commands.
Tagged as: , No Comments