Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Discussions about using Linux guests in VirtualBox.
Post Reply
v4lyfe
Posts: 3
Joined: 11. Aug 2011, 03:28
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by v4lyfe »

I am having a problem with shared folders on my Windows 7 host, Vbox 4.1, Ubuntu 11.04 guest. Namely, when a web daemon I have creates a file in an auto-mounted shared folder, the file is created with nonsensical permissions (see the ?) marks:

Code: Select all

bob@ms:/media/sf_Shared/XXXX/Directory 1$ sudo ls -al
ls: cannot access file.1.avi: No such file or directory
ls: cannot access file.1.nfo: No such file or directory
total 28
drwxrwx--- 1 root vboxsf  4096 2011-08-10 20:39 .
drwxrwx--- 1 root vboxsf 24576 2011-08-10 20:39 ..
?????????? ? ?    ?          ?                ? file.1.avi
?????????? ? ?    ?          ?                ? file.1.nfo
bob@ms:/media/sf_Shared/XXXX/Directory 1$
The web daemon is running as a user in the vboxsf group. And interestingly, if I open a terminal (as myself) and create a file in the directory, the permissions are set as you would expect:

Code: Select all

bob@ms:/media/sf_Shared$ ls -al foo
-rwxrwx--- 1 root vboxsf 0 2011-08-10 21:37 foo
bob@ms:/media/sf_Shared$
This was previously working fine but last weekend I upgraded to VirtualBox 4.1 (from 4.0) & Ubuntu 11.04. I also upgraded the VirtualBox extensions to the 4.1 version. So not sure if it's related to that.

I also get the following messages in my dmesg that may or not be related. The folder /media/sf_Music mentioned below has the same problem.

Code: Select all

