summaryrefslogtreecommitdiff
path: root/posts/vmware-6.5.4-ubuntu-10.04.mdwn
blob: 6a871240e7a0734556d7ba78583115ab4ee0007a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[[!meta title="VMWare 6.5.4 and Ubuntu 10.04"]]
[[!meta author="Daniel Silverstone"]]
[[!meta date="2010-04-20 12:46:03 +0100"]]
[[!tag tech]]

I recently updated vmware on my desktop to workstation 6.5.4 having
previously upgraded the machine to Ubuntu 10.04. This resulted in
interesting issues so I thought I’d collate them all here.

​1. vmware’s installer remains flawed wrt. output generated during
module compile ~~- to fix this, create a gcc wrapper script which
removes the `-W` flags, e.g.<br />
<blockquote><pre>#!/usr/bin/python<br />
import sys<br />
import copy<br />
import os<br />
argv = copy.copy<br />
i = len<br />
for i in range:<br />
 if len &gt; 4 and argv[i] == &quot;~~W&quot; and argv[i]&#091;3] !=
&quot;,&quot;:<br />
 del argv[i]<br />
argv&#091;0] = &quot;/usr/bin/gcc&quot;<br />
os.execv(argv&#091;0], argv)<br />

</pre>
</blockquote>
​2. Pop that somewhere like /tmp/gcc and chmod +x it.<br />
3. Run sudo env PATH=/tmp:$PATH sh /wherver/VMware-Installer.bundle<br />
4. When the installer finishes, cd into /etc/vmware and add
`export VMWARE_USE_SHIPPED_GTK=&quot;force&quot;` to the bootstrap file.
(This fixes the mouse-broken in fullscreen mode, two pointers visible,
vmware losing grab blahblahblah problem)<br />
5. cd into /usr/lib/vmware/modules/source<br />
6. untar the vmci and vmnet tarballs<br />
7. in vmci-only/include/pgtbl.h add compat_sched.h to the includes<br />
8. in vmnet-only/vnetUserListener.c add compat_sched.h to the includes<br />
9. tar those up again<br />
10. run sudo vmware-modconfig ~~~~console~~~~install-all<br />
11. Assuming all is well, vmware will now work properly.

Sucks that this was needed — perhaps vmware 7 will be better.