Cannot unmount shared folder after upgrade to Debian jessie

Discussions about using Linux guests in VirtualBox.
Post Reply
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Cannot unmount shared folder after upgrade to Debian jessie

Post by seberoon »

I recently upgraded a Debian guest from 7 (wheezy) to 8 (jessie).

I can successfully mount shared folders like so:

Code: Select all

> mount -t vboxsf seb /media/sf_seb
But I am unable to unmount them:

Code: Select all

> umount /media/sf_seb
umount.nfs: /media/sf_seb: is not an NFS filesystem
I also tried with option "-t vboxsf" but same result. Any ideas as to cause?

Some stuff which might be relevant:
VirtualBox Version 5.0.10 r104061
I had to reinstall guest additions.
At boot time I see the message "failed to start vboxadd-service.service" and syslog shows:
syslog extract
syslog extract
vboxsf.tiff (11.97 KiB) Viewed 17842 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by Perryg »

It appears you are using automount and as such the share is considered removable media and not a mount/umount device. Either shut down the guest and remove the share than create the share *not automount and use the mount/umount in the guest or reboot the guest to refresh the automount share.
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by seberoon »

Thanks for the suggestion but no, I'm mounting manually, so I don't think that can be it. Maybe you thought that because I was mounting under /media?

Anyway, just to be sure, I shut down the guest, removed the shared folder and re-created it in the VB manager (making sure not to tick the automount option), rebooted the guest and manually mounted under /mnt. Same behaviour as before; I cannot unmount. (I also looked for /etc/auto.* config files on the guest, to see if I could spot anything suspicious, but there are none.)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by seberoon »

Attached as requested.
Attachments
vbguestlog.txt
guest log
(83.06 KiB) Downloaded 84 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by Perryg »

Log shows a good share and that it is accepted. This is going to point at the guest.

Your umount statement "umount.nfs: /media/sf_seb: is not an NFS filesystem" looks suspicious to me. I would look at the dmesg and syslog of the guest to make sure that the vboxsf service is actually loading. You can also look at the /var/log/vboxadd-install.log for answers as to whether the guest additions installed correctly.
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by seberoon »

The install log looks good (attached).
dmesg looks good (attached).
But there are some troublesome looking messages in syslog (attached), in particular:

Dec 4 15:39:02 bigears vboxadd[595]: Starting the VirtualBox Guest Additions ...done.
Dec 4 15:39:02 bigears kernel: [ 18.216101] vboxsf: Successfully loaded version 5.0.10 (interface 0x00010004)
Dec 4 15:39:02 bigears saned[689]: saned disabled; edit /etc/default/saned.
Dec 4 15:39:02 bigears vboxadd-service[701]: Starting VirtualBox Guest Addition service ...done.
Dec 4 15:39:02 bigears systemd[1]: vboxadd-service.service: control process exited, code=exited status=1
Dec 4 15:39:02 bigears systemd[1]: Failed to start vboxadd-service.service.
Dec 4 15:39:02 bigears systemd[1]: Unit vboxadd-service.service entered failed state.

Any suggestions?
Attachments
syslog.txt
(49.85 KiB) Downloaded 9 times
dmesg.txt
(27.14 KiB) Downloaded 10 times
vboxadd-install.log
(1.15 KiB) Downloaded 8 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by Perryg »

I would purge VirtualBox from the guest, reboot, and install a fresh copy. I have seen a corrupt install when upgrading a distro before. Normally I install a new instance and keep all data on a second partition so it is retained. I also set the home folder to a separate partition so all of my configurations are retained.
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by seberoon »

Could you amplify a bit what you mean by "purge VirtualBox from the guest"? I uninstalled the guest additions by running

Code: Select all

/opt/VBoxGuestAdditions-5.0.10/uninstall.sh
and then reinstalled, but it made no difference. I'm guessing you mean something more comprehensive.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by Perryg »

You need to uninstall like you did and then check to see if there are any other versions or remnants of older installs. I normally do this from CLI and use apt-get purge ... to make sure that it is all clean.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by Perryg »

To clarify a bit more the real issue seems to be the move from init.d to systemd and the configurations that are left in rc when this happens.
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by seberoon »

I found vestiges of three virtualbox packages, purged them and resinstalled guest additions, as suggested. This seems to have made the worrying syslog messages go away. Unfortunately I still cannot unmount shared folders! Oh well.

Giving up for now. Thanks for all your help.
seberoon
Posts: 7
Joined: 4. Dec 2015, 14:38

Re: Cannot unmount shared folder after upgrade to Debian jes

Post by seberoon »

UPDATE: according to this Debian bug report
https://bugs.debian.org/cgi-bin/bugrepo ... bug=799668,
the underlying issue is an incompatibility between vboxsf and Jessie's mount package. The workaround is to use

Code: Select all

umount -i
.
Symmer
Posts: 1
Joined: 21. Nov 2016, 17:52

Re: Cannot unmount shared folder after upgrade to Debian jessie

Post by Symmer »

Can you try out these steps??

This worked for me to unmount


> mount -t vboxsf SHARED_FOLDER_NAME /media/sf_seb


after you are done working with the sharing folder (available in the /media/sf_seb)

unmounting can be performed this way

>umount -t vboxsf SHARED_FOLDER_NAME

or

>umount /media/sf_seb



I hope it was not against the question that was raised.


tested in virtualbox 5.1.8 with windows 7 host and linux centos guest.
nagu
Posts: 2
Joined: 15. Jun 2015, 16:15

Re: Cannot unmount shared folder after upgrade to Debian jessie

Post by nagu »

'umount -i' worked for me. host os is win7 guest os is archlinux. thanks @seberoon.
Post Reply