diff --git a/actions/slave-nodes-create-and-boot.sh b/actions/slave-nodes-create-and-boot.sh index 8052125..46a4ef8 100755 --- a/actions/slave-nodes-create-and-boot.sh +++ b/actions/slave-nodes-create-and-boot.sh @@ -50,7 +50,7 @@ for idx in $(eval echo {1..$cluster_size}); do add_disk_to_vm $name 2 $vm_slave_third_disk_mb #add NIC1 MAC to description - mac=$(execute VBoxManage showvminfo $name |awk -F ': ' '$1~/NIC 1/ {mac=gensub(/^.+ MAC: ([0-9A-F]{12}).+$/,"\\1","g",$0);print mac}') + mac=$(execute VBoxManage showvminfo $name --machinereadable |awk -F '=' '{ if ($1 == "macaddress1") print $2}') execute VBoxManage modifyvm $name --description $mac #add RDP connection