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. Xpad

  2. wordpress 도메인변경

  3. VNC server 설치

  4. No Image in Ubuntu

    vmware-workstation 삭제방법

  5. No Image in Ubuntu

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

  6. VMware workstation 12 우분투 설치

  7. No Image in Fedora

    VMware Remote-Console 설치 에러

  8. VLC media Player

  9. No Image

    VI 단어검색

  10. unity-tweak-tool 설치

  11. No Image

    umount: /mnt/cdrom : device is busy

  12. No Image

    ubuntu kvm install

  13. Transmageddon

  14. No Image

    TAR을 이용한 권한설정까지 압축하기

  15. No Image

    tar 명령어로 압축하기, 압축풀기

  16. No Image in Fedora

    sudo 유저추가

  17. No Image

    Setting Up the OpenLDAP Server

  18. No Image

    scp 명령어를 이용한 파일 복사 및 전송

  19. qshutdown

  20. phpmyadmin 업로드 용량늘이기

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