- message="$1" ; shift
- echo "usage : $COMMAND [-i] [-f distro] [-p perso] hostname"
- echo " default distro is $DEFAULT_DISTRO"
- echo " default perso is $DEFAULT_PERSO"
+ message="$@"
+ echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] [-s] container"
+ echo " -c : confirm, will show the command and prompt for confirmation "
+ echo " -f : set distro, default is $DEFAULT_DISTRO"
+ echo " -i : if specified, image is rsynced into /vservers"
+ echo " warning: we cannot use an image already in /vservers..."
+ echo " -m : memory size in Mb - default is $DEFAULT_MEMORY"
+ echo " -n : specify hostname if different from container"
+ echo " -s : do not start VM"
+ echo " container : used for /vservers/foo as well as the lxc/libvirt name"
+ echo "examples"
+ echo " create-vm.sh sandbox"
+ echo " Builds a brand new $DEFAULT_DISTRO 64bits VM named sandbox with hostname sandbox.pl.sophia.inria.fr"
+ echo " create-vm.sh -i /vservers/migrating/testmaster -n testmaster testmaster.f14"
+ echo " Create a container named testmaster.f14 from the specified image with hostname testmaster.pl.sophia.inria.fr"