Changeset 171 for drbl-virt/sbin/drbl_xen_patch.sh
- Timestamp:
- Aug 10, 2010, 4:00:31 PM (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_xen_patch.sh
r161 r171 9 9 # 2010/07/20 Rock First release (1.0) 10 10 11 # [PATH]12 #Work_Path=$(dirname "$0")13 #PATH=${PATH}:$Work_Path14 15 11 # [Source] 16 #source funs_drbl_virt 12 source functions_drbl_virt 13 source /opt/drbl-virt/conf/drbl-virt.conf 17 14 18 15 # [Main] 19 16 20 # [Install VMM/Hypervisior] 21 if [ $VMM_select == 1 ]; then 22 source xen_intall.sh 23 else 24 source kvm_intall.sh 25 fi 17 # = 1. Patch DRBL xen env for client = 18 # == Shutdown all drbl client == 19 echo "Please check all client are shutdown !!!" 20 read -p "Push 'Enter' to continue......" 26 21 27 # [DRBL Environment Configuration] 22 # == Change xen kernel for drbl client == 23 check_xen_nu 24 Xen_Kernel=$(echo $Xen_Kernel | sed 's/^vmlinuz-//g' ) 25 echo "/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel" 26 #/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel 27 echo "" 28 28 29 # == Re-delpoy drbl client == 30 echo "Re-delpoy drbl client" 31 echo "/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf" 32 #/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf 33 echo "" 34 35 # == Copy xen image to /tftpboot/nbi_img/ == 36 echo "copy Xen image & Kernel to /tftpboot/nbi_img/" 37 cp /boot/*xen* /tftpboot/nbi_img/ 38 cp /boot/vmlinuz-${Xen_Kernel} /tftpboot/nbi_img/ 39 cp /boot/initrd.img-${Xen_Kernel} /tftpboot/nbi_img/ 40 cp /boot/config-${Xen_Kernel} /tftpboot/nbi_img/ 41 echo "" 42 43 # == Modify PXE booting menu == 44 # backup 45 cp /tftpboot/nbi_img/pxelinux.cfg/default /tftpboot/nbi_img/pxelinux.cfg/default.drbl-virt_bak 46 47 48 # = 2. Patch DRBL initrd to support bridge = 49 # == Patch /usr/bin/mkpxeinitrd-net (1)modules (2)xen network scripts == 50 51 # == Copy xen netwrok scripts == 52 53 # == run xen network scripts (/usr/lib/mkpxeinitrd-net/initrd-skel/linuxrc-or-init) == 54 55 56
Note: See TracChangeset
for help on using the changeset viewer.