Recompiling VirtualBox kernel modules [FAILED] on centos7.2 or rhel7.2

Recompiling VirtualBox kernel modules [FAILED] on centos7.2 or rhel7.2

 

환경

OS : CentOS7 (7.2.1511)
VirtualBox : 5.0.10_104061_el7-1

yum-repository 등록후
yum install VirtualBox-5.0

명령을 통한 설치 작업진행

  • 사실 CentOS-7.2업데이트후 정상적인 구동이 되지 않았기 때문에 재설치 까지 진행해 본 것임

 

설치시 오류

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
Verifying : VirtualBox-5.0-5.0.10_104061_el7-1.x86_64 1/1

Installed:
VirtualBox-5.0.x86_64 0:5.0.10_104061_el7-1

 

로그 내용

로그 내용은 상당히 많지만 대략 이정도가 주목 할 만 한듯

/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxPacketHandler’:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:928:9: error: implicit declaration of function ‘vlan_tx_tag_present’ [-Werror=implicit-function-declaration]
if (vlan_tx_tag_present(pBuf) && skb_headroom(pBuf) >= VLAN_ETH_HLEN)
^
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:938:13: error: implicit declaration of function ‘vlan_tx_tag_get’ [-Werror=implicit-function-declaration]
pVHdr->h_vlan_TCI = RT_H2N_U16(vlan_tx_tag_get(pBuf));
^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxnetflt] Error 2

 

해결 방법

https://www.virtualbox.org/changeset/58845/vbox

소개된 패치를 소스에 적용하고 build… 는 좋은 방법이지만 시간이 너무 많이 걸림;;;;

https://www.virtualbox.org/wiki/Testbuilds

에 오늘(20151218) 기준으로 ”VirtualBox-5.0-5.0.11_104721_el7-1.x86_64.rpm” 빌드데이터가 올라와 있으므로..

받아서 설치해보니 오류가 없어짐.. ㅋ

 

 

 

참고자료

https://forums.virtualbox.org/viewtopic.php?f=7&t=75179
https://www.virtualbox.org/ticket/14866
https://www.virtualbox.org/changeset/58845/vbox

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.