학습자료(~2017)/리눅스

[VirtualBox Ubuntu] VirtualBox Guest Addition 설치 안될때

단세포소년 2015. 7. 7. 18:53
반응형

참고 : https://www.virtualbox.org/manual/ch04.html



4.2.2.1. Installing the Linux Guest Additions

The VirtualBox Guest Additions for Linux are provided on the same virtual CD-ROM file as the Guest Additions for Windows described above. They also come with an installation program guiding you through the setup process, although, due to the significant differences between Linux distributions, installation may be slightly more complex.

Installation generally involves the following steps:

  1. Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules. This works similarly as described inSection 2.3.2, “The VirtualBox kernel module”, except that this step must now be performed in your Linux guest instead of on a Linux host system, as described there.

    Again, as with Linux hosts, we recommend using DKMS if it is available for the guest system. If it is not installed, use this command for Ubuntu/Debian systems:

    sudo apt-get install dkms

    or for Fedora systems:

    yum install dkms

    Be sure to install DKMS before installing the Linux Guest Additions. If DKMS is not available or not installed, the guest kernel modules will need to be recreated manually whenever the guest kernel is updated using the command

    /etc/init.d/vboxadd setup

    as root.

  2. Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive, exactly the same way as described for a Windows guest in Section 4.2.1.1, “Installation”.

  3. Change to the directory where your CD-ROM drive is mounted and execute as root:

    sh ./VBoxLinuxAdditions.run

For your convenience, we provide the following step-by-step instructions for freshly installed copies of recent versions of the most popular Linux distributions. After these preparational steps, you can execute the VirtualBox Guest Additions installer as described above.

4.2.2.1.1. Ubuntu

  1. In order to fully update your guest system, open a terminal and run

    apt-get update

    as root followed by

    apt-get upgrade
  2. Install DKMS using

    apt-get install dkms
  3. Reboot your guest system in order to activate the updates and then proceed as described above.







정리  하면 

#sudo apt-get update
#sudo apt-get upgrade
#sudo apt-get install dkms
#sudo apt-get install gcc
#sudo apt-get install build-essential linux-headers-`uname -r`
#sudo /etc/init.d/vboxadd setup

// guest Addition 마운트하고 마운트 폴더내에서 
#sudo ./VBoxLinuxAdditions.run

이렇게 했는데도 Could not find the X.org or XFree86 Windows System이 뜬다면 아래와 같이 해라. (Guestadditions 는 X.Org libraries를 필요로한다.)
#sudo apt-get install xserver-xorg xserver-xorg-core
#sudo ./VBoxLinuxAdditions.run


이래도 안되면 그냥 ssh 연결해서 하자..ㅜㅜ

생각해보니까 ubuntu Server를 설치한 내가 왜 굳이 guest additions 를 설치하려고 했을까.. 




반응형