]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: update AC97 sound driver and shared_folders_msize
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Oct 2022 01:11:24 +0000 (22:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Oct 2022 01:11:24 +0000 (22:11 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 25dd0a39828dd38d8d18dff6cc85acaf90ecfdbe..455f5b68592483b73dff234c342c50deab703210 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -539,10 +539,10 @@ function kvmx_up {
 
   if [ "$sound" != "0" ]; then
     if [ -z "$sound" ]; then
-      sound="ac97"
+      sound="AC97"
     fi
 
-    sound_opts="-soundhw $sound"
+    sound_opts="-device $sound"
   fi
 
   if [ ! -z "$image_drive" ] && [ "$image_drive" == "cdrom" ]; then
@@ -695,7 +695,7 @@ function kvmx_up {
         IFS="$old_ifs"
         echo "Mounting $shared_folder on $shared_folder_mountpoint ($id) on guest using 9p..."
         echo "sudo mkdir -p $shared_folder_mountpoint" | kvmx_ssh
-        echo "sudo mount -t 9p -o trans=virtio $id $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=$shared_folders_cache -o sync -o dirsync" | kvmx_ssh
+        echo "sudo mount -t 9p -o trans=virtio,msize=$shared_folders_msize $id $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=$shared_folders_cache -o sync -o dirsync" | kvmx_ssh
         IFS=","
 
         unset shared_folder