[   11.164196] ------------[ cut here ]------------
[   11.164203] WARNING: at /build/buildd/linux-2.6.38/fs/sysfs/dir.c:455 sysfs_add_one+0x9b/0xd0()
[   11.164204] Hardware name: VirtualBox
[   11.164205] sysfs: cannot create duplicate filename '/devices/virtual/bdi/vboxsf-Music'
[   11.164206] Modules linked in: vboxvideo drm vesafb binfmt_misc vboxsf snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device vboxguest ppdev parport_pc snd psmouse joydev soundcore serio_raw snd_page_alloc i2c_piix4 lp parport usbhid hid ahci libahci e1000
[   11.164220] Pid: 1491, comm: mount.vboxsf Not tainted 2.6.38-10-generic #46-Ubuntu
[   11.164222] Call Trace:
[   11.164226]  [<c104f9b2>] ? warn_slowpath_common+0x72/0xa0
[   11.164228]  [<c11847ab>] ? sysfs_add_one+0x9b/0xd0
[   11.164230]  [<c11847ab>] ? sysfs_add_one+0x9b/0xd0
[   11.164232]  [<c104fa83>] ? warn_slowpath_fmt+0x33/0x40
[   11.164234]  [<c11847ab>] ? sysfs_add_one+0x9b/0xd0
[   11.164236]  [<c118483c>] ? create_dir+0x5c/0xb0
[   11.164237]  [<c1184931>] ? sysfs_create_dir+0x71/0xb0
[   11.164240]  [<c1273262>] ? kobject_add_internal+0x92/0x1f0
[   11.164242]  [<c1273012>] ? kobject_get+0x12/0x20
[   11.164244]  [<c12735ae>] ? kobject_add+0x3e/0x80
[   11.164247]  [<c1331d96>] ? device_add+0xd6/0x380
[   11.164250]  [<c1038d7e>] ? complete_all+0x4e/0x60
[   11.164252]  [<c133c7ee>] ? pm_runtime_init+0xbe/0xd0
[   11.164255]  [<c133a340>] ? device_pm_init+0x40/0x50
[   11.164257]  [<c1332057>] ? device_register+0x17/0x20
[   11.164258]  [<c1332111>] ? device_create_vargs+0xb1/0xe0
[   11.164262]  [<c10f9d40>] ? bdi_register+0x50/0x170
[   11.164266]  [<f822a87b>] ? sf_init_backing_dev+0x4b/0x60 [vboxsf]
[   11.164269]  [<f82273e3>] ? sf_read_super_26+0x2e3/0x6e0 [vboxsf]
[   11.164272]  [<c1129977>] ? mount_nodev+0x47/0xa0
[   11.164274]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164276]  [<c11299ef>] ? get_sb_nodev+0x1f/0x40
[   11.164278]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164280]  [<f8227031>] ? sf_get_sb+0x21/0x30 [vboxsf]
[   11.164282]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164284]  [<c11295ac>] ? vfs_kern_mount+0x18c/0x250
[   11.164286]  [<c113fc03>] ? get_fs_type+0x33/0xb0
[   11.164288]  [<c11296ce>] ? do_kern_mount+0x3e/0xe0
[   11.164290]  [<c1142b33>] ? do_mount+0x1b3/0x1e0
[   11.164292]  [<c1142ecb>] ? sys_mount+0x6b/0xa0
[   11.164294]  [<c150a194>] ? syscall_call+0x7/0xb
[   11.164295] ---[ end trace 073da85e17dbd81b ]---
[   11.164303] kobject_add_internal failed for vboxsf-Music with -EEXIST, don't try to register things with the same name in the same directory.
[   11.164306] Pid: 1491, comm: mount.vboxsf Tainted: G        W   2.6.38-10-generic #46-Ubuntu
[   11.164307] Call Trace:
[   11.164309]  [<c1273330>] ? kobject_add_internal+0x160/0x1f0
[   11.164311]  [<c1273012>] ? kobject_get+0x12/0x20
[   11.164312]  [<c12735ae>] ? kobject_add+0x3e/0x80
[   11.164314]  [<c1331d96>] ? device_add+0xd6/0x380
[   11.164316]  [<c1038d7e>] ? complete_all+0x4e/0x60
[   11.164317]  [<c133c7ee>] ? pm_runtime_init+0xbe/0xd0
[   11.164322]  [<c133a340>] ? device_pm_init+0x40/0x50
[   11.164325]  [<c1332057>] ? device_register+0x17/0x20
[   11.164327]  [<c1332111>] ? device_create_vargs+0xb1/0xe0
[   11.164329]  [<c10f9d40>] ? bdi_register+0x50/0x170
[   11.164332]  [<f822a87b>] ? sf_init_backing_dev+0x4b/0x60 [vboxsf]
[   11.164335]  [<f82273e3>] ? sf_read_super_26+0x2e3/0x6e0 [vboxsf]
[   11.164337]  [<c1129977>] ? mount_nodev+0x47/0xa0
[   11.164340]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164342]  [<c11299ef>] ? get_sb_nodev+0x1f/0x40
[   11.164344]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164346]  [<f8227031>] ? sf_get_sb+0x21/0x30 [vboxsf]
[   11.164349]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164351]  [<c11295ac>] ? vfs_kern_mount+0x18c/0x250
[   11.164353]  [<c113fc03>] ? get_fs_type+0x33/0xb0
[   11.164355]  [<c11296ce>] ? do_kern_mount+0x3e/0xe0
[   11.164357]  [<c1142b33>] ? do_mount+0x1b3/0x1e0
[   11.164359]  [<c1142ecb>] ? sys_mount+0x6b/0xa0
[   11.164361]  [<c150a194>] ? syscall_call+0x7/0xb
[   11.164363] ------------[ cut here ]------------
[   11.164368] WARNING: at /build/buildd/linux-2.6.38/fs/inode.c:1396 iput_final+0x1b9/0x1e0()
[   11.164369] Hardware name: VirtualBox
[   11.164370] Modules linked in: vboxvideo drm vesafb binfmt_misc vboxsf snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device vboxguest ppdev parport_pc snd psmouse joydev soundcore serio_raw snd_page_alloc i2c_piix4 lp parport usbhid hid ahci libahci e1000
[   11.164381] Pid: 1491, comm: mount.vboxsf Tainted: G        W   2.6.38-10-generic #46-Ubuntu
[   11.164382] Call Trace:
[   11.164384]  [<c104f9b2>] ? warn_slowpath_common+0x72/0xa0
[   11.164386]  [<c113d979>] ? iput_final+0x1b9/0x1e0
[   11.164387]  [<c113d979>] ? iput_final+0x1b9/0x1e0
[   11.164389]  [<c104fa02>] ? warn_slowpath_null+0x22/0x30
[   11.164391]  [<c113d979>] ? iput_final+0x1b9/0x1e0
[   11.164392]  [<c113d9cd>] ? iput+0x2d/0x40
[   11.164394]  [<f82274cc>] ? sf_read_super_26+0x3cc/0x6e0 [vboxsf]
[   11.164397]  [<c1129977>] ? mount_nodev+0x47/0xa0
[   11.164399]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164401]  [<c11299ef>] ? get_sb_nodev+0x1f/0x40
[   11.164403]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164405]  [<f8227031>] ? sf_get_sb+0x21/0x30 [vboxsf]
[   11.164407]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164409]  [<c11295ac>] ? vfs_kern_mount+0x18c/0x250
[   11.164410]  [<c113fc03>] ? get_fs_type+0x33/0xb0
[   11.164412]  [<c11296ce>] ? do_kern_mount+0x3e/0xe0
[   11.164414]  [<c1142b33>] ? do_mount+0x1b3/0x1e0
[   11.164416]  [<c1142ecb>] ? sys_mount+0x6b/0xa0
[   11.164418]  [<c150a194>] ? syscall_call+0x7/0xb
[   11.164419] ---[ end trace 073da85e17dbd81c ]---
[   11.164421] ------------[ cut here ]------------
[   11.164422] WARNING: at /build/buildd/linux-2.6.38/fs/inode.c:1401 iput_final+0x1d0/0x1e0()
[   11.164423] Hardware name: VirtualBox
[   11.164424] Modules linked in: vboxvideo drm vesafb binfmt_misc vboxsf snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device vboxguest ppdev parport_pc snd psmouse joydev soundcore serio_raw snd_page_alloc i2c_piix4 lp parport usbhid hid ahci libahci e1000
[   11.164435] Pid: 1491, comm: mount.vboxsf Tainted: G        W   2.6.38-10-generic #46-Ubuntu
[   11.164436] Call Trace:
[   11.164438]  [<c104f9b2>] ? warn_slowpath_common+0x72/0xa0
[   11.164439]  [<c113d990>] ? iput_final+0x1d0/0x1e0
[   11.164441]  [<c113d990>] ? iput_final+0x1d0/0x1e0
[   11.164443]  [<c104fa02>] ? warn_slowpath_null+0x22/0x30
[   11.164444]  [<c113d990>] ? iput_final+0x1d0/0x1e0
[   11.164446]  [<c113d9cd>] ? iput+0x2d/0x40
[   11.164448]  [<f82274cc>] ? sf_read_super_26+0x3cc/0x6e0 [vboxsf]
[   11.164450]  [<c1129977>] ? mount_nodev+0x47/0xa0
[   11.164452]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164454]  [<c11299ef>] ? get_sb_nodev+0x1f/0x40
[   11.164456]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164458]  [<f8227031>] ? sf_get_sb+0x21/0x30 [vboxsf]
[   11.164460]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164462]  [<c11295ac>] ? vfs_kern_mount+0x18c/0x250
[   11.164464]  [<c113fc03>] ? get_fs_type+0x33/0xb0
[   11.164466]  [<c11296ce>] ? do_kern_mount+0x3e/0xe0
[   11.164467]  [<c1142b33>] ? do_mount+0x1b3/0x1e0
[   11.164469]  [<c1142ecb>] ? sys_mount+0x6b/0xa0
[   11.164471]  [<c150a194>] ? syscall_call+0x7/0xb
[   11.164472] ---[ end trace 073da85e17dbd81d ]---
[   11.164473] ------------[ cut here ]------------
[   11.164475] WARNING: at /build/buildd/linux-2.6.38/fs/inode.c:1406 iput_final+0x1a0/0x1e0()
[   11.164476] Hardware name: VirtualBox
[   11.164476] Modules linked in: vboxvideo drm vesafb binfmt_misc vboxsf snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device vboxguest ppdev parport_pc snd psmouse joydev soundcore serio_raw snd_page_alloc i2c_piix4 lp parport usbhid hid ahci libahci e1000
[   11.164487] Pid: 1491, comm: mount.vboxsf Tainted: G        W   2.6.38-10-generic #46-Ubuntu
[   11.164488] Call Trace:
[   11.164490]  [<c104f9b2>] ? warn_slowpath_common+0x72/0xa0
[   11.164492]  [<c113d960>] ? iput_final+0x1a0/0x1e0
[   11.164493]  [<c113d960>] ? iput_final+0x1a0/0x1e0
[   11.164495]  [<c104fa02>] ? warn_slowpath_null+0x22/0x30
[   11.164497]  [<c113d960>] ? iput_final+0x1a0/0x1e0
[   11.164498]  [<c113d9cd>] ? iput+0x2d/0x40
[   11.164500]  [<f82274cc>] ? sf_read_super_26+0x3cc/0x6e0 [vboxsf]
[   11.164502]  [<c1129977>] ? mount_nodev+0x47/0xa0
[   11.164505]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164506]  [<c11299ef>] ? get_sb_nodev+0x1f/0x40
[   11.164508]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164510]  [<f8227031>] ? sf_get_sb+0x21/0x30 [vboxsf]
[   11.164512]  [<f8227100>] ? sf_read_super_26+0x0/0x6e0 [vboxsf]
[   11.164514]  [<c11295ac>] ? vfs_kern_mount+0x18c/0x250
[   11.164516]  [<c113fc03>] ? get_fs_type+0x33/0xb0
[   11.164518]  [<c11296ce>] ? do_kern_mount+0x3e/0xe0
[   11.164520]  [<c1142b33>] ? do_mount+0x1b3/0x1e0
[   11.164522]  [<c1142ecb>] ? sys_mount+0x6b/0xa0
[   11.164523]  [<c150a194>] ? syscall_call+0x7/0xb
[   11.164525] ---[ end trace 073da85e17dbd81e ]---
[   11.164684] sf_read_super_aux err=-22
Not sure what's most relevant here, but wanted to give as much data as possible. Any help is very appreciated.
v4lyfe
Posts: 3
Joined: 11. Aug 2011, 03:28
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by v4lyfe »

A couple more datapoints:

1) I installed another 11.04 VM and am having the same problem (??????? permissions)
2) Rebooting the VM fixes the issue and the permissions are fine (no other changes to the files)
3) Same behavior between VirtualBox 4.0r12 & 4.1.0
v4lyfe
Posts: 3
Joined: 11. Aug 2011, 03:28
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by v4lyfe »

Sorry for the spam.

Rebuilt an Ubuntu 10.10 VM and it works as expected.
tbdombrosky
Posts: 3
Joined: 28. Aug 2011, 07:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by tbdombrosky »

I have the same issue with a Ubuntu Server 11.04 x64 guest VM on a Windows 7 64 bit host. I tried with versions 4.1.0 and 4.1.2. Rebooting fixes the issue for me as well.
adelaide887
Posts: 2
Joined: 30. Aug 2011, 05:34
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: windows
Contact:

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by adelaide887 »

tbdombrosky wrote:I have the same issue with a Ubuntu Server 11.04 x64 guest VM on a Windows 7 64 bit host. I tried with versions 4.1.0 and 4.1.2. Rebooting fixes the issue for me as well.

are you fix now? :( :( :(
i love virtualbox.org,and also love winter,but I have no coat or jackets, I like saints leather jacket, but I should want to buy a studded leather jacket, and will wear leather jacket black this winter!
tbdombrosky
Posts: 3
Joined: 28. Aug 2011, 07:19
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by tbdombrosky »

No, the reboot only fixes the issue temporarily, as it always crops up again.
b0rman
Posts: 6
Joined: 12. Mar 2012, 05:20

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by b0rman »

Same problem here on Windows 2008R2 HOST with VirtualBox 4.2.0 / 4.1.21/22 and OpenSuse 12.2 as GUEST.
How to fix it?
cadesa
Posts: 4
Joined: 18. Oct 2012, 16:11
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: MS Windows XP, MS Windows Server 2008, Ubuntu 12.04 Desktop

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by cadesa »

I am use Ubuntu 12.04 and had the same problem, so to the beginning solved installing Samba with a "Bridge Network" I don't like this solution but works for me; now after test many things I found the solution but this only was because I installed correctly the VBoxGuest, so I think you need install the new VBoxGuest version and later use the instruction to mount the folder, also now I am use NAT.

The best way to upgrade your VBoxGuest is read and follow the steps to the manual viewtopic.php?f=29&t=15679, also you can see this viewtopic.php?f=29&t=15868

I hope this help you.
The only things that make a man huge its the self knowledge
b0rman
Posts: 6
Joined: 12. Mar 2012, 05:20

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by b0rman »

I found this problem working with CIFS (backups from linux guest to windows host) only in any latest versions of VirtualBox and linux kernels on guests. Guest is not hanging, but it loose any kind of network capabilities and only powering off/on can fix it. I tried to update VBoxGuest package without success. Some linux kernels (OpenSUSE 11.3) works good in case of Intel network cards (not virtio). Currently I'm not using CIFS and it's going fine with virtio for a couple of days.
b0rman
Posts: 6
Joined: 12. Mar 2012, 05:20

Re: Problem with shared folders w/ VBox 4.1 & Ubuntu 11.04

Post by b0rman »

Seems like this fail can be found in any kind of heavy network load. Currently I found it while uploading my backup from linux guest to another linux machine with scp (unison).
But there are no messages in vbox log or in guest's logs.
Post Reply