Compare commits
3 commits
7d0a44df21
...
7611715fbe
Author | SHA1 | Date | |
---|---|---|---|
7611715fbe | |||
7ad6125fa5 | |||
5e9491e095 |
5 changed files with 0 additions and 40 deletions
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# Read configuration
|
|
||||||
sourceconf() { [ -r "$1" ] && . "$1"; }
|
|
||||||
sourceconf ./conf
|
|
||||||
|
|
||||||
# Delete socket and PID file
|
|
||||||
exec rm -f "$socket" "${socket}.pid"
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# Read configuration
|
|
||||||
sourceconf() {
|
|
||||||
[ -r "$1" ] && . "$1"
|
|
||||||
}
|
|
||||||
sourceconf ./conf
|
|
||||||
|
|
||||||
# Start a virtiofsd sharing qemu shared dir
|
|
||||||
exec /usr/lib/virtiofsd \
|
|
||||||
--shared-dir "$shared_dir" \
|
|
||||||
--socket-path "$socket" \
|
|
||||||
--socket-group qemu
|
|
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/sh -x
|
|
||||||
base=$(echo "$QEMUSH_BASE" | cut -d , -f 1)
|
|
||||||
QEMUSH_BASE=$(echo "$QEMUSH_BASE" | sed "s/^${base}//" | sed 's/^,//')
|
|
||||||
|
|
||||||
. /run/runit/service/virtiofsd/conf
|
|
||||||
|
|
||||||
if [ -S "$socket" ]; then set -- \
|
|
||||||
-chardev socket,id=char0,path="${socket}" \
|
|
||||||
-device vhost-user-fs-pci,chardev=char0,tag=shared \
|
|
||||||
-object memory-backend-memfd,id=mem,size="${QEMUSH_RAM}",share=on \
|
|
||||||
-numa node,memdev=mem \
|
|
||||||
"$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec "$base" "$@"
|
|
|
@ -1,10 +1,6 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
export QEMUSH_RAM=4G
|
export QEMUSH_RAM=4G
|
||||||
export QEMUSH_BASE=kvm
|
export QEMUSH_BASE=kvm
|
||||||
[ -z "$QEMUSH_NAME" ] && {
|
|
||||||
export QEMUSH_NAME
|
|
||||||
QEMUSH_NAME=$(basename "$0")
|
|
||||||
}
|
|
||||||
|
|
||||||
# Launch the virtual machine
|
# Launch the virtual machine
|
||||||
set -- spice \
|
set -- spice \
|
||||||
|
|
Loading…
Reference in a new issue