feat: GPU pass-through (#385)
This commit is contained in:
parent
ad9ea4f8d3
commit
40bfe0d3d4
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ if [[ "$GPU" != [Yy1]* ]] || [[ "$ARCH" != "amd64" ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DISPLAY_OPTS="-display egl-headless,rendernode=/dev/dri/renderD128 -vga $VGA"
|
[[ "${VGA,,}" == "virtio" ]] && VGA="virtio-vga-gl"
|
||||||
|
DISPLAY_OPTS="-display egl-headless,rendernode=/dev/dri/renderD128"
|
||||||
|
DISPLAY_OPTS="$DISPLAY_OPTS -vga none -device $VGA"
|
||||||
|
|
||||||
[[ "${DISPLAY,,}" == "vnc" ]] && DISPLAY_OPTS="$DISPLAY_OPTS -vnc :0"
|
[[ "${DISPLAY,,}" == "vnc" ]] && DISPLAY_OPTS="$DISPLAY_OPTS -vnc :0"
|
||||||
[[ "${DISPLAY,,}" == "web" ]] && DISPLAY_OPTS="$DISPLAY_OPTS -vnc :0,websocket=5700"
|
[[ "${DISPLAY,,}" == "web" ]] && DISPLAY_OPTS="$DISPLAY_OPTS -vnc :0,websocket=5700"
|
||||||
|
|
Loading…
Reference in a new issue