Ajout : scripts de lancements des kernels
This commit is contained in:
parent
ab5148150c
commit
1da2ba12b6
6 changed files with 46 additions and 0 deletions
8
qemu/bin/linux
Executable file
8
qemu/bin/linux
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh -x
|
||||
qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-M q35 \
|
||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
|
||||
-net nic \
|
||||
"$@"
|
8
qemu/bin/linux-spice
Executable file
8
qemu/bin/linux-spice
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh -x
|
||||
exec linux \
|
||||
-vga qxl \
|
||||
-device virtio-serial \
|
||||
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
|
||||
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
|
||||
-spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \
|
||||
"$@"
|
10
qemu/bin/redox
Executable file
10
qemu/bin/redox
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh -x
|
||||
exec qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-M q35 \
|
||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||
-m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \
|
||||
-device e1000,netdev=net0 \
|
||||
-device nec-usb-xhci,id=xhci \
|
||||
-device ich9-intel-hda -device hda-duplex \
|
||||
"$@"
|
4
qemu/bin/redox-spice
Executable file
4
qemu/bin/redox-spice
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh -x
|
||||
exec redox \
|
||||
-vga qxl -spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \
|
||||
"$@"
|
9
qemu/bin/windows
Executable file
9
qemu/bin/windows
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh -x
|
||||
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="$(first-free-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 \
|
||||
"$@"
|
Loading…
Reference in a new issue