Compare commits

...

2 commits

Author SHA1 Message Date
Hippolyte Chauvin
a658de6007 qemu script linux-spice : ajout d'options pour spice 2023-11-30 10:12:58 +01:00
Hippolyte Chauvin
9881409b40 qemush : fonction cat 2023-11-29 14:57:46 +01:00
2 changed files with 14 additions and 1 deletions

View file

@ -16,6 +16,11 @@ exec_as qemu "$@"
bin=bin bin=bin
images=images images=images
if [ -t 1 ]; then
cat=src-hilite-lesspipe.sh
else
cat=cat
fi
PATH="./${bin}:${PATH}" PATH="./${bin}:${PATH}"
EDITOR="${EDITOR:-nvim}" EDITOR="${EDITOR:-nvim}"
@ -101,6 +106,10 @@ public_shell() {
bash -i bash -i
} }
public_cat() {
"$cat" "${bin}/${1}"
}
function="$1" function="$1"
shift shift

View file

@ -1,4 +1,8 @@
#!/bin/sh -ex #!/bin/sh -ex
exec linux \ exec linux \
-vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \ -vga qxl \
-device virtio-serial \
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
-spice port=5900,addr=127.0.0.1,disable-ticketing=on \
"$@" "$@"