You are not logged in.

#1 2013-09-18 08:57:55

lazysunbather
Member
From: Poznań, Poland
Registered: 2013-09-18
Posts: 9

VirtualBox Shared Folders not working after upgrade

Hello,
I'm running Arch Linux as a guest OS in VirtualBox. After yesterday's upgrades of linux to 3.11.1-1 and virtualbox-guest-modules to 4.2.18-3, the shared folder functionality seems to be seriously borked.

The vboxsf module itself loads fine, and produces no kernel messages except the standard hello :

[    3.460662] vboxsf: Successfully loaded version 4.2.18_OSE (interface 0x00010004)

Mounting a shared directory with mount.vboxsf and mount -t vboxsf results in a success. However, accessing the mount ends in the CPU usage spiking to 100% and nothing happening. Furthermore, the following line appears in /etc/mtab :

none /mnt vboxsf rw,nodev,relatime 0 0

Removing and adding the shared folder from the machine settings, sadly, does not work. I'm running VirtualBox 4.2.18 on the host machine.

Has anybody had this issue after the update? Thanks in advance.


A plastic bag stranded at the lights, this once was me!

Offline

#2 2013-09-18 15:48:07

chetjan
Member
Registered: 2012-07-30
Posts: 17

Re: VirtualBox Shared Folders not working after upgrade

Problem:
ls hangs when run in a shared folder.

Yesterday I updated Arch Linux (through pacman), halted, updated Virtual Box to 4.2.18, and started Arch Linux again. However, after I did so I could not access my shared directories (with my Windows host). I do not think it is a permission problem (root cannot ls either).

I can:
cd /media/sf_VMShared
cd <a folder in VMShared>

However, I can't ls the directories. This is only a problem in Shared Folders. When I run

strace ls

It gets stuck looping on

getdents(3, /* 1 entries */, 32768)     = 24

until I Ctrl-C. Any idea how to fix this? Thanks.

Full strace ouput:

