diff --git a/vmcreate.sh b/vmcreate.sh index b6b5430..ab486c9 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -1,5 +1,5 @@ #!/bin/bash -while read line +cat ./hosts | while read line do ip=$(echo $line | cut -d ' ' -f 1) hostname=$(echo $line | cut -d ' ' -f 2) @@ -18,4 +18,4 @@ do qm set $vmnum --ipconfig0 ip=$ip/24,gw=10.10.35.1 qm cloudinit update $vmnum qm start $vmnum -done < ./hosts \ No newline at end of file +done \ No newline at end of file