diff --git a/qemu-adm b/qemu-adm index d3bc9b1..ac36b32 100755 --- a/qemu-adm +++ b/qemu-adm @@ -18,16 +18,25 @@ verifMVExiste() nouvMV() { local l_option=${1} - local l_parametre=${2} + echo "l_option=${l_option}" # Debogage + shift case "${l_option}" in "nom") - echo "-name ${l_parametre} \\" > ${chemin_mv} + echo "-name ${1} \\" > ${chemin_mv} ;; "cpu") - echo "-cpu ${l_parametre} \\" >> ${chemin_mv} + echo "-cpu ${1} -smp cores=${2},theads=${3},sockets=1 \\" >> ${chemin_mv} ;; "memoire") - echo "-memoire ${l_parametre} \\" >> ${chemin_mv} + echo "-m ${1} \\" >> ${chemin_mv} + ;; + "bios") + case "${1}" in + "OVMF") + cp /usr/share/ovmf/OVMF.fd ${base_chemin_mv}/OVMF.fd + echo "-drive if=pflash,format=raw,file=${base_chemin_mv}/OVMF.fd \\" >> ${chemin_mv} + ;; + esac ;; esac }