macsplex.com 로그인

검색

조회 수 350 추천 수 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. 우분투에서 유용한 시스템 모니터링 툴

  2. No Image in nginx

    nginx rewrite 예제

  3. No Image in nginx

    nginx semrush bot 차단

  4. No Image in Debian

    Ngnix 특정폴더 인증절차추가

  5. 웹로그분석툴 GoAccess

  6. No Image in Debian

    워드프레스 고유주소 nginx 설정

  7. No Image in Debian

    nginx "rewrite" directive is not allowed here in 에러발생시

  8. CentOS 8 웹콘솔(Cokpit) 설치하기

  9. 우분투 18.04 영문판에서 한글입력 추가

  10. No Image in Fedora

    yarn 설치방법

  11. No Image in Fedora

    sudo 유저추가

  12. No Image in Fedora

    VMware Remote-Console 설치 에러

  13. 리눅스 민트 19.1 테사(Tessa) 업그레이드 방법

  14. No Image in Arch

    Arch 저장소(repo)추가 방법

  15. Gzip 압축효율 확인사이트

  16. No Image in Debian

    Nginx 이미지링크 방지

  17. No Image in Debian

    Nginx사용시 업로드용량변경

  18. No Image in DB

    Mysql(MaridaDB)접속시 ERROR 2002 발생시

  19. No Image in Apache2

    apache2 ssl 모드 활성 및 비활성화 명령어

  20. No Image in Fedora

    페도라 방화벽포트열기

Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8