Changeset 203 for drbl-virt


Ignore:
Timestamp:
Aug 30, 2010, 6:10:37 PM (14 years ago)
Author:
rock
Message:

Add Function Code: intergated xen command (drbl_xen_cmd.sh)

Location:
drbl-virt
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/check_drbl_vm.sh

    r202 r203  
    3636   
    3737    if [ $IP_status == "online" ]; then
    38         ssh -o StrictHostKeyChecking=no $client_IP "xentop -b -i1" >> $drbl_vm_xentop_file
     38        ssh -o StrictHostKeyChecking=no $client_IP "xentop -b -i1" > $drbl_vm_xentop_file
    3939        vm_hostnames="$(cat $drbl_vm_xentop_file | sed -n '3,$p' | awk '{print $1}')"
    4040   
  • drbl-virt/sbin/drbl_PXE_PV-VM_create.sh

    r200 r203  
    126126# = 2. Get VM MAC address =
    127127#IP_MAC_files=$(ls $Work_Home/etc | grep 'macadr-VM-eth[0-9]*.txt')
    128 IP_VM_files=$(ls $Work_Home/etc | grep 'IP_VM_eth[0-9]*')
     128
     129IP_VM_files=$(ls $Work_Home/IP_VM_eth[0-9]*)
    129130IP_VM_right_file=""
    130131IP_VM_right_line=""
     
    142143if [ -z $IP_VM_right_file ]; then
    143144    echo ""
    144     echo "Error: don't fine ${vm_name}'s IP address"
     145    echo "[Error] don't fine ${vm_name}'s IP address"
    145146    echo "Please check $Wokr_Home/etc/"
    146147    exit 2
     
    176177echo "extra = 'console=hvc0 xencons=tty'" >> $vm_cfg
    177178
     179#
     180echo "$vm_cfg is completion"
     181echo "Use this command drbl_PXE_PV-VM_deploy.sh to deploy vm"
  • drbl-virt/sbin/drbl_PXE_PV-VM_deploy.sh

    r199 r203  
    4444            if [ -z "$(echo $1 |grep ^-.)" ]; then
    4545                if [ -n "$(echo $1)" ]; then
    46                 client_name=$1
     46                    client_name=$1
    4747                else
    4848                    echo "-h host_value is null"
  • drbl-virt/sbin/functions_drbl_virt

    r202 r203  
    6868    echo "Xen will be the only Hypervisior in your DRBL"
    6969    echo -e "Because CPU don't support virtualization, it can't choose KVM to be the Hypervisior"
    70     echo ""
     70    read -p "push [enter] to contiunte..."
    7171    VMM_select=1
    7272    echo "Xen" > $Work_Home/etc/hypervisior
     
    426426chown -R drbl-virter.drbl-virter $Work_Home/tomcat-7.0.2
    427427su  drbl-virter -c "$Work_Home/tomcat-7.0.2/bin/startup.sh"
    428 }
     428echo ""
     429echo "[Go to http://{server_IP}:8080/drbl-virt/ to check !]"
     430}
  • drbl-virt/tar_drbl-virt.sh

    r202 r203  
    11cd ../
    2 tar zcvf drbl-virt.tar.gz drbl-virt
     2tar zcvf drbl-virt-0.1$(date +%Y-%m-%d-%H-%M-%S).tar.gz drbl-virt
Note: See TracChangeset for help on using the changeset viewer.