function CUSTOM_IMG(){
STOR=$1; ID=$2; PASS_HOST=$3; PASS_VM=$4;
IMG=$(find $STOR -type f | grep $ID | grep -vE 'meta|lease')
expect <<EOF
set timeout 3
spawn virt-customize -a $IMG --root-password file:$PASS_VM --copy-in /oh-my-zsh:/
expect "Please enter your authentication name:"
send "root\r"
expect "Please enter your password:"
send "$PASS_HOST\r"
expect eof
EOF
echo $ID
}
function SYSPREP_IMG(){
STOR=$1; ID=$2; PASS_HOST=$3;
IMG=$(find $STOR -type f | grep $ID | grep -vE 'meta|lease')
expect <<EOF
set timeout 3
virt-sysprep -a $IMG --operations defaults,-package-manager-cache,-ssh-userdir
expect "Please enter your authentication name:"
send "root\r"
expect "Please enter your password:"
send "$PASS_HOST\r"
expect eof
EOF
echo $ID
}