#!/bin/bash num1="$1" num2="$2" nom="$3" ip="$4" qm clone "${num1}" "${num2}" --name "${nom}" qm set "${num2}" --sshkeys id_rsa.pub qm set "${num2}" --ipconfig0 ip="${ip}",gw=192.168.0.1 qm resize "${num2}" scsi0 8G qm start "${num2}"