补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

编译打包和其他
回复
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#1

帖子 kelen » 2009-04-04 20:20

如果你自己编译了内核2.6.29, 而且你是vmware workstation (6.5.2)的话, 只要打上附件里补丁就可以在新内核上运行了. 整个过程已制定成脚本.
如果你想自己亲自动手, 也可以. just follow me
step 1. 切换工作目录到source

代码: 全选

cd /usr/lib/vmware/modules/source
step 2. 解压包

代码: 全选

sudo tar -xf vmblock.tar ##解压目录里所有的包 *.tar
step 3. 解压附件到 /usr/lib/vmware/modules/source

代码: 全选

sudo tar -xf vmware-6.5.2-modules-2.6.29-fix.tar.gz -C /usr/lib/vmware/modules/source
step 4. 打补丁

代码: 全选

sudo patch -N -p1 < vmware-6.5.2-modules-2.6.29-fix.patch
step 5. 打包所有的目录

代码: 全选

sudo tar -cf vmblock.tar vmblock-only ## 一个文件一个包, 
PS, 没有风险, 如果你不放心, 可以把source目录备份, 再复制出来, 测试一下.
参考原文http://communities.vmware.com/message/1217542#1217542
附件
vmware-6.5.2-modules-2.6.29-fix.tar.gz
(3.47 KiB) 已下载 226 次
In a world without walls who needs Windows?
头像
pengdong17
帖子: 197
注册时间: 2009-02-15 16:46

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#2

帖子 pengdong17 » 2009-04-19 22:29

pd@pd-laptop:/usr/lib/vmware/modules/source$ sudo patch -N -p1 < vmware-6.5.2-modules-2.6.29-fix.patch
patching file vmblock-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmblock-only/Makefile.rej
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN source-OLD/vmci-only/Makefile source-NEW/vmci-only/Makefile
|--- source-OLD/vmci-only/Makefile 2009-03-26 22:05:22.000000000 -0700
|+++ source-NEW/vmci-only/Makefile 2009-04-04 02:17:17.000000000 -0700
--------------------------
File to patch:
never mind
头像
pengdong17
帖子: 197
注册时间: 2009-02-15 16:46

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#3

帖子 pengdong17 » 2009-04-19 22:30

File to patch: 填什么
never mind
头像
pengdong17
帖子: 197
注册时间: 2009-02-15 16:46

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#4

帖子 pengdong17 » 2009-04-20 15:31

pd@pd-laptop:/usr/lib/vmware/modules/source$ sudo patch -N -p1 < vmware-6.5.2-modules-2.6.29-fix.patch
patching file vmblock-only/Makefile


Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmblock-only/Makefile.rej
patching file vmci-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmci-only/Makefile.rej
patching file vmmon-only/include/x86apic.h
Hunk #1 succeeded at 100 with fuzz 2 (offset 6 lines).
patching file vmmon-only/linux/driver.c
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmmon-only/linux/driver.c.rej
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3383 (offset -41 lines).
Hunk #2 FAILED at 3497.
Hunk #3 FAILED at 3621.
2 out of 3 hunks FAILED -- saving rejects to file vmmon-only/linux/hostif.c.rej
patching file vmmon-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmmon-only/Makefile.rej
patching file vmnet-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vmnet-only/Makefile.rej
patching file vmnet-only/netif.c
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file vmnet-only/netif.c.rej
patching file vsock-only/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file vsock-only/Makefile.rej
never mind
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#5

帖子 kelen » 2009-04-20 20:15

1.目录里面的所有的包都需要解压哦,
2.内核版本是2.6.29以上.
3.VM版本必须是6.5.2.
以上3点你都达到要求了吗? :em11
In a world without walls who needs Windows?
头像
greennba99
帖子: 2
注册时间: 2009-05-07 14:02

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#6

帖子 greennba99 » 2009-05-07 14:07

我的内核是 2.6.30rc3, 编译失败:
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.30-020630rc3-generic'
CC [M] /usr/lib/vmware/modules/source/vmblock-only/linux/block.o
CC [M] /usr/lib/vmware/modules/source/vmblock-only/linux/control.o
/usr/lib/vmware/modules/source/vmblock-only/linux/control.c: 在函数‘SetupProcDevice’中:
/usr/lib/vmware/modules/source/vmblock-only/linux/control.c:159: 错误: ‘struct proc_dir_entry’没有名为‘owner’的成员
/usr/lib/vmware/modules/source/vmblock-only/linux/control.c:171: 错误: ‘struct proc_dir_entry’没有名为‘owner’的成员
make[2]: *** [/usr/lib/vmware/modules/source/vmblock-only/linux/control.o] 错误 1
make[1]: *** [_module_/usr/lib/vmware/modules/source/vmblock-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.30-020630rc3-generic'
make: *** [vmblock.ko] 错误 2
Sorry, problem compiling the vmblock module after it was patched
You must restore from this backup directory:
/usr/lib/vmware/modules/source-backup

请问怎样解决!!!!
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#7

帖子 kelen » 2009-05-07 15:05

目前只保证可以在2.6.29.x的内核上运行.
2.6.30rc的内核不能保证呀.
In a world without walls who needs Windows?
头像
greennba99
帖子: 2
注册时间: 2009-05-07 14:02

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#8

帖子 greennba99 » 2009-05-07 15:11

那就没办法了,只能用 vBox了,多谢楼主回复!!!!
hlost
帖子: 121
注册时间: 2009-05-04 10:29

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#9

帖子 hlost » 2009-05-19 11:05

其实直接执行压缩包里面的sh脚本就可以了,
虽然比自己手动多了很多垃圾

嘿嘿,谢谢楼主
alanlhy
帖子: 47
注册时间: 2010-05-14 16:06

Re: 补丁 <<<<< 运行vmware workstation 6.5.2 在 kernel 2.6.29

#10

帖子 alanlhy » 2011-04-16 17:15

太感谢楼主了 终于成功了
回复