... VDISK="$(vboxmanage showvminfo ${VM} | grep -i "Port ${PORT}, Unit ${DEVICE}:" | awk '{print $6}' | cut -d ',' -f 1)" ...
PORT="0" DEVICE="0" HLEDEJ="Port $PORT, Unit $DEVICE:" vboxmanage showvminfo linux | grep -i "$HLEDEJ"