forked from ahurac/dotfiles
Scripts qemu : scripts de Windows
This commit is contained in:
parent
a658de6007
commit
9168b9d13f
3 changed files with 16 additions and 15 deletions
9
qemu/bin/windows
Executable file
9
qemu/bin/windows
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh -ex
|
||||
qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||
-m "$(("$(free | grep '^Mem: ' | awk '{ print $NF }')" / 2))K" \
|
||||
-net nic \
|
||||
-device virtio-serial \
|
||||
-usbdevice tablet \
|
||||
"$@"
|
7
qemu/bin/windows-spice
Executable file
7
qemu/bin/windows-spice
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh -x
|
||||
exec windows \
|
||||
-vga qxl \
|
||||
-spice port=5900,addr=127.0.0.1,disable-ticketing=on \
|
||||
-chardev spicevmc,id=vdagent,name=vdagent \
|
||||
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
|
||||
"$@"
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh -ex
|
||||
name="$(basename "$0")"
|
||||
qemu-system-x86_64 \
|
||||
-monitor stdio -enable-kvm \
|
||||
-bios /usr/share/edk2/x64/OVMF_CODE.fd \
|
||||
-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 \
|
||||
-cpu host -smp "$(nproc)" \
|
||||
-m 4G \
|
||||
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||||
-net nic -net "user,hostname=${name}" \
|
||||
-audiodev pa,id=snd0 -device ich9-intel-hda -device hda-output,audiodev=snd0 \
|
||||
-usbdevice tablet \
|
||||
-name "$name" \
|
||||
"$@"
|
||||
|
Loading…
Reference in a new issue