{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/vagrant-boxes/issues/87","repository_url":"https://api.github.com/repos/oracle/vagrant-boxes","labels_url":"https://api.github.com/repos/oracle/vagrant-boxes/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/oracle/vagrant-boxes/issues/87/comments","events_url":"https://api.github.com/repos/oracle/vagrant-boxes/issues/87/events","html_url":"https://github.com/oracle/vagrant-boxes/issues/87","id":389128929,"node_id":"MDU6SXNzdWUzODkxMjg5Mjk=","number":87,"title":"Workaround for shared folders not working after reboot","user":{"login":"PaulNeumann","id":38871902,"node_id":"MDQ6VXNlcjM4ODcxOTAy","avatar_url":"https://avatars1.githubusercontent.com/u/38871902?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulNeumann","html_url":"https://github.com/PaulNeumann","followers_url":"https://api.github.com/users/PaulNeumann/followers","following_url":"https://api.github.com/users/PaulNeumann/following{/other_user}","gists_url":"https://api.github.com/users/PaulNeumann/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulNeumann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulNeumann/subscriptions","organizations_url":"https://api.github.com/users/PaulNeumann/orgs","repos_url":"https://api.github.com/users/PaulNeumann/repos","events_url":"https://api.github.com/users/PaulNeumann/events{/privacy}","received_events_url":"https://api.github.com/users/PaulNeumann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-10T04:06:50Z","updated_at":"2018-12-12T19:04:30Z","closed_at":"2018-12-12T19:04:30Z","author_association":"CONTRIBUTOR","body":"**This isn't a requested change, it's just a workaround for a temporary shared folder issue.**\r\n\r\nThe latest UEK Release 5 kernel releases for Oracle Linux 7 and the latest version of the VirtualBox Guest Additions kernel module apparently aren't totally compatible. As a result, VirtualBox shared folders don't work. This isn't related to the boxes in this repository, but it affects new boxes built using the latest version of the OL7 base box.\r\n\r\nIf you're affected by this problem, the box will build fine, but after a reboot, shared folders (including `/vagrant`) won't work. Here's what seems to be happening:\r\n* All of the OL7-based boxes are built on top of the base box called `ol7-latest.box`. The current version of the base box includes the UEK Release 5 kernel and the VirtualBox Guest Additions kernel module. This kernel module provides the shared folder functionality.\r\n\r\n* When starting a box for the first time, installed packages are updated to the latest versions by the command `yum upgrade -y` in the install script. During the update, the kernel is upgraded to version 4.14.35-1818.4.7.el7uek.x86_64, and the VirtualBox Guest Additions kernel module is upgraded to version 5.2.20\t(kmod-vboxguest-uek5-5.2.20-1.el7.x86_64).\r\n\r\n* When the guest is rebooted (`vagrant halt` / `vagrant up`), the new kernel version is loaded. With this new kernel version, the updated Guest Additions kernel module no longer provides shared folder functionality. You'll see something like the following when you run `vagrant up`. The exact text may vary depending on host OS:\r\n```\r\n      ==> ol7-vagrant: Mounting shared folders...\r\n      ol7-vagrant: /vagrant => C:/vagrant-boxes/OracleLinux/7\r\n      Vagrant was unable to mount VirtualBox shared folders. This is usually\r\n      because the filesystem \"vboxsf\" is not available. This filesystem is\r\n      made available via the VirtualBox Guest Additions and kernel module.\r\n      Please verify that these guest additions are properly installed in the\r\n      guest. This is not a bug in Vagrant and is usually caused by a faulty\r\n      Vagrant box. For context, the command attempted was:\r\n\r\n      mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant\r\n\r\n      The error output from the command was:\r\n\r\n      /sbin/mount.vboxsf: mounting failed with the error: No such device\r\n```\r\n\r\nIf you're seeing this, you can work around it by downgrading the kernel:\r\n* Run `vagrant ssh`.\r\n\r\n* In the SSH session, run `sudo yum -y install kernel-uek-4.14.35-1818.3.3.el7uek.x86_64`, then reboot the VM. (Version 4.14.35-1818.3.3.el7uek.x86_64 of the UEK Release 5 kernel seems to be the latest version that works properly with version 5.2.20 of the VirtualBox Guest Additions kernel module.)\r\n\r\nI'm sure this will be fixed soon with a new release of the Guest Additions kernel module and/or the kernel. In the meantime, I hope this helps."},"comment":{"url":"https://api.github.com/repos/oracle/vagrant-boxes/issues/comments/446704991","html_url":"https://github.com/oracle/vagrant-boxes/issues/87#issuecomment-446704991","issue_url":"https://api.github.com/repos/oracle/vagrant-boxes/issues/87","id":446704991,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjcwNDk5MQ==","user":{"login":"PaulNeumann","id":38871902,"node_id":"MDQ6VXNlcjM4ODcxOTAy","avatar_url":"https://avatars1.githubusercontent.com/u/38871902?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulNeumann","html_url":"https://github.com/PaulNeumann","followers_url":"https://api.github.com/users/PaulNeumann/followers","following_url":"https://api.github.com/users/PaulNeumann/following{/other_user}","gists_url":"https://api.github.com/users/PaulNeumann/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulNeumann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulNeumann/subscriptions","organizations_url":"https://api.github.com/users/PaulNeumann/orgs","repos_url":"https://api.github.com/users/PaulNeumann/repos","events_url":"https://api.github.com/users/PaulNeumann/events{/privacy}","received_events_url":"https://api.github.com/users/PaulNeumann/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T19:04:30Z","updated_at":"2018-12-12T19:04:30Z","author_association":"CONTRIBUTOR","body":"@scoter-oracle,\r\n\r\nThanks! Yes, the OL 7.6 base box that was released a couple of days ago fixes the problem.\r\n\r\nThe new base box doesn't use the VirtualBox Guest Additions kernel module (kmod-vboxguest-uek5). Instead, it has version 5.2.22 of the Guest Additions pre-installed under `/opt`. When starting a Vagrant box that uses this new base box for the first time, the kernel is still upgraded, and shared folders continue to work after a reboot.\r\n\r\nFor those who might still be using the previous version of the base box, the workaround described above is still valid, but upgrading the base box is a better solution.\r\n\r\nI appreciate your help. I'll go ahead and close this issue."}}
{"actor":{"display_login":"PaulNeumann"}}