10 lines
218 B
Plaintext
10 lines
218 B
Plaintext
numvm=$1
|
|
nomvm=$2
|
|
ip=$3
|
|
qm clone 9000 "${numvm}" --name "${nomvm}"
|
|
qm set "${numvm}" --sshkeys id_rsa-pve.pub
|
|
qm set "${numvm}" --ipconfig0 ip="${ip}"/24,gw=192.168.0.1
|
|
qm resize 1 scsi0 8G
|
|
qm start "${numvm}"
|
|
qm list
|