|
|
@ -363,23 +363,19 @@ function vm_boot() { |
|
|
|
|
|
|
|
|
|
|
|
echo " - Video: ${DISPLAY_DEVICE}" |
|
|
|
echo " - Video: ${DISPLAY_DEVICE}" |
|
|
|
echo " - GL: ${GL^^}" |
|
|
|
echo " - GL: ${GL^^}" |
|
|
|
echo " - Virgil3D: ${VIRGL^^}" |
|
|
|
# GL is not working with GTK and virtio-vga |
|
|
|
echo " - Display: ${OUTPUT^^}" |
|
|
|
echo " - Display: ${OUTPUT^^}" |
|
|
|
|
|
|
|
|
|
|
|
# Set the hostname of the VM |
|
|
|
# Set the hostname of the VM |
|
|
|
local NET="user,hostname=${VMNAME}" |
|
|
|
local NET="user,hostname=${VMNAME}" |
|
|
|
|
|
|
|
|
|
|
|
# If smbd is available, and --no-smb is not set, export $HOME to the guest via samba |
|
|
|
|
|
|
|
if [[ -e "/usr/sbin/smbd" && -z ${NO_SMB} ]]; then |
|
|
|
|
|
|
|
NET="${NET},smb=${HOME}" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [[ ${NET} == *"smb"* ]]; then |
|
|
|
if [ "${GL}" == "on" ] && [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then |
|
|
|
echo " - smbd: ${HOME} will be exported to the guest via smb://10.0.2.4/qemu" |
|
|
|
DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on" |
|
|
|
elif [[ ${NO_SMB} -eq 1 ]]; then |
|
|
|
echo " - Virgil3D: ON" |
|
|
|
echo " - smbd: ${HOME} will not be exported to the guest. '--no-smb' is set." |
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
echo " - smbd: ${HOME} will not be exported to the guest. 'smbd' not found." |
|
|
|
echo " - Virgil3D: OFF" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Find a free port to expose ssh to the guest |
|
|
|
# Find a free port to expose ssh to the guest |
|
|
@ -624,9 +620,6 @@ else |
|
|
|
-shortcut|--shortcut) |
|
|
|
-shortcut|--shortcut) |
|
|
|
SHORTCUT=1 |
|
|
|
SHORTCUT=1 |
|
|
|
shift;; |
|
|
|
shift;; |
|
|
|
-no-smb|--no-smb) |
|
|
|
|
|
|
|
NO_SMB=1 |
|
|
|
|
|
|
|
shift;; |
|
|
|
|
|
|
|
-h|--h|-help|--help) |
|
|
|
-h|--h|-help|--help) |
|
|
|
usage;; |
|
|
|
usage;; |
|
|
|
*) |
|
|
|
*) |
|
|
|