# sudo -
# cd /usr/lib/vmware/modules/source
# tar xf vmmon.tar
# mv vmmon.tar vmmon.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmmon-only/linux/hostif.c
# tar cf vmmon.tar vmmon-only
# rm -r vmmon-only
# tar xf vmnet.tar
# mv vmnet.tar vmnet.old.tar
# sed -i -e 's/get_user_pages/get_user_pages_remote/g' vmnet-only/userif.c
# sed -i -e 's/dev->trans_start = jiffies/netif_trans_update\(dev\)/g' vmnet-only/netif.c
# tar cf vmnet.tar vmnet-only
# rm -r vmnet-only
cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
vi ./vmmon-only/linux/driver.c
소스 수정
#ifdef VMX86_DEVEL
unregister_chrdev(linuxState.major, linuxState.deviceName);
#else
- if (misc_deregister(&linuxState.misc)) {
- Warning("Module %s: error unregistering\n", linuxState.deviceName);
- }
+ misc_deregister(&linuxState.misc);
mv vmmon.tar vmmon.tarbackup
tar cf vmmon.tar ./vmmon-only
sudo vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
cd /usr/lib/vmware/modules/source
tar xf vmnet.tar
tar xf vmmon.tar
mv vmnet.tar vmnet.old.tar
mv vmmon.tar vmmon.old.tar
sed -i -e 's/dev->trans_start = jiffies/netif_trans_update(dev)/g' vmnet-only/netif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/hostif.c
sed -i -e 's/unsigned int anonPages = global_page_state(NR_ANON_PAGES);/unsigned int anonPages = global_page_state(NR_ANON_MAPPED);/g' vmmon-only/linux/hostif.c
tar cf vmnet.tar vmnet-only
tar cf vmmon.tar vmmon-only
rm -r vmnet-only
rm -r vmmon-only
업데이트 금지
시스템 적용
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
echo /usr/lib/vmware/lib/libglibmm-2.4.so.1 | sudo tee -a /etc/ld.so.conf.d/LD_LIBRARY_PATH.conf
sudo ldconfig
실행파일 적용
/usr/bin/vmware
/usr/bin/vmware-netcf
export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH
vmware-modconfig --console --install-all
sudo VMWARE_USE_SHIPPED_LIBS=yes vmware
실행시 에러
"Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
$ sudo /usr/src/linux-headers-`uname -r`/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
$ mokutil --import MOK.der
다른 해결 방법.
[VMWARE] Could not open /dev/vmmon 오류발생 해결법 Admin
출처: http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-
한마디로 그냥 재컴파일해서 수동으로 vmmon.ko을 심어줍시다T_T
(1) mkdir ~/vmsrc ; cd ~/vmsrc
(2) tar xvf /usr/lib/vmware/modules/source/vmmon.tar
(3) cd vmmon-only
(4) make [Note: this builds vmmon.ko]
(5) strip --strip-debug vmmon.ko [This is optional. Note the two dashes]
(6) su -
(7) cd /lib/modules/`uname -r`/misc
(8) mv vmmon.o vmmon.o.dist [Note: save the original just in case]
(9) cp /(path to user's home)/vmsrc/vmmon-only/vmmon.ko vmmon.o
다른 방법 Admin
출처: https://communities.vmware.com/message/2305657
아래와 같은 방법으로도 해결됨(root로...)
mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.bkp
vmware-modconfig --console --install-all
sudo service vmware stop
sudo rm /lib/modules/$(uname -r)/misc/vmmon.ko
sudo vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include/
sudo depmod -a
sudo service vmware start
삭제
sudo vmware-installer --uninstall-product vmware-workstation
댓글 없음:
댓글 쓰기