From 867baec2d2fdf7a48ae56c3e05d2ea98d1951daa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 15 Jul 2019 21:10:51 +0300 Subject: [PATCH] Add a script to clone a VM under a different name --- clone | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 clone diff --git a/clone b/clone new file mode 100755 index 0000000..d558241 --- /dev/null +++ b/clone @@ -0,0 +1,11 @@ +#! /bin/sh + +if [ -z "$2" ]; then + echo "Usage: $0 from_vm to_vm" >&2 + exit 1 +fi + +FROM_VM="$1" +TO_VM="$2" + +exec VBoxManage clonevm "$FROM_VM" --name "$TO_VM" --register -- 2.39.5