|
|
@ -18,16 +18,25 @@ verifMVExiste()
|
|
|
|
nouvMV()
|
|
|
|
nouvMV()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
local l_option=${1}
|
|
|
|
local l_option=${1}
|
|
|
|
local l_parametre=${2}
|
|
|
|
echo "l_option=${l_option}" # Debogage
|
|
|
|
|
|
|
|
shift
|
|
|
|
case "${l_option}" in
|
|
|
|
case "${l_option}" in
|
|
|
|
"nom")
|
|
|
|
"nom")
|
|
|
|
echo "-name ${l_parametre} \\" > ${chemin_mv}
|
|
|
|
echo "-name ${1} \\" > ${chemin_mv}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"cpu")
|
|
|
|
"cpu")
|
|
|
|
echo "-cpu ${l_parametre} \\" >> ${chemin_mv}
|
|
|
|
echo "-cpu ${1} -smp cores=${2},theads=${3},sockets=1 \\" >> ${chemin_mv}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"memoire")
|
|
|
|
"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
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
}
|
|
|
|