#!/bin/bash VM_LIST="Leibniz (1);Ferma (2);Rufus (3);Kreia (4)" for i in $VM_LIST; do VBoxManage modifyvm "$i" --nicpromisc1 allow-vms done