iscsi+clvm+gfs2+xen+Cluster(一)—环境的搭建 iscsi+clvm+gfs2+xen+Cluster(三)–iscsi的配置
9月 05

[dhcp.yubo.org]

#修改为用来安装虚拟机的ks文件

  1. [root@dhcp ~]# cat /var/www/html/ks.cfg << EOF
  2. key 4c10c9d64c6b34c9
  3. lang en_US.UTF-8
  4. keyboard us
  5. xconfig --startxonboot
  6. network --device eth0 --bootproto static --ip 192.168.1.111 --hostname v1.yubo.org --netmask 255.255.255.0 --gateway 192.168.1.254 --nameserver 202.103.24.68
  7. rootpw mario
  8. firewall --disabled
  9. authconfig --enableshadow --enablemd5
  10. selinux --disabled
  11. timezone Asia/Shanghai
  12. bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
  13. # The following is the partition information you requested
  14. # Note that any partitions you deleted are not expressed
  15. # here so unless you clear all partitions first, this is
  16. # not guaranteed to work
  17. clearpart --linux
  18. part / --fstype ext3 --size=3584
  19. part swap --size=256
  20. %packages
  21. @cluster-storage
  22. @admin-tools
  23. @editors
  24. @text-internet
  25. @gnome-desktop
  26. @core
  27. @base
  28. @clustering
  29. @java
  30. @base-x
  31. @graphics
  32. @graphical-internet
  33. scsi-target-utils
  34. iscsi-initiator-utils
  35. kexec-tools
  36. bridge-utils
  37. device-mapper-multipath
  38. xorg-x11-utils
  39. xorg-x11-server-Xnest
  40. libsane-hpaio
  41. -sysreport
  42. EOF

将rhel5的iso插入dhcp.yubo.org的光驱->挂载->共享到apache的DocumentRoot目录,给v1用来远程安装

[root@dhcp ~]# mkdir /mnt/cdrom
[root@dhcp ~]# mount /dev/cdrom /mnt/cdrom
[root@dhcp ~]# ln -s /mnt/cdrom /var/www/html/cdrom

[p1.yubo.oirg]
进入图形界面,执行
[root@iscsi ~]# virt-manager
一路forward,途中填入

system Name:v1
Paravirtualized
Install Medai URL: http://192.168.1.5/cdrom
Kickstart URL: http://192.168.1.5/ks.cfg
Simple File-&gt;File Location: /var/lib/xen/images/v1.img
Shared physical device -&gt; Device: xenbr0
VM Max Memory(MB): 252
VM Startup Memory(MB): 252
VCPUs:1

等待一段时间后,v1.yubo.org就安装完成了,下面是过程的截图








Leave a Reply

You must be logged in to post a comment.