Guide to VMware on Breezy

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
oneleaf
论坛管理员
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次

Guide to VMware on Breezy

#1

帖子 oneleaf » 2005-10-31 14:26

Note: I use a root account for root proveleged commands, you may need sudo in from of them if you want to stay a regular user.

1. First make sure you have the build essential package installed:
Code:

# apt-get install build-essential


2. Make sure you have your kernel headers installed:
Code:

# uname -r # apt-get install linux-headers-'kernel version'


3. If you are getting the gcc version error, you will need to install the version that compiled your kernel:
Code:

# cat /proc/version

This tells you what version of gcc your kernel was compiled with.

Code:

$ cat /proc/version Linux version 2.6.12-8-386 (buildd@rothera) (gcc version 3.4.5 20050809 (prerelease) (Debian 3.4.4-6ubuntu6)) #1 Tue Aug 30 22:41:30 BST 2005 $ ls /usr/bin/gcc* /usr/bin/gcc /usr/bin/gcc-4.0 /usr/bin/gccbug /usr/bin/gccbug-4.0


Mine was compiled with gcc-3.4, but I only have gcc-4.0 installed. If your is different than what's in your /usr/bin/gcc*, you will need this version.

Code:

# apt-get install gcc-3.4

That's the version I needed, yours may be different.

4. What people are forgetting, and screwed me up was the g++ version. Some people seemed to be able to go right to the vmware-config.pl after the gcc install, but mine died when it got to compiling the vmmon module with the error "cannot exec `cc1plus'". What you need is the gcc-c++ version that matches the gcc version you just installed, only for Debian/Ubuntu it's called g++.
Code:

# apt-get install g++-3.4

Again, this version may be specific to me.

5. Download VMware-workstation-5.0.0-13124.tar.gz from http://www.vmware.com/.
Code:

$ tar xvzf VMware-workstation-5.0.0-13124.tar.gz $ cd vmware-distrib # ./vmware-install.pl


It should install fine, but DO NOT run the vmware-config.pl just yet.

6. It's always best to use the vmware-any-any-update script instead of the vmware-config.pl. It's available from here http://platan.vc.cvut.cz/ftp/pub/vmware/.
Code:

$ tar xvzf vmware-any-any-update93.tar.gz $ cd vmware-any-any-update93


EDIT TO ADD:
I forgot that you have to set the CC variable to the gcc version you want to use:
Code:

# export CC=/usr/bin/gcc-3.4 # ./runme.pl


That should do it. I'm pretty sure I put everything in here. This should be a concise instruction on how to get VMware going on Breezy Preview after you upgraded everything. I couldn't find any threads adressing all 3 of these errors, and nobody else seemed to have an answer to the cc1plus error. Hope this helps!


http://ubuntuforums.org/showthread.php? ... ght=vmware
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海
送出感谢: 0
接收感谢: 1 次

#2

帖子 catinsnow » 2005-11-01 14:31

呵呵,动作真快,都是不错的HOW-TO~
也认领了.
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海
送出感谢: 0
接收感谢: 1 次

#3

帖子 catinsnow » 2005-11-01 16:00

注意:我使用root帐号执行的root权限命令,用普通用户需要用sudo.

1.首选,确认你已经安装了build-essential程序包:

代码: 全选

# apt-get install build-essential

2.确认你已经安装了内核头文件包:

代码: 全选

# uname -r
# apt-get install linux-headers-'kernel version'

3.如果你遇到gcc版本错误,你需要安装编译你内核的gcc版本:

代码: 全选

# cat /proc/version

这会告诉你,你的内核是用什么版本的gcc编译的.

代码: 全选

$ cat /proc/version 
Linux version 2.6.12-8-386 (buildd@rothera) (gcc version [u][b][size=150]3.4.5[/size][/b][/u] 20050809 (prerelease) (Debian 3.4.4-6ubuntu6)) #1 Tue Aug 30 22:41:30 BST 2005
$ ls /usr/bin/gcc*
/usr/bin/gcc      /usr/bin/gcc-4.0  /usr/bin/gccbug   /usr/bin/gccbug-4.0

可以看到,我的核心是用gcc-3.4编译的,但我只装了gcc-4.0.如果你的也不同于/usr/bin/gcc*,你需要安装核心所用的版本.

代码: 全选

# apt-get install gcc-3.4

这是我需要的版本,你的可能不同.

4.人们忘记的,并困扰我的是g++版本.一些人好像安装gcc之后就可以正常安装vmware-config.pl.但我的在编译vmmon模块时遇到"cannot exec 'cc1plus'"错误并停止了.你需要安装的是和gcc一样版本的gcc-c++,只是Debian/Ubuntu把它叫做g++.

代码: 全选

# apt-get install g++-3.4

同样,这个版本可能只是我的.
5. 从http://www.vmware.com/下载VMware-workstation-5.0.0-13124.tar.gz

代码: 全选

$ tar xvzf VMware-workstation-5.0.0-13124.tar.gz
$ cd vmware-distrib
# ./vmware-install.pl

它应该安装正常,但仍先不要运行vmware-config.pl.

6.用vmware-any-any-update脚本代替vmware-config.pl总是最好的.可以在这里找到它:
http://platan.vc.cvut.cz/ftp/pub/vmware/.

代码: 全选

$ tar xvzf vmware-any-any-update94.tar.gz
$ cd vmware-any-any-update94

编辑添加:
我忘记你要设定CC为需要的gcc版本了:

代码: 全选

# export CC=/usr/bin/gcc-3.4
# ./runme.pl

这样做应该就可以了.我确定所有的都写完了.这算是个简明的教程,引导你如何使VMware工作在升级好的Breezy Preview上.我没有找到任何的文章提到所有3个错误,并且也没有人对cc1plus错误给出答案.希望这能给你以帮助.
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
头像
DarkEyes
帖子: 548
注册时间: 2005-07-01 13:09
来自: 广西南宁
送出感谢: 0
接收感谢: 1 次

#4

帖子 DarkEyes » 2005-11-01 17:53

天阿。又一个人才。。无限的羡慕中。。
最新座驾:华晨中华酷宝 1.8T手动
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海
送出感谢: 0
接收感谢: 1 次

#5

帖子 catinsnow » 2005-11-01 18:42

:oops:
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
头像
oneleaf
论坛管理员
帖子: 10208
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 99 次

#6

帖子 oneleaf » 2005-11-08 13:33

回复

回到 “虚拟机和虚拟化”