Skip to content
Snippets Groups Projects

Install Guest Additions

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Frank Sauerburger

    Install VBox 5.2 Guest Additions for CentOS 7. Make sure that the Guest Additions image is inserted and accessible via /dev/sr0.

    See https://frank.sauerburger.io/2019/03/27/install-guest-addiiations-for-centos.html

    Edited
    install-ga.sh 363 B
    #!/bin/bash
    
    # Quick script to install Guest Additions uner CentOS 7.
    #   $ curl -fsSL https://gitlab.sauerburger.com/snippets/14/raw -o install-ga.sh
    #   $ sudo bash install-ga.sh
    
    set -ex
    yum install -y bzip2 tar gcc make perl kernel-devel-$(uname -r)
    mkdir -p /tmp/guest_additions
    mount /dev/sr0 /tmp/guest_additions
    /tmp/guest_additions/VBoxLinuxAdditions.run
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment