Skip to main content

Linux에서 VMWARE Player설치 에러 해결하기

Linux에서 VMWARE Workstation player설치가 안되는 경우

  1. VMware 패키지 설치 후 셋업과정중에 에러 발생.
    ...
    tmp/modconfig-gUoIPj/vmnet-only/netif.c:353:4: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
      353 |    netif_rx_ni(skb);
          |    ^~~~~~~~~~~
          |    netif_rx
    /tmp/modconfig-gUoIPj/vmnet-only/bridge.c: In function ‘VNetBridgeReceiveFromVNet’:
    /tmp/modconfig-gUoIPj/vmnet-only/bridge.c:688:10: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
      688 |          netif_rx_ni(clone);
          |          ^~~~~~~~~~~
          |          netif_rx
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:295: /tmp/modconfig-gUoIPj/vmnet-only/netif.o] 오류 1
    make[2]: *** 끝나지 않은 작업을 기다리고 있습니다....
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:295: /tmp/modconfig-gUoIPj/vmnet-only/bridge.o] 오류 1
    

  2. 원인
    1. VMware와 커널모듈 호환성에 오류가 잇는듯 하다.
  3. 조치방법
    $> wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-17.0.2.tar.gz
    $> tar -xzf workstation-17.0.2.tar.gz
    $> cd vmware-host-modules-workstation-17.0.2
    $> tar -cf vmmon.tar vmmon-only
    $> tar -cf vmnet.tar vmnet-only
    $> cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
    $> vmware-modconfig --console --install-all
    ...
    Starting VMware services:
       Virtual machine monitor                                             done
       Virtual machine communication interface                             done
       VM communication interface socket family                            done
       Virtual ethernet                                                    done
       VMware Authentication Daemon                                        done
       Shared Memory Available                                             done
    

 

Reference

* https://github.com/mkubecek/vmware-host-modules/blob/w17.0.2/INSTALL