macsplex.com 로그인

검색

조회 수 373 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
Extra Form
출처/참고/홈페이지 http://rglinuxtech.com/?p=1838

VMware Workstation 12.5에서 리눅스커널 4.9를 쓰면 VMware kernel Updater가 제대로 실행이 안됩니다.

다음처럼 명령어 실행과 해당코드줄 변경을 해주세요

 

sudo -s
cd /usr/lib/vmware/modules/source
tar -xf vmnet.tar
tar -xf vmmon.tar
cd vmnet-only/
gedit userif.c

 

In vmnet-only/userif.c, around line 113, change

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
    retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
#else
    retval = get_user_pages(current, current->mm, addr,
                1, 1, 0, &page, NULL);
#endif

to

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
     retval = get_user_pages(addr, 1, 0, &page, NULL);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
     retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
#else
     retval = get_user_pages(current, current->mm, addr,
                 1, 1, 0, &page, NULL);
#endif
#endif

 
cd ..
cd vmmon-only/linux/
gedit hostif.c

– and in vmmon-only/linux/hostif.c, around line 1162, change

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
   retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL);
#else
   retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
                           numPages, 0, 0, ppages, NULL);
#endif


to

 

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
   retval = get_user_pages((unsigned long)uvAddr, numPages, 0, ppages, NULL);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
   retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL);
#else
   retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
                           numPages, 0, 0, ppages, NULL);
#endif
#endif


cd ..
cd ..
tar -cf vmnet.tar vmnet-only
tar -cf vmmon.tar vmmon-only

 

성공적으로 실행이 됩니다.





--------------------------------------------------광고(Advertising)-------------------------------------------------------------------------------------


TAG •

리눅스 Tip

Linux Tip

  1. VMware Workstation 12 우분투설치하고 kernel header 에러 나올시

    CategoryUbuntu
    Read More
  2. VMware workstation 12 우분투 설치

    CategoryUbuntu
    Read More
  3. unity-tweak-tool 설치

    CategoryUbuntu
    Read More
  4. OpenXenManager 설치방법

    CategoryUbuntu
    Read More
  5. 우분투 apt, dpkg에서 Could not get lock /var/lib/dpkg/lock가 나오면

    CategoryUbuntu
    Read More
  6. 우분투에서 안드로이드 스튜디오 설치방법

    CategoryUbuntu
    Read More
  7. Transmageddon

    CategoryUbuntu
    Read More
  8. glances

    CategoryUbuntu
    Read More
  9. 우분투에서 윈도우7 설치 USB 만들기(WinUSB)

    CategoryUbuntu
    Read More
  10. 우분투 alsa 재설정

    CategoryUbuntu
    Read More
  11. 우분투 스크롤 휠 속도설정

    CategoryUbuntu
    Read More
  12. 우분투서버 12.04

    CategoryUbuntu
    Read More
  13. 우분투에서 7zip 프로그램 설치

    CategoryUbuntu
    Read More
  14. 우분투 스팀 실행 명령어

    CategoryUbuntu
    Read More
  15. Go For It

    CategoryUbuntu
    Read More
  16. OpenCubicPlayer

    CategoryUbuntu
    Read More
  17. 우분투 파일관리자 네트워크에 컴퓨터들이 보이지 않을때

    CategoryUbuntu
    Read More
  18. Youtube 동영상 다운로드

    CategoryUbuntu
    Read More
  19. vmware-workstation 삭제방법

    CategoryUbuntu
    Read More
  20. Xpad

    CategoryUbuntu
    Read More
Board Pagination Prev 1 2 3 Next
/ 3