#! /bin/bash ############################################################ ############################################################ ## movevbcn.conf ## It moves windowsXP.vdi and w7_32.vdi file from /share/apps/VBtemplate/ (which are physically assumed to already exist lin the frontend's harddisk, located in /share/apps/VBtemplate) to /state/partition1/VBlocal/ (which is physicall located locally at a compute node's harddisk). ## To use this code to move the .vdi files, as su in the frontend, fire 'sh /share/apps/configrepo/movevbcn.conf'. ############################################################ ### Should check whether /state/partition1/VBlocal/*.vdi have already exist ### If they do, it is needless to run this code to move the *.vdi file rocks run host 'mkdir /state/partition1/VBlocal' rocks run host 'cp /share/apps/VBtemplate/windowsXP.vdi /state/partition1/VBlocal/' rocks run host 'cp /share/apps/VBtemplate/w7_32.vdi /state/partition1/VBlocal/' rocks run host 'chmod 777 /state/partition1/VBlocal/windowsXP.vdi' rocks run host 'chmod 777 /state/partition1/VBlocal/w7_32.vdi' rocks run host 'chown root:users /state/partition1/VBlocal/windowsXP.vdi' rocks run host 'chown root:users /state/partition1/VBlocal/w7_32.vdi'