{"id":7820,"date":"2024-10-02T01:01:00","date_gmt":"2024-10-02T05:01:00","guid":{"rendered":"https:\/\/www.both.org\/?p=7820"},"modified":"2024-10-16T12:01:08","modified_gmt":"2024-10-16T16:01:08","slug":"virtualbox-failures","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=7820","title":{"rendered":"VirtualBox failures"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"7820\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>I just tried to update VirtualBox and encountered some strange problems. <\/p>\n\n\n\n<p>It started when a student of mine tried to update their Fedora 40 host and received an interesting error, &#8220;Can&#8217;t find VirtualBox COM object &#8230; .&#8221; They installed VB from the Oracle VirtualBox website using instructions in, <a href=\"https:\/\/www.both.org\/?page_id=2208\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?page_id=2208\" target=\"_blank\" rel=\"noreferrer noopener\">Using and Administering Linux<\/a>, Volume 1.<\/p>\n\n\n\n<p>I tried updating to the latest release of VirtualBox. I currently use the packages in the Fedora rpmfusion-free-updates repo. I got he same error when trying to start the VirtualBox Manager. I then attempted to start VB from the command line with the the result in Figure 1.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>VirtualBox %U &amp;<\/strong>\n&#91;1] 923320\ndboth@david:~$\n(VirtualBox:923320): dbind-WARNING **: 12:56:34.763: Couldn't connect to accessibility bus: Failed to connect to socket \/root\/.cache\/at-spi\/bus_0.0: Permission denied<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center has-small-font-size\">Figure 1: Launching VirtualBox from the command line results in this error.<\/p>\n\n\n\n<p>I have sometimes found that removing and reinstalling VirtualBox can resolve problems like this. I tried to do that but got strange results. Just to satisfy myself that VB had been removed, I ran the command line program in Figure 2 to see if there were any remnants that I should also delete. Imagine my surprise when I saw all of these remaining packages. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>dnf list installed *VirtualBox* | grep -v Installed<\/strong>\nVirtualBox-kmodsrc.noarch                      7.1.0-2.fc40  @rpmfusion-free-updates\nVirtualBox-server.x86_64                       7.1.0-2.fc40  @rpmfusion-free-updates\nakmod-VirtualBox.x86_64                        7.1.0-1.fc40  @rpmfusion-free-updates\nkmod-VirtualBox-6.10.10-200.fc40.x86_64.x86_64 7.1.0-1.fc40  @@commandline\nkmod-VirtualBox-6.10.5-200.fc40.x86_64.x86_64  7.0.20-1.fc40 @@commandline\nkmod-VirtualBox-6.10.6-200.fc40.x86_64.x86_64  7.0.20-1.fc40 @@commandline\nkmod-VirtualBox-6.10.7-200.fc40.x86_64.x86_64  7.0.20-1.fc40 @@commandline\nkmod-VirtualBox-6.10.9-200.fc40.x86_64.x86_64  7.0.20-1.fc40 @@commandline\nvirtualbox-guest-additions.x86_64 <\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center has-small-font-size\">Figure 2: This command showed me all the old VB cruft.<\/p>\n\n\n\n<p>The problematic ones are the multiple versions of kmod-VirtualBox. Over the years I&#8217;ve installed some versions of VB from the rpm-fusion repositories, and other times from the Oracle download page. It&#8217;s obvious that the Oracle version doesn&#8217;t clean up after itself very well. <\/p>\n\n\n\n<p>Multiple versions of these packages can cause problems and I needed to get rid of everything &#8212; all that cruft. I did that with the command line program in Figure 3.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>for X in `dnf list installed *VirtualBox* | grep -v Installed | awk '{ print $1 }'` ; do echo \"Working on $X\" ; dnf -y remove $X  ; done<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center has-small-font-size\">Figure 3: This command removed all the VirtualBox cruft.<\/p>\n\n\n\n<figure class=\"wp-block-image alignleft size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"59\" height=\"59\" src=\"https:\/\/www.both.org\/wp-content\/uploads\/2024\/09\/VirtualBox-New-Logo.png\" alt=\"\" class=\"wp-image-7834\" style=\"width:112px;height:auto\"\/><figcaption class=\"wp-element-caption\">Figure 4: The new VirtualBox logo.<\/figcaption><\/figure>\n\n\n\n<p>After removing the cruft, I installed VirtualBox from the rpm-fusion repositories.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>dnf -y install VirtualBox<\/strong><\/code><\/pre>\n\n\n\n<p>I then ran akmods to rebuild the kernel modules and restarted the vboxdrv.service.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>akmods; systemctl restart vboxdrv.service<\/strong><\/code><\/pre>\n\n\n\n<p> Everything runs now as expected.<\/p>\n\n\n\n<p>I was surprised by the new VirtualBox Logo in Figure 4. I like the old one better.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just tried to update VirtualBox and encountered some strange problems. It started when a student of mine<\/p>\n","protected":false},"author":2,"featured_media":7831,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,83,81],"tags":[585],"class_list":["post-7820","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-problem-solving","category-virtualbox","tag-virtualbox"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/7820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7820"}],"version-history":[{"count":11,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/7820\/revisions"}],"predecessor-version":[{"id":8147,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/7820\/revisions\/8147"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/7831"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}