{"id":484,"date":"2017-07-26T13:35:02","date_gmt":"2017-07-26T12:35:02","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=484"},"modified":"2019-01-20T23:41:26","modified_gmt":"2019-01-20T23:41:26","slug":"virtualbox-guest-additions-fedora","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/484\/virtualbox-guest-additions-fedora\/","title":{"rendered":"Virtualbox Guest additions on Fedora"},"content":{"rendered":"<p>This post describes how to install virtualbox guest additions on a Fedora virtual machine.<\/p>\n<p><!--more--><\/p>\n<p>Virtualbox guest additions adds a couple of features to running Fedora on virtualbox. Some of the useful features are shared folders, mouse pointer support, shared clipboard and better video driver support.<\/p>\n<p>The primary reason I install it is for seamless window resizing. This means that I can change the size of the virtualbox window and the virtual machine will change its screen resolution automatically.<\/p>\n<p>However you need to install a couple additional packages before running the Guest Additions installer, otherwise it will fail.<\/p>\n<h2>Installing prerequisites for Guest Additions<\/h2>\n<p>Before installing guest additions you need to install a couple prerequisites. Guest additions compiles a new kernel to work well with virtualbox so we need to install the kernel development and header packages.<\/p>\n<p>Before we install all the kernel packages I need to make sure I am running the latest kernel. I then install the latest kernel headers and development files. Since guest additions rebuilds the currently running kernel, if you have updated the kernel now you will need to reboot to load the new one.<\/p>\n<pre>sudo dnf update kernel*\nsudo dnf install kernel-devel kernel-headers\nsudo reboot<\/pre>\n<p>After rebooting I can then install Guest additions. Pressing &#8220;Insert Guest Additions CD Image&#8221; will insert the disk and you will be able to browse to it. Once open you need to open a terminal and run the final command:<\/p>\n<pre>sh .\/VBoxLinuxAdditions.run<\/pre>\n<p>If there are no errors when running this all you need to do is reboot your virtual machine and you should be running the new kernel with guest additions running.<\/p>\n<p>Each time you upgrade your kernel you will need to recompile guest additions. However if you haven&#8217;t removed the kernel-devel and kernel-headers package you will only need to run the final command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post describes how to install virtualbox guest additions on a Fedora virtual machine.<\/p>\n","protected":false},"author":1,"featured_media":485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[41,39,82],"class_list":["post-484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informational","tag-fedora","tag-linux","tag-virtualbox"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/07\/fedora_on_virtualbox.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-7O","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":183,"url":"https:\/\/chewett.co.uk\/blog\/183\/install-virtualbox-guest-additions-fedora-21-xfce\/","url_meta":{"origin":484,"position":0},"title":"Install Virtualbox guest additions on Fedora 21 XFCE","author":"Chewett","date":"February 8, 2015","format":false,"excerpt":"Installing via the normal route didn't work and meant I couldn't easily resize the screen. Doing the below allowed me to use the resize easily. Install rpmfusion on fedora run `sudo yum install\u00a0akmod-VirtualBox\u00a0VirtualBox-guest` run `cd\u00a0\/usr\/src\/akmods` run `sudo rpm -ivh VirtualBox-*.rpm` Once this was installed, rebooting will give you access to\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2541,"url":"https:\/\/chewett.co.uk\/blog\/2541\/install-virtualbox-guest-additions-on-ubuntu-20-04\/","url_meta":{"origin":484,"position":1},"title":"Install Virtualbox Guest Additions on Ubuntu 20.04","author":"Chewett","date":"August 29, 2020","format":false,"excerpt":"This post describes how you can install Virtualbox Guest Additions on Ubuntu 20.04. Installing Virtualbox Guest Additions on Ubuntu 20.04 To install Virtualbox Guest Additions on Ubuntu 20.04 you will want to enable the multiverse repository. You can do this by running the following command. sudo add-apt-repository multiverse Once this\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_guest_additions_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2610,"url":"https:\/\/chewett.co.uk\/blog\/2610\/using-virtualbox-shared-folder-on-ubuntu-20-04\/","url_meta":{"origin":484,"position":2},"title":"Using Virtualbox Shared Folder on Ubuntu 20.04","author":"Chewett","date":"September 12, 2020","format":false,"excerpt":"This post explains how you can configure Virtualbox Shared Folders for Ubuntu 20.04. Installing Virtualbox Guest Additions Before you can configure Virtualbox Shared folders you will need to install Virtualbox Guest Additions. I have detailed the process of installing this on another blogpost which you should first follow. Once done\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folder_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folder_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folder_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folder_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/08\/virtualbox_shared_folder_ubuntu_2004_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":628,"url":"https:\/\/chewett.co.uk\/blog\/628\/virtual-box-shared-folder-access-denied-fixed\/","url_meta":{"origin":484,"position":3},"title":"Virtual box shared folder access denied Fixed","author":"Chewett","date":"September 9, 2017","format":false,"excerpt":"I was looking to add shared folders to my Fedora VM but during mounting\u00a0them there was an error. The error \"access denied\" appeared each time I attempted to mount the volume. This post explains why this happens and what you can do to fix it. Fixing \"Access Denied\" when mounting\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/virtual_shared_folder_access_denied.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":800,"url":"https:\/\/chewett.co.uk\/blog\/800\/exclude-fedora-packages-updating-dnf-yum\/","url_meta":{"origin":484,"position":4},"title":"Exclude Fedora packages from updating with dnf or yum","author":"Chewett","date":"October 28, 2017","format":false,"excerpt":"This post describes how to exclude specific packages from being updated with Fedora and dnf or yum How to exclude packages from updating To exclude a package\u00a0or set of packages you can use the command line flag --exclude\u00a0with dnf or yum. All command snippets will include the command for running\u2026","rel":"","context":"In &quot;Informational&quot;","block_context":{"text":"Informational","link":"https:\/\/chewett.co.uk\/blog\/category\/informational\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/excluding_fedora_packages_from_updating.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":764,"url":"https:\/\/chewett.co.uk\/blog\/764\/virtualized-raspian-os-virtualbox\/","url_meta":{"origin":484,"position":5},"title":"Virtualized Raspian OS with Virtualbox","author":"Chewett","date":"October 21, 2017","format":false,"excerpt":"This post walks you through the process of installing the Raspberry Pi OS, Raspbian, with VirtualBox. I am going to use this at times to test my software running on the OS that the Raspberry Pi Cluster runs. Why do I need a special version of Raspbian OS to work\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=484"}],"version-history":[{"count":1,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/484\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/484\/revisions\/487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/485"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}