#2152·lima

Writes to virtiofs (linux host w/ virtiofsd) filesystem fail even when using --mount-writable

Author: rjsmith1999Created Jan 18, 2024Updated Sep 23, 2026

Description

Host OS is ubuntu 2022.2, using latest virtiofsd from gitlab.

Could this be a virtiofsd issue, if so, how can I test?   Example:

jackson@SOME_HOST:~$ limactl start --name test --mount-type virtiofs --mount-writable
? Creating an instance "test" Proceed with the current configuration
WARN[0007] `mountType: virtiofs` on Linux is experimental 
INFO[0007] Starting the instance "test" with VM driver "qemu" 
INFO[0007] Attempting to download the image              arch=x86_64 digest="sha256:f6529be56da3429a56e4f5ef202bf4958201bc63f8541e478caa6e8eb712e635" location="https://cloud-images.ubuntu.com/releases/23.10/release-20231011/ubuntu-23.10-server-cloudimg-amd64.img"
INFO[0008] Using cache "/home/jackson/.cache/lima/download/by-url-sha256/c80fd2f7776369eb3c6fe0ce62d1a608491698e05554a6d04c4730f135078d87/data" 
INFO[0008] Attempting to download the nerdctl archive    arch=x86_64 digest="sha256:7c174a9ccc4dffdef08fe43eeb99e62ed00d7a4fd0b3a2fe60b3bfdd044c9135" location="https://github.com/containerd/nerdctl/releases/download/v1.7.1/nerdctl-full-1.7.1-linux-amd64.tar.gz"
INFO[0008] Using cache "/home/jackson/.cache/lima/download/by-url-sha256/c8ac6e3fed99e2f731ad6ab86ea00680d3e895ffad08832b2e7dbc3e0a80a00f/data" 
INFO[0009] [hostagent] hostagent socket created at /home/jackson/.lima/test/ha.sock 
INFO[0010] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/home/jackson/.lima/test/serial*.log") 
INFO[0010] SSH Local Port: 36927                        
INFO[0010] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0020] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0036] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0046] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0056] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0058] [hostagent] The essential requirement 1 of 2 is satisfied 
INFO[0058] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh" 
INFO[0058] [hostagent] The essential requirement 2 of 2 is satisfied 
INFO[0058] [hostagent] Waiting for the optional requirement 1 of 2: "systemd must be available" 
INFO[0058] [hostagent] Guest agent is running           
INFO[0058] [hostagent] Not forwarding TCP 127.0.0.54:53 
INFO[0058] [hostagent] Not forwarding TCP 127.0.0.53:53 
INFO[0058] [hostagent] Not forwarding TCP [::]:22       
INFO[0058] [hostagent] The optional requirement 1 of 2 is satisfied 
INFO[0058] [hostagent] Waiting for the optional requirement 2 of 2: "containerd binaries to be installed" 
INFO[0098] [hostagent] Waiting for the optional requirement 2 of 2: "containerd binaries to be installed" 
INFO[0098] [hostagent] The optional requirement 2 of 2 is satisfied 
INFO[0098] [hostagent] Waiting for the guest agent to be running 
INFO[0098] [hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished" 
INFO[0113] [hostagent] The final requirement 1 of 1 is satisfied 
INFO[0113] READY. Run `limactl shell test` to open the shell. 
jackson@SOME_HOST:~$ limactl shell test
jackson@lima-test:/home/jackson$ touch test.txt
touch: cannot touch 'test.txt': Invalid argument