首页 > √freebsd, √linux, √文章精选 > xen安装配置
viyin.net

xen安装配置

2010年3月29日 发表评论 阅读评论

初次配置,我装了X11和VNCSERVER(vnc配置)。图形界面方便些。

1.安装xen
# yum -y install *
安装XEN需要的服务
# yum -y install kernel-xen*
安装管理程序
#yum -y install virt-manager

2.修改/etc/grub.conf ,用XEN内核启动

3.virt-manager管理界面


4.新建虚拟机
安装源我用了NFS搭建


网卡选择桥接

总览

xen虚拟机配置文件,第一次装好后,复制几个虚拟机,然改配置文件就好了

  1. [root@as xen]# pwd
  2. /etc/xen
  3. [root@as xen]# ls
  4. auto       vi1  xend-config.sxp          xmexample1     xmexample.vti
  5. qemu-ifup  vi2  xend-pci-permissive.sxp  xmexample2
  6. scripts    vi3  xend-pci-quirks.sxp      xmexample.hvm
  7. [root@as xen]# cat vi1
  8. name = "vi1"
  9. uuid = "8d251f04-80ff-9309-b525-33309522c256"
  10. maxmem = 512
  11. memory = 256
  12. vcpus = 4
  13. bootloader = "/usr/bin/pygrub"
  14. on_poweroff = "destroy"
  15. on_reboot = "restart"
  16. on_crash = "restart"
  17. vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
  18. disk = [ "tap:aio:/var/lib/xen/images/vi1.img,xvda,w" ]
  19. vif = [ "mac=00:16:36:7b:5c:61,bridge=xenbr0,script=vif-bridge" ]
  20. [root@as xen]# cat vi2
  21. name = "vi2"
  22. uuid = "8d251f04-80ff-9309-b525-33309522c257"
  23. maxmem = 512
  24. memory = 256
  25. vcpus = 4
  26. bootloader = "/usr/bin/pygrub"
  27. on_poweroff = "destroy"
  28. on_reboot = "restart"
  29. on_crash = "restart"
  30. vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
  31. disk = [ "tap:aio:/var/lib/xen/images/vi2.img,xvda,w" ]
  32. vif = [ "mac=00:16:36:7b:5c:62,bridge=xenbr0,script=vif-bridge" ]
viyin.net
  1. 2010年3月30日22:28 | #1

    这是在CentOS下做的吗,怎么该文章在FreeBSD目录下
    话说FreeBSD也没有yum呀

  2. xen-ing
    2010年6月6日16:54 | #2

    请问centos5.4下用virt-manager生成的VM的配置文件在什么地方?我创建了VM 后,用xm list看不到,只能在Virt-manager里看到。是为什么呢?谢谢

  3. 2010年6月6日20:57 | #3

    /etc/xen

  1. 本文目前尚无任何 trackbacks 和 pingbacks.