execve("/usr/bin/ls", ["ls"], [/* 27 vars */]) = 0
brk(0)                                  = 0xf6b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=121790, ...}) = 0
mmap(NULL, 121790, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe8a216f000
close(3)                                = 0
open("/usr/lib/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=16872, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8a216e000
mmap(NULL, 2112096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fe8a1d6a000
mprotect(0x7fe8a1d6e000, 2093056, PROT_NONE) = 0
mmap(0x7fe8a1f6d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fe8a1f6d000
close(3)                                = 0
open("/usr/lib/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300 \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=35384, ...}) = 0
mmap(NULL, 2130592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fe8a1b61000
mprotect(0x7fe8a1b69000, 2093056, PROT_NONE) = 0
mmap(0x7fe8a1d68000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fe8a1d68000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2027565, ...}) = 0
mmap(NULL, 3844624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fe8a17b6000
mprotect(0x7fe8a1958000, 2093056, PROT_NONE) = 0
mmap(0x7fe8a1b57000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a1000) = 0x7fe8a1b57000
mmap(0x7fe8a1b5d000, 14864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fe8a1b5d000
close(3)                                = 0
open("/usr/lib/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\24\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18736, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8a216d000
mmap(NULL, 2113912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fe8a15b1000
mprotect(0x7fe8a15b5000, 2093056, PROT_NONE) = 0
mmap(0x7fe8a17b4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fe8a17b4000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8a216c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8a216b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe8a216a000
arch_prctl(ARCH_SET_FS, 0x7fe8a216b700) = 0
mprotect(0x7fe8a1b57000, 16384, PROT_READ) = 0
mprotect(0x7fe8a17b4000, 4096, PROT_READ) = 0
mprotect(0x7fe8a1d68000, 4096, PROT_READ) = 0
mprotect(0x619000, 4096, PROT_READ)     = 0
mprotect(0x7fe8a218d000, 4096, PROT_READ) = 0
munmap(0x7fe8a216f000, 121790)          = 0
brk(0)                                  = 0xf6b000
brk(0xf8c000)                           = 0xf8c000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1852416, ...}) = 0
mmap(NULL, 1852416, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe8a1fa5000
close(3)                                = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=48, ws_col=95, ws_xpixel=950, ws_ypixel=912}) = 0
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 1 entries */, 32768)     = 24
getdents(3, /* 1 entries */, 32768)     = 24
getdents(3, /* 1 entries */, 32768)     = 24
...
getdents(3, /* 1 entries */, 32768)     = 24
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
+++ killed by SIGINT +++

Last edited by chetjan (2013-09-18 20:59:31)

Offline

#3 2013-09-18 16:39:55

renau
Member
Registered: 2013-09-18
Posts: 1

Re: VirtualBox Shared Folders not working after upgrade

I had the same problem. My solution was to downgrade to the previous version

cd /var/cache/pacman/pkg
sudo pacman -U linux-3.10.10-1-x86_64.pkg.tar.xz virtualbox-guest-modules-4.2.18-1-x86_64.pkg.tar.xz virtualbox-guest-utils-4.2.18-1-x86_64.pkg.tar.xz
sudo reboot

Offline

#4 2013-09-18 16:51:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: VirtualBox Shared Folders not working after upgrade

renau wrote:

sudo reboot

OT, but you don't need sudo: https://wiki.archlinux.org/index.php/Al … o_Shutdown


Maybe you should open a bug report for this?

Offline

#5 2013-09-19 00:33:15

alexneko
Member
Registered: 2013-09-19
Posts: 1

Re: VirtualBox Shared Folders not working after upgrade

I had exactly the same problem with you. Then I switched to linux-lts kernel and it's OK.

Offline

#6 2013-09-19 00:37:12

rogerdarch
Member
Registered: 2013-09-19
Posts: 2

Re: VirtualBox Shared Folders not working after upgrade

The same happened to me after upgrading today to linux 3.11.1-1-ARCH. I'm using VirtualBox version 4.1.2.

Offline

#7 2013-09-19 01:22:24

juniway
Member
Registered: 2013-09-19
Posts: 1

Re: VirtualBox Shared Folders not working after upgrade

exactly happen the same to me when I upgrade to linux 3.11.1 core, I am using VirtualBox version 4.2.18
you can use strace -al>/tmp/lsstrace.txt 2>&1 to save the error message in a file

Last edited by juniway (2013-09-19 02:53:37)

Offline

#8 2013-09-19 01:26:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: VirtualBox Shared Folders not working after upgrade

rogerdarch wrote:

The same happened to me after upgrading today to linux 3.11.1-1-ARCH. I'm using VirtualBox version 4.1.2.

rogerdarch, why are you using an old version of VB?

Offline

#9 2013-09-19 02:10:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,252

Re: VirtualBox Shared Folders not working after upgrade

Merging with existing thread in Applications and Desktop Environments


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#10 2013-09-19 07:32:18

lazysunbather
Member
From: Poznań, Poland
Registered: 2013-09-18
Posts: 9

Re: VirtualBox Shared Folders not working after upgrade

The bug has already been reported. See here : https://bugs.archlinux.org/task/36976


A plastic bag stranded at the lights, this once was me!

Offline

#11 2013-09-19 08:54:48

rogerdarch
Member
Registered: 2013-09-19
Posts: 2

Re: VirtualBox Shared Folders not working after upgrade

karol wrote:
rogerdarch wrote:

The same happened to me after upgrading today to linux 3.11.1-1-ARCH. I'm using VirtualBox version 4.1.2.

rogerdarch, why are you using an old version of VB?

Hi Karol: Because my interaction with my win7 host environment is minimal and previous archlinux guest environment updates have always worked with VirtualBox 4.1.2. I mentioned my use of VBox version 4.1.2 simply to suggest that the "bug" happens (most likely) regarless of the VBox version.

Last edited by rogerdarch (2013-09-19 09:04:51)

Offline

#12 2013-09-19 13:46:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: VirtualBox Shared Folders not working after upgrade

I'm asking because partial upgrades are unsupported. Arch Linux supports the package versions which are in the repos.

Offline

#13 2013-09-20 10:03:31

picmantonic
Member
Registered: 2012-07-11
Posts: 13

Re: VirtualBox Shared Folders not working after upgrade

This bug was not apparent after upgrading to 3.11.1, from 3.10.10, but has appeared today after upgrades to systemd and procps-ng.
It also could have occurred when upgrading kernel to 3.11.1-1 a day or so ago.
Shared folder mounts OK (as before), but...
system seems to be unable to enumerate files and folders under the mounted shared folder. I can 'ls -l' individual files if I give full path.

I get same problem with kubuntu saucy beta vm, with kernel 3.11.0.7.

Offline

#14 2013-09-20 15:35:47

walterjr
Member
Registered: 2013-09-20
Posts: 2

Re: VirtualBox Shared Folders not working after upgrade

I am experiencing the same here. Would vboxguest-hook be useful in this case?

Offline

#15 2013-09-20 16:46:31

oboenerd
Member
From: Right behind you.
Registered: 2012-08-15
Posts: 52

Re: VirtualBox Shared Folders not working after upgrade

Related upstream bug:
https://www.virtualbox.org/ticket/12128

Fixed upstream in SVN:
https://www.virtualbox.org/changeset/48529/vbox

Is it possible to include this fix into the guest additions packages as a patch?


"I quoted myself." -oboenerd

Offline

#16 2013-09-21 20:54:34

walterjr
Member
Registered: 2013-09-20
Posts: 2

Re: VirtualBox Shared Folders not working after upgrade

any workarounds??

Offline

#17 2013-09-22 00:17:53

theherk
Member
Registered: 2013-09-22
Posts: 25

Re: VirtualBox Shared Folders not working after upgrade

Well this is frustrating. It is a consolation to somebody that is kind of new to Arch that this is an actual problem and not some bonehead mistake on my part. There must be some other way to get around this. Is the solution to downgrade the kernel?

Offline

#18 2013-09-22 04:35:12

oboenerd
Member
From: Right behind you.
Registered: 2012-08-15
Posts: 52

Re: VirtualBox Shared Folders not working after upgrade

Since this is a kernel problem, I'm switching over to linux-lts (long-term support) kernel on the guest system temporarily.  If this isn't an option then one can perhaps compile the modules from svn.

EDIT: I'm actually considering permanently switching over to linux-lts for my guest linux operating systems.  Since everything is under a virtual machine I really don't need bleeding-edge kernel features anyways.  Also, incidents like this are much less likely to happen in this scenario.

Last edited by oboenerd (2013-09-22 04:39:10)


"I quoted myself." -oboenerd

Offline

#19 2013-09-23 08:26:44

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,339
Website

Re: VirtualBox Shared Folders not working after upgrade

Watch out for https://bugs.archlinux.org/task/36977 if trying to install the guest-utils package.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#20 2013-09-25 06:34:22

starvoid
Member
Registered: 2013-09-25
Posts: 2

Re: VirtualBox Shared Folders not working after upgrade

oboenerd wrote:

I replaced my original dirops.c with the fix. It didn't seem to fix this bug unfortunately.

Has anyone else done this, or is this not officially a fix yet?

Offline

#21 2013-09-25 07:47:34

picmantonic
Member
Registered: 2012-07-11
Posts: 13

Re: VirtualBox Shared Folders not working after upgrade

I 'upgraded' to vb 4.3 beta 3 on my iMac and tested kubuntu 13.10 beta 1. The shared folders bug IS fixed in that environment.
However, Archlinux uses it's own vb guest additions packages, which are on vb 4.2.18, so Archlinux doesn't run properly (I locked it up trying to save image). Fortunately it recovered when I went back to vb 4.2.18.
I think we just have to wait for vb 4.3.

Offline

#22 2013-09-27 01:00:07

olegus8
Member
Registered: 2013-09-27
Posts: 4

Re: VirtualBox Shared Folders not working after upgrade

I was able to patch virtualbox-guest-modules and utils. Everything works fine since then. I couldn't find a way to attach files here, so I put detailed explanation in this bug report: https://bugs.archlinux.org/task/36976

Last edited by olegus8 (2013-09-27 03:15:11)

Offline

#23 2013-10-02 15:46:59

picmantonic
Member
Registered: 2012-07-11
Posts: 13

Re: VirtualBox Shared Folders not working after upgrade

Probably seen it it by now but the latest pacman -Syu delivered virtualbox_guest_modules_4.2.18-4, which fixed my shared folders problem.
Arch package maintainers win (again).

Offline

#24 2013-10-05 15:55:38

chetjan
Member
Registered: 2012-07-30
Posts: 17

Re: VirtualBox Shared Folders not working after upgrade

Unfortunately, this update did not fix it for me. It now prevents the ls from hanging, but ls still returns nothing. Cannot move to a shared folder either, claims "No space left on device".

Last edited by chetjan (2013-10-05 15:56:04)

Offline

#25 2013-10-06 15:09:43

picmantonic
Member
Registered: 2012-07-11
Posts: 13

Re: VirtualBox Shared Folders not working after upgrade

I am still on virtualbox-guest-modules-4.2.18-4 but now the kernel has been upgraded to 3.11.3-1 - and I've lost shared folders. Suspect the virtualbox-guest-modules-4.2.18-6, in testing, is needed to fix it? Hope so. Eventually this should settle...

Offline

Board footer

Powered by FluxBB