Bugzilla – Bug 1220524
Files in virtualbox shared folder (on the guest) show wrong timestamp
Last modified: 2024-05-21 19:04:59 UTC
On my openSUSE Tumbleweed system (bare metal) Operating System: openSUSE Tumbleweed 20240225 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.12 Kernel Version: 6.7.6-1-default (64-bit) Graphics Platform: X11 I use virtualbox # zypper se -si virtual* Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository ---+------------------------+---------+-----------------------+--------+------------------ i | virtualbox | package | 7.0.14-3.1 | x86_64 | (System Packages) i+ | virtualbox-kmp-default | package | 7.0.14_k6.7.6_1-3.2 | x86_64 | (System Packages) i+ | virtualbox-qt | package | 7.0.14-3.1 | x86_64 | (System Packages) # One guest is an openSUSE Tumbleweed 20240225 system with # zypper se -si virtualbox* Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository ---+------------------------+---------+---------------------+--------+------------------ i+ | virtualbox-guest-tools | package | 7.0.14-3.1 | x86_64 | (System Packages) i+ | virtualbox-kmp-default | package | 7.0.14_k6.7.6_1-3.2 | x86_64 | (System Packages) # The host shares a directory (/mnt/Lokal/VM_share) with the guest. On the host system I have (in my home directory) a file > ls -la *.jpg -rw-r--r-- 1 A users 40749 Mar 3 2023 Opensuse_beer_label.jpg when I copy this file to the shared directory > cp -a Opensuse_beer_label.jpg /mnt/Lokal/VM_share/ everything looks fine (on the host) > ls -la /mnt/Lokal/VM_share/ total 64 drwxr-xr-x 3 A users 4096 Feb 27 09:51 . drwxr-xr-x 7 root root 4096 Jan 3 2022 .. -rw-r--r-- 1 A users 40749 Mar 3 2023 Opensuse_beer_label.jpg > but on the guest system I see in the shared folder > ls -la total 64 drwxrwx--- 1 root vboxsf 4096 Jan 1 1970 . dr-xr-xr-x 5 root root 4096 Feb 27 09:40 .. -rwxrwx--- 1 root vboxsf 40749 Feb 27 09:44 Opensuse_beer_label.jpg > The timestamps in the share of the VM don’t make sense to me. This happens to all files copied to the share. Even when I copy files in the guest to the share their timestamps are changed (in the share) to the current date . However when I look at those files on the host they do have the correct date; i.e. the date of the original file in the guest. On MS Windows 11 (bare metal) with virtualbox 7.0.14 and openSUSE Tumbleweed 20240225 as guest I see the same behaviour. Kubuntu (as guest) does not show this behaviour although it uses VBoxGuestAdditions_7.0.14 as well. I discussed this already here: https://forums.opensuse.org/t/files-in-the-virtualbox-share-show-wrong-timestamp/172718 and a third user could very this behaviour in its setup as well.
Considering the fact that host: MS Windows 10 (“pure” Oracle VirtualBox 7.0.14) guest: Kubuntu 23.10 (“pure” Oracle VirtualBox GuestAdditions 7.0.14) works fine I think there is some strong evidence that openSUSE Tumbleweed (as guest) might be the cause of the problem. I have no idea how to debug this any further. But if I can be of any assistance ...
It appears that this is a kernel problem in an OBS build. If I build a kernel from the latest source using the factory configuration, it works. The "same" kernel loaded from a TW repository fails!
(In reply to Larry Finger from comment #2) > If I build a kernel from the latest source ... Is that the sources for kernel-default-6.8~rc7 ?
It does not matter whether I use 6.8-rcX or 6.7.7. If I generate the kernel, it works. If OBS makes the kernel, it fails and I do not know why.
No, I was working with 6.7.7. I just installed 6.8.0-1.ga551d7b-default and it shows the faulty behavior. All directories in the shared folder had a Dec. 1, 1969 date, and most data files show the current date. My locally generated copy also showed the same problem. I still have more work to do.
I just updated to virtualbox-kmp-default 7.0.14_k6.8.2_1-7.2 with virtualbox-guest-tools 7.0.14-7.1 from "openSUSE Tumbleweed Oss" repository and the issue is still there. Are there any news in which version the issue is fixed?
Unfortunately, this bug is not yet fixed. I am working on it now, but I still do not know where it happens. As Leap 15.4 and Fedora 39 are both OK as guests, my inclination is that something in the guest code is wrong.
This bug is now fixed. The revised code has been submitted to Factory, and should be released within the next few days.
This is an autogenerated message for OBS integration: This bug (1220524) was mentioned in https://build.opensuse.org/request/show/1172997 15.5 / virtualbox
openSUSE-RU-2024:0134-1: An update that has three recommended fixes can now be installed. Category: recommended (important) Bug References: 1211941,1217824,1220524 CVE References: JIRA References: Sources used: openSUSE Leap 15.5 (src): virtualbox-7.0.18-lp155.2.24.1, virtualbox-kmp-7.0.18-lp155.2.24.1