이쿠의 슬기로운 개발생활

함께 성장하기 위한 보안 개발자 EverNote 내용 공유

Tool 사용법/VirtualBox

Virtual Box 게스트 확장 CD 설치 에러 해결법

이쿠우우 2022. 3. 6. 14:43
반응형

 

 
 

Virtual Box 게스트 확장 CD 설치 에러 해결법

 
 

상황

Virtual Box로  CentOS7 Os를 생성한 뒤 게스트 확장 CD를 설치하던 도중 아래와 같은 에러가 발생함.
 

오류 메세지

VirtualBox Guest Additions: Kernel headers not found for target kernel
3.10.0-1062.el7.x86_64. Please install them and execute
  /sbin/rcvboxadd setup
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.
Press Return to close this window..

 

 
 

해결법

yum update -y
yum install -y gcc perl kernel-headers kernel-devel

yum install -y "kernel-devel-uname-r == $(uname -r)"

재부팅 후 다시 시도하면 설치 됨.

 

반응형