{"action":"created","issue":{"url":"https://api.github.com/repos/chef/bento/issues/517","repository_url":"https://api.github.com/repos/chef/bento","labels_url":"https://api.github.com/repos/chef/bento/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/chef/bento/issues/517/comments","events_url":"https://api.github.com/repos/chef/bento/issues/517/events","html_url":"https://github.com/chef/bento/issues/517","id":124243053,"number":517,"title":"VirtualBox: bento/centos-7.1 fails building VBGA due to missing kernel-devel package","user":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/bento/labels/Improvement","name":"Improvement","color":"009800"},{"url":"https://api.github.com/repos/chef/bento/labels/virtualbox","name":"virtualbox","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-12-29T17:34:46Z","updated_at":"2016-07-09T16:15:30Z","closed_at":null,"body":"Hi, the current version of the `bento/centos-7.1` box for VirtualBox has an outdated kernel (relative to the latest available in CentOS 7.1), and does not have the `kernel-devel` package installed. Combined with the fact that a binary `kernel-devel` package for CentOS 7.1 is only available in its latest version, this leaves users with no good choices:\r\n  * Installing the missing `kernel-devel` package causes its latest version to be used, causing the build process of the VBGA to fail with the widely discussed Make error that the include directory for the Linux kernel headers was not found.\r\n  * Updating `kernel` and installing `kernel-devel` gets them in sync but this requires a reboot before actually building the VBGA, which the `vbguest` plugin does not do. As a result, the VBGA update process has broken the VBGA installation, causing the box to be broken because it now fails when it attempts to establish shared folder access, plus it cannot fix that by rebuilding VBGA.\r\n  * Re-building `kernel-devel` from its sources in the CentOS Vault repo for a version that matches the kernel version.\r\n  * The `vbguest` plugin could do something about it, but that is not easily implemented. See [vbguest issue 161](https://github.com/dotless-de/vagrant-vbguest/issues/161).\r\n\r\nThis is a major issue for VirtualBox-based boxes of CentOS 6.7, 7.1, or 7.2, because for those versions, the older binary versions of `kernel-devel` are not provided anymore. But it is also an (admittedly smaller) issue for any older versions of CentOS.\r\n\r\nI suggest that in any Bento boxes based on CentOS, a `kernel-devel` package gets installed that matches their kernel version. This is even more important than having the VBGA installed at the latest version, because the VBGA update can be done using the `vbguest` plugin (if the `kernel` and `kernel-devel` versions match)."},"comment":{"url":"https://api.github.com/repos/chef/bento/issues/comments/231542044","html_url":"https://github.com/chef/bento/issues/517#issuecomment-231542044","issue_url":"https://api.github.com/repos/chef/bento/issues/517","id":231542044,"user":{"login":"martin-langhoff","id":5116932,"avatar_url":"https://avatars.githubusercontent.com/u/5116932?v=3","gravatar_id":"","url":"https://api.github.com/users/martin-langhoff","html_url":"https://github.com/martin-langhoff","followers_url":"https://api.github.com/users/martin-langhoff/followers","following_url":"https://api.github.com/users/martin-langhoff/following{/other_user}","gists_url":"https://api.github.com/users/martin-langhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/martin-langhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin-langhoff/subscriptions","organizations_url":"https://api.github.com/users/martin-langhoff/orgs","repos_url":"https://api.github.com/users/martin-langhoff/repos","events_url":"https://api.github.com/users/martin-langhoff/events{/privacy}","received_events_url":"https://api.github.com/users/martin-langhoff/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T16:15:30Z","updated_at":"2016-07-09T16:15:30Z","body":"+1 on this. I have filed a bug against vbguest suggesting enabling the Vault repos (see https://github.com/dotless-de/vagrant-vbguest/issues/223 ) . This improves chances of success, but isn't bulletproof -- for example CentOS 6.8 bento box contains a kernel from CentOS 6.7 -- the 'vault' repos are not up to date (probably an upstream CentOS problem). \r\n\r\nIncluding kernel-devel for the matching kernel would be a definite improvement."}}
{"actor":{"display_login":"martin-langhoff"}}