아이모(IT&모바일)

http://ubuntuforums.org/showthread.php?t=613976
 
Re: vmware-server in hardy
 
--------------------------------------------------------------------------------
 
I went around the long way but I got VMWare server 1.04 installed. Here is what I did, hopefully it will help others. (I also realize the majority of this has been covered many times. I am just including everything because it is easier then figuring out where to start.)
 
First the obvious, install the supporting packages
 
Code:
sudo apt-get install build-essential linux-headers-`uname -r`
sudo apt-get install xinetd


next download vmware server and expand it out somewhere
 
Code:
tar -xvzf VMware-server-1.0.4-56528.tar.gz


then do the install
 
Code:
cd vmware-server-distrib
sudo ./vmware-install.pl


next, next, yada yada. Eventually it will start compiling and fail.
 
grab the any to any patch 115 from
http://knihovny.cvut.cz/ftp/pub/vmwa...date115.tar.gz
 
Code:
wget http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz
tar -xvzf vmware-any-any-update115.tar.gz
cd vmware-any-any-update115
sudo ./runme.pl


EDIT (22 Mar 2008 ): The section in red below does not appear to be necessary any longer. I have left it in place for reference though.
 
The next step is courtesy of the VMWare forums.
http://communities.vmware.com/thread/121847?tstart=-1
(NOTE: you could use the patches in the thread. In my case I already had the any-any patch so it was easier. Either way you still need to change the line as below)
We need to change the problematic include from asm/bitops.h to linux/bitops.h in vcpuset.h
 
 
Code:
 
cd /usr/lib/vmware/modules/source
sudo tar xf vmmon.tar vmmon-only
sudo sed -i 's#asm/bitops.h#linux/bitops.h#' vmmon-only/include/vcpuset.h
sudo mv vmmon.tar vmmon.tar.old
sudo tar cf vmmon.tar vmmon-only
 
 
Finally you can configure vmware server
 
Code:
sudo vmware-config.pl

answer all the questions and it should compile fine.
 
once installed I received an error trying to launch vmware so I cheated and copied the libraries over, which seems to have resolved that issue.
 
Code:
sudo ln -sf /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
sudo ln -sf  /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0

(I found this tip online as well but now I can not find the link.)
 
For 64 bit users there is one additional step in order to allow vmware console to launch:
 
Code:
sudo ln -s /usr/lib32 /usr/l32
sudo sed -i -e 's/usr\/lib/usr\/l32/g' /usr/lib32/gtk-2.0/2.10.0/loader-files.d/libgtk2.0-0.loaders
sudo sed -i -e 's/usr\/lib/usr\/l32/g' /usr/lib32/libgdk_pixbuf-2.0.so.0.1200.8the solution came from https://bugs.launchpad.net/ubuntu/+s...bs/+bug/177869 however I had to change libgdk_pixbuf-2.0.so.0.1200.3 to libgdk_pixbuf-2.0.so.0.1200.8.
 
 
EDIT: changed the last command from cp to ln -sf because it really makes more sense.
EDIT2: added a wget to pull down the any to any patch. Changed the editing of vcpuset.h to use sed rather than editing by hand. Thank you to mk1970 for these two changes.
EDIT3: noted that the update to vmmon does not seem to be needed any longer. Added a fix fir 64 bit installs.
 
at that stage everything should be working.
신고
DISQUS 로드 중…
댓글 로드 중…

블로그 정보

IT서비스&모바일 제품들에 대한 소소한 리뷰.. by ruinses(ruinses@gmail.com) 저작권 관련 및 리뷰 요청 등에 대한 사항은 "알립니다" 카테고리 참고해주세요..

최근에 게시된 글

티스토리 툴바