知行社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3000|回复: 0
收起左侧

Ununtu 12.04安装VMware方法启动服务的解决方法

[复制链接]
知行 发表于 2012-7-23 12:39 | 显示全部楼层 |阅读模式
老外网站上看到的,挺有用的,原文地址:http://www.webupd8.org/2012/06/how-to-install-vmware-player-in-ubuntu.html
1. Download VMware Player in your home folder. You'll have to register before downloading (or search for some alternate download link).

Note: if you're using Google Chrome, the downloaded file will have ".txt" extension - rename the extension to ".bundle".



2. Now let's install the required dependencies and run the downloaded VMware .bundle file:
sudo apt-get install build-essential linux-headers-`uname -r`
32bit:
chmod +x VMware-Player-4.0.3-703057.i386.bundlesudo ./VMware-Player-4.0.3-703057.i386.bundle
64bit:
chmod +x VMware-Player-4.0.3-703057.x86_64.bundlesudo ./VMware-Player-4.0.3-703057.x86_64.bundle
The filename in the commands above may be different, depending on the VMware version you've downloaded (at the time I'm writing this post, version 4.0.3 is the latest).

At this point, a window will pop-up - click "Next", etc.:




3. Patch VMware 4.0.3 to work with Ubuntu 12.04 Precise Pangolin

Don't try to run VMware player in Ubuntu 12.04 yet because it won't work due to the following Virtual Network Device error: "Unable to start services. See log file /tmp/vmware-root/mdconfig-23331.log for details".



We'll have to patch it to get it to work, using the commands below:
sudo apt-get install patchcdwget http://webupd8.googlecode.com/fi ... xlinux320.tar.gztar -xvf vmware802fixlinux320.tar.gzsudo ~/vmware802fixlinux320/patch-modules_3.2.0.sh
Update: for other versions like VMware Player 4.0.4, edit the "patch-modules_3.2.0.sh" file (from the archive downloaded by the second command above) and change the "plreqver" version to the VMWare Player version you're using.

The commands above download the patch and run it but if you want, you can also manually download the patch from HERE.

If you've had an earlier VMware version installed and used the patch for it, you'll get an error like this:
/usr/lib/vmware/modules/source/.patched found. You have already patched your sources. ExitingTo fix it, simply remove the ".patched" file and try again:
sudo rm /usr/lib/vmware/modules/source/.patched
VMware Player 4.0.3 should now work under Ubuntu 12.04 Precise Pangolin:




The patch should work with both VMware Player and VMware Workstation, but I've only tested it with VMware Player (under Ubuntu 12.04).
 楼主| 知行 发表于 2012-7-23 13:53 | 显示全部楼层
今天又有人问起 Fedora17/Ubuntu 12.04 装 VMware  Workstation 8.0.4/8.0.3

http://blog.csdn.net/luozhuang/article/details/7661895

   其实 8.0.2 脚本是通用8.0.4

  至于为什么会不能用报告

Sorry, this script is only for VMWare WorkStation 8.0.4 or VMWare Player 4.0.2. Exiting

  需要自己修改脚本的版本号:

请用文本编辑器打开patch-modules_3.4.0.sh

修改版本就可以了

8.0.4 修改如下


[plain] view plaincopy


  • #! /bin/bash  
  • # VMWare Workstation/Player _host kernel modules_ patcher v0.6.2 by ?010 Artem S. Tashkinov  
  • # Tailored and fixed vmblock patching for the 2.6.39 patch by Stefano Angeleri (weltall)  
  • # Use at your own risk.  
  •   
  • fpatch=vmware3.4.0.patch  
  • vmreqver=8.0.4  
  • plreqver=4.0.4  



另外有个大神给出自己解决脚本:

请打开 终端输入:

原理就是下载 脚本到

[plain] view plaincopy


  • /usr/lib/vmware/modules  

然后安装不说了



[plain] view plaincopy


  • luozhuang@ubuntu:~$cd /usr/lib/vmware/modules;  
  • luozhuang@ubuntu:~$wget http://pavlinux.ru/vmware/8.0.4/source.tar.lzma;  
  • luozhuang@ubuntu:~$md5sum source.tar.lzma;  
  •   e37e41a818a47ec868bdb493197aaf63 source.tar.lzma  
  • luozhuang@ubuntu:~$tar -xf source.tar.lzma;  
  • luozhuang@ubuntu:~$ vmware-modconfig --console --install-all;  


原文地址:http://blog.csdn.net/luozhuang/article/details/7711587

关于我们|小黑屋|手机版|Archiver|知行技术社区 ( 湘ICP备11020288号-1 )

GMT+8, 2018-10-21 07:08 , Processed in 0.015518 second(s), 12 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表