forked from ahurac/dotfiles
Ajout : dossier QEMU avec un script de lancement d'une VM Windows 10
This commit is contained in:
parent
676823e7b4
commit
748bdf9c9a
1 changed files with 16 additions and 0 deletions
16
share/qemu/scripts/windows10
Executable file
16
share/qemu/scripts/windows10
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/sh -ex
|
||||||
|
realpath="$(readlink -f "$0")"
|
||||||
|
realname="$(basename "$realpath")"
|
||||||
|
cd "$(dirname "$realpath")/.."
|
||||||
|
exec screen -S "QEMU : ${realname}" -d -m qemu-system-x86_64 \
|
||||||
|
-monitor stdio -enable-kvm \
|
||||||
|
-bios /usr/share/edk2/x64/OVMF_CODE.fd \
|
||||||
|
-cpu host -smp "$(nproc)" \
|
||||||
|
-m 4G \
|
||||||
|
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||||||
|
-net nic -net "user,hostname=${realname}" \
|
||||||
|
-audiodev pa,id=snd0 \
|
||||||
|
-usbdevice tablet \
|
||||||
|
-name "$realname" \
|
||||||
|
"$@"
|
||||||
|
|
Loading…
Reference in a new issue