#! /bin/bash ############################################################ ############################################################ ## movevbcn.conf ## It moves windowsXP.vdi file from /home/mpi/.VirtualBox/HardDisks (which is physicall located in the frontend's harddisk) ## to /state/partition1/repo/VBanicca/.VirtualBox/HardDisks (which is physicall located locally at a compute node's harddisk). ## Fire this code in local node's directory /root/configrepo by ## sh /share/apps/configrepo/movevbcn.conf ############################################################ ### should check if /state/partition1/repo/VBanicca/.VirtualBox/HardDisks alreayd has a windowsXP.dvi . If yes, skip the following part. #Copy a copy of windowsXP.dvi from /home/mpi/.VirtualBox/HardDisks to the local hardisk of the compute node at /state/partition1/repo/VBanicca/.VirtualBox/HardDisks/ mkdir /state/partition1/repo mkdir /state/partition1/repo/VBanicca mkdir /state/partition1/repo/VBanicca/.VirtualBox mkdir /state/partition1/repo/VBanicca/.VirtualBox/HardDisks chown -R root:users /state/partition1/repo/VBanicca/.VirtualBox/HardDisks/ chmod 777 /state/partition1/repo/VBanicca/.VirtualBox/HardDisks/ su - mpi | cp /home/mpi/.VirtualBox/HardDisks/windowsXP.vdi /state/partition1/repo/VBanicca/.VirtualBox/HardDisks/. & #cd /home/mpi/.VirtualBox/HardDisks #su #chmod 777 /state/partition1/repo/VBanicca/.VirtualBox/HardDisks/windowsXP.vdi #chown root:users /state/partition1/repo/VBanicca/HardDisks/.VirtualBox/windowsXP.vdi #### Finished ###### echo -e "\nMessage from the author :\nCOMPLETE!!! \n"