Ubuntu14.04にVirtualBox guest additionsをインストールする

Ubuntu14.04をインストールしたら、画面がVGAサイズのまま設定が不可能だったので、
VirtualBoxのGuest Additionsをインストールした時の備忘録です。


参考資料

以下のURLを参考にしました。

Guest Additonsのインストール

以下の手順でVirtualBoxのGuest Additionsをインストールしました。

  1. システムのアップデート 以下のコマンドでUbuntu14.04のシステムを最新にアップデートしました。
     
    sudo apt-get update
     
    sudo apt-get dist-upgrade
     
    sudo reboot
     
  2. コンパイル環境のインストール
    sudo apt-get install build-essential module-assistant
     
  3. m-aコマンドの実行
    sudo m-a prepare

Guest additonsのイメージをマウント

以下のスクリーンショットの手順でGuest Additonsのイメージをマウントします。

  1. Guest Addtionsのイメージ挿入
    01.gif
     
  2. Ubuntu側に以下のメッセージが表示されるので、いいえを押します。
    02.png
     
  3. ターミナル(端末)を起動します。
  4. 以下に記すディレクトリに移動します。
    cd /media/<ユーザ名>/VBOXADDITIONS_<バージョン>
     
  5. 移動が完了したら以下のコマンドでGuest Addtionsをインストールします。
    sudo ./VBoxLinuxAdditions.run 
     
    以下は当方の環境で実際に実行した時のターミナルの出力です。
    sakura@ubuntu1404:~$ cd /media/sakura/VBOXADDITIONS_4.3.14_95030/
    sakura@ubuntu1404:/media/sakura/VBOXADDITIONS_4.3.14_95030$ sudo ./VBoxLinuxAdditions.run 
    [sudo] password for sakura: 
    Verifying archive integrity... All good.
    Uncompressing VirtualBox 4.3.14 Guest Additions for Linux............
    VirtualBox Guest Additions installer
    Copying additional installer modules ...
    Installing additional modules ...
    Removing existing VirtualBox non-DKMS kernel modules ...done.
    Building the VirtualBox Guest Additions kernel modules
    The headers for the current running kernel were not found. If the following
    module compilation fails then this could be the reason.
    
    Building the main Guest Additions module ...done.
    Building the shared folder support module ...done.
    Building the OpenGL support module ...done.
    Doing non-kernel setup of the Guest Additions ...done.
    Starting the VirtualBox Guest Additions ...done.
    Installing the Window System drivers
    Installing X.Org Server 1.15 modules ...done.
    Setting up the Window System to use the Guest Additions ...done.
    You may need to restart the hal service and the Window System (or just restart
    the guest system) to enable the Guest Additions.
    
    Installing graphics libraries and desktop services components ...done.
    sakura@ubuntu1404:/media/sakura/VBOXADDITIONS_4.3.14_95030$ 
     
  6. vboxguestがインストールされたかを以下のコマンドで確認します。
    lsmod | grep -io vboxguest
    vboxguestが表示されれば正常にインストールされています。
     
  7. 再起動します。
    sudo reboot

以上、VirtualBox上のUbuntu14.04にGuest Additionsをインストールする手順でした。



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS