diff options
Diffstat (limited to 'kvmxfile')
-rw-r--r-- | kvmxfile | 53 |
1 files changed, 43 insertions, 10 deletions
@@ -40,13 +40,30 @@ net="user" # Set this is you want to be able to share multiple folders between host and guest using 9p. # Needs ssh_support set to "y" and a workable SSH connection to the guest. -# Format: <id1>:<host-folder1>:<guest-mountpoint1>,<id2>:<host-folder2>:<guest-mountpoint2>[,...] +# Mode defaults to "rw"; set to "ro" to ensure volume is shared and mounted read-only. +# Format: <id1>:<host-folder1>:<guest-mountpoint1>[:mode1],<id2>:<host-folder2>:<guest-mountpoint2>[:mode2][,...] #shared_folders="shared1:.:/home/$user/code/$VM,shared2:$HOME/.local/share/app:/home/$user/.local/share/app" +#shared_folders="shared1:.:/home/$user/code/$VM,shared2:ro:$HOME/.local/share/app:/home/$user/.local/share/app:rw" -# Maximum packet size including any headers for shared folders using 9p -# See https://forums.lime-technology.com/topic/34691-9p-sharing-speed-not-what-i-expected/ +# Maximum packet size in bytex including any headers for shared folders using 9p +# In the past this was limited to 500kB: https://lwn.net/Articles/901523/ +# +# See https://wiki.qemu.org/Documentation/9psetup +# https://wiki.qemu.org/Documentation/9p +# https://www.kernel.org/doc/html/latest/filesystems/9p.html # https://github.com/clearcontainers/hyperstart/pull/25 -#shared_folders_msize="524288" +# https://issues.guix.gnu.org/47225 +# +# Examples: 4194304 bytes = 4MiB +# 16777216 bytes = 16MiB +# 33554432 bytes = 32MiB +# +# Depending on upstream support (kernel and virtio), the underlying drivers may +# cap this to a max, and give you the following message: +# +# 9pnet: Limiting 'msize' to 512000 as this is the maximum supported by transport virtio +# +#shared_folders_msize="33554432" # Shared folders caching # See https://www.kernel.org/doc/Documentation/filesystems/9p.txt @@ -59,18 +76,18 @@ net="user" # Folder to sync during provisioning in the format "/host/folder1 /guest/folder1,/host/folder2 /guest/folder2[,...]". # Needs ssh_support set to "y" and a workable SSH connection to the guest. -#provision_rsync="$KVMX_BASE/share/provision/ /usr/local/share/kvmx/provision/" #provision_rsync="puppet/ /etc/puppet/" +provision_rsync="$KVMX_BASE/share/provision/ /usr/local/share/kvmx/provision/" # Options for provision_rsync #provision_rsync_opts="--exclude=somefolder" # Absolute path for a provision script located inside the guest. # Needs ssh_support set to "y" and a workable SSH connection to the guest. -#provision_command="sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean" -#provision_command="/usr/local/share/kvmx/provision/debian/development && /etc/puppet/bin/provision && /etc/puppet/bin/deploy" -#provision_command="/usr/local/share/kvmx/provision/debian/development && /etc/puppet/bin/deploy" -#provision_command="/usr/local/share/kvmx/provision/debian/development && /home/$user/code/$VM/bin/custom-provisioner" +#provision_command="sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && true" +#provision_command="/usr/local/share/kvmx/provision/debian/development $hostname $domain $mirror && /etc/puppet/bin/provision && /etc/puppet/bin/deploy" +#provision_command="/usr/local/share/kvmx/provision/debian/development $hostname $domain $mirror && /etc/puppet/bin/deploy" +#provision_command="/usr/local/share/kvmx/provision/debian/development $hostname $domain $mirror && /home/$user/code/$VM/bin/custom-provisioner" #provision_command="/usr/local/share/kvmx/provision/debian/development" #provision_command="/usr/local/share/kvmx/provision/debian/trashman" #provision_command="/usr/local/share/kvmx/provision/debian/desktop-basic" @@ -105,7 +122,7 @@ graphics="-vga qxl" vnc_client="virt-viewer" # SPICE support -spice="0" +spice="1" # Set this if you want to attach an spice client when the machine boots. run_spice_client="0" @@ -115,6 +132,14 @@ run_spice_client="0" #spice_client="virt-viewer" spice_client="spicy" +# Move the SPICE window client to a specific position in the desktop. +# +# Configuration xclient_windowmove can be set either at kvmxconfig +# or as a user setting at ~/.config/kvmxconfig (which will affect all guests). +# +# Example: move X11 client window below the WM bar +#xclient_windowmove="0 21" + # Set this if you want that kvmx-vdagent is triggered after the machine boots. kvmx_vdagent="0" @@ -264,3 +289,11 @@ bootloader="grub" #export QEMU_AUDIO_DRV="pa" #export QEMU_PA_SAMPLES="8192" #export QEMU_AUDIO_TIMER_PERIOD="99" + +# Inotify events listened by the "inotify" action +# +# See inotifywait(0) for the full list and description of all supported events. +# +# By default, exclude "access", "close", "close_write", "close_nowrite", "open" +# from the list of events +inotify_events="modify attrib moved_to moved_from move move_self create delete delete_self unmount" |