You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked it using:
vng --force-9p -r kernel_builds/linux-next-virtme/
and the issue disappeared. So, I guess that you are right - this is virtiofs-related bug.
I've seen this issue for quite some time already but I though it was related to some issue I'm my distro. Good to know this problem doesn't happen only on my machine :)
Prerequisites
Vng is built from source and installed in a virtual environment:
(virtme) hedin@laptop:~/prj$ vng --version
virtme-ng 1.31+5.g1da4504
Host OS version:
hedin@laptop:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
Reproducer
Build the latest linux-next and run it:
(virtme) hedin@laptop:~/prj$ vng -r kernel_builds/linux-next-virtme/
_ _
__ ()_ | | _ __ ___ ___ _ __ __ _
\ \ / / | | | _ _ \ / _ ____| _ \ / _ |
\ V /| | | | || | | | | | /| | | | (| |
_/ ||| _|| || |_|_| || ||__ |
|___/
kernel version: 6.12.0-rc3-next-20241018-virtme x86_64
(CTRL+d to exit)
Create a file on the host:
hedin@laptop:~$ echo "123" > test.txt
Check it on the guest:
hedin@virtme-ng:~$ cat test.txt
123
Modify it on the host by adding something:
hedin@laptop:~$ vim test.txt
Check the changes in the guest:
hedin@virtme-ng:~$ cat test.txt
cat: test.txt: Stale file handle
Close the editor in the host and check file on the guest one more time:
hedin@virtme-ng:~$ cat test.txt
cat: test.txt: Stale file handle
List files in the guest:
hedin@virtme-ng:~$ ls
ls: cannot access 'test.txt': Stale file handle
Remove the file from the host:
hedin@laptop:~$ rm test.txt
The error in the guest disappeared
The text was updated successfully, but these errors were encountered: