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 우분투 설치

  2. No Image in Ubuntu

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

  3. GNOME 단축실행 만들아이콘 만들기

  4. 리눅스 온도 모니터링 프로그램

  5. KVM VM 하드디스크 용량추가

  6. 우분투 SSD 트림명령어

  7. No Image in Ubuntu

    우분투에서 alt키를 한영키로 변환하는법

  8. 우분투 마메 실행

  9. 우분투 로그인 매니저 변경

  10. No Image in Ubuntu

    apt-get 실행시 Could not get lock /var/lib/dpkg/lock 에러발생시

  11. KDE기반 pdf 리더프로그램 okular 설치

  12. nautilus-image-converter

  13. VLC media Player

  14. qshutdown

  15. KDE plasma 한영변환키설정 방법

  16. KDE 버전 확인법

  17. deepin desktop environment 설치방법

  18. ExecutableBit 에러 발생시

  19. No Image in Ubuntu

    파이어폭스 시작페이지가 변경이 되지 않을때

  20. No Image in Ubuntu

    우분투에서 iso 파일만들기

Board Pagination Prev 1 2 3 Next
/ 3