참고 : 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:
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.
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”.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
In order to fully update your guest system, open a terminal and run
apt-get update
as root followed by
apt-get upgrade
Install DKMS using
apt-get install dkms
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 를 설치하려고 했을까..
In order to fully update your guest system, open a terminal and run
apt-get update
as root followed by
apt-get upgrade
Install DKMS using
apt-get install dkms
Reboot your guest system in order to activate the updates and then proceed as described above.
#sudo /etc/init.d/vboxadd setup
'학습자료(~2017) > 리눅스' 카테고리의 다른 글
[Mongodb]apt-get을 이용한 몽고 디비 다운그레이드 Mongodb downgrade (0) | 2015.12.31 |
---|---|
[Linux] apt-get upgrade 시 특정 패키지의 업그레이드를 막아보자. (0) | 2015.08.07 |
[LINUX]DRBD (블럭 디바이스 HA) (4) | 2014.07.01 |
디렉토리 내의 모든 파일들 이름 일괄 변경/파일내용 일괄 변경 (2) | 2014.06.23 |
[Linux] /etc/fstab 사용시 네트워크 드라이브/저장소(nfs, iscsi..) 사용시 대기 문제 해결법(_netdev) (1) | 2014.04.02 |