From: Oleg Broytman Date: Mon, 15 Jul 2019 18:10:51 +0000 (+0300) Subject: Add a script to clone a VM under a different name X-Git-Url: https://git.phdru.name/?p=vbox-scripts.git;a=commitdiff_plain;h=867baec2d2fdf7a48ae56c3e05d2ea98d1951daa Add a script to clone a VM under a different name --- 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