Xen 安装指南

+-----------------------------------------------------------------------------------------------------------------------+
|Xen windows installation precondition is: CPU must support virutalization technology,     |
| AMD: more /proc/cpuinfo | grep pae          |
|               |
|Detail installation steps:
| 1. Install kernel package for Xen:
| yum -y install xen*
| yum -y install kernel-xen*
|   Goto /boot/grub/grub.conf
| default=1 => default=0
| Make sure Xen kernel is the first one

此处可以重新启动机器使用ifconfig 来列出所有的网卡来验证虚拟网卡的安装是否成功。如果需要加多个虚拟网卡,可在此操作,具体步骤请参见:给 Xen 虚拟机添加一个网络接口


|2. Install vnc-server module:
|      -> yum -y install vnc-server*
|      -> As root:
| # useradd vncuser
| # passwd vncuser
|      -> Login to each user(IMPORTANT), and run vncpasswd. This will create a .vnc directory.
|      -> Edit /etc/sysconfig/vncservers, and add the following to the end of the file.
| VNCSERVERS="1:vncuser"
| VNCSERVERARGS[1]="-geometry 640x480"
| VNCSERVERARGS[1]="-geometry 800x600"
|      ->start the VNC service by following command line:
| service vncserver start
|    ----------------------------------------------------------------------------------------------
http://67.218.97.20:5801 will be the Web access site, make sure that your browser can support
| the Java Applet plugin, or you have to install it. (by the plugin hint in the web browser and follow the install orders.
 http://192.168.0.206:5801
| 3. Install Xen GUI management tool(can be used to generated the vm config):
|  yum -y install virt-manager
| 4. Shutdown iptables service temporary to avoid the ip block for VNCServer, after installation done, we can resume it. |
| 5. In the GUI configuration, generate the necessary configuration file and then start the windows installation process.|
|    安装过程中如果停止在如下画面或者不断重启:          
|    画面主要停止在starting windows...的蓝色界面上
|    此种问题一般是由于ACPI的问题,请在引导光盘启动后提示按F2或者F6的时候按下F7,禁用ACPI
+-----------------------------------------------------------------------------------------------------------------------+

 

Xen虚拟机迁移技术:
1.      xp.img
 xm info
 xm list
 xm create xp
 xm shutdown xp
/var/lib/xen/images/xp.img

2. Xen服务器启动关闭状态查看命令:
        service xend start    启动xend,如果 xend没有运行)
  service xend stop  停止xend,如果xend正在运行)
  service xend restart   重启正在运行的 xend,如果xend没有运行,则启动
  service xend status    查看xend状态
 service xendomains start (另外一组服务的状态查看)

 --------------------------------------------------------------------------------

卸载指令:

yum -y remove xen*
yum -y remove kernel-xen*

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值