Shared folders cannot be mounted in ubuntu/cosmic64 due to missing vbox modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
High
|
Unassigned | ||
linux (Ubuntu) |
Fix Committed
|
High
|
Seth Forshee | ||
Cosmic |
Won't Fix
|
High
|
Seth Forshee |
Bug Description
SRU Justification
Impact: Vagrant environments are no longer able to use virtualbox feartures like shared folders. This is due to Ubuntu Cosmic kernels currently shipping the upstream vboxguest module and not importing modules from the virtualbox-
Fix: One solution would be to use the dkms modules for Vagrant, but this is not ideal. At this late stage the simplest solution is to go back to importing the out-of-tree modules.
Regression Potential: Minimal. Will have no impact outside of virtualbox environments, and the drivers being imported come from the virtualbox-
---
In bionic, the vboxsf module was included in linux-modules-
$ dpkg -c linux-modules-
-rw-r--r-- root/root 63238 2018-09-24 10:08 ./lib/modules/
In cosmic, it isn't:
$ dpkg -c ~/Downloads/
This results in shared folders no longer being mountable in Ubuntu Vagrant boxes (and, as the other vbox modules are also missing, probably has other effects that haven't yet been reported).
[Original Report]
Just tried to test out the new cosmic64 vagrant box and get the following error;
```
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
The error output from the command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
```
I tried with ubuntu/bionic64 and it worked fine.
I've got;
$ vagrant version
Installed Version: 2.1.5
Latest Version: 2.1.5
You're running an up-to-date version of Vagrant!
$ VBoxManage --version
5.2.18r124319
$
description: | updated |
tags: | added: id-5bbcaca75adf6a4fe571e8ad |
description: | updated |
Changed in linux (Ubuntu): | |
assignee: | nobody → Seth Forshee (sforshee) |
importance: | Undecided → High |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Cosmic): | |
status: | In Progress → Fix Committed |
tags: | added: cscc |
Just tried latest version and still has same error;
ubuntu/cosmic64 (virtualbox, 20181008.0.0)
Same error seen as;
ubuntu/cosmic64 (virtualbox, 20181006.0.0)