Update qmcreate.sh
This commit is contained in:
@@ -2,5 +2,10 @@
|
||||
while read $line
|
||||
do
|
||||
ip=$(echo $line | cut -d ' ' -f 1)
|
||||
echo "IP address: $ip"
|
||||
hostname=$(echo $line | cut -d ' ' -f 2)
|
||||
echo "IHostname: $hostname"
|
||||
vmnum=35$(echo $ip | cut -d '.' -f 4)
|
||||
echo "VM number: $vmnum"
|
||||
qm clone 5000 $vmnum
|
||||
done < ./hosts
|
||||
Reference in New Issue
Block a user