2003-09-26 09:46:40

by MånsRullgård

[permalink] [raw]
Subject: vmware in Linux 2.6


Is it possible to use vmware with Linux 2.6? The kernel modules
(obviously) fail to compile.

--
M?ns Rullg?rd
[email protected]


2003-09-26 10:26:14

by Petr Vandrovec

[permalink] [raw]
Subject: Re: vmware in Linux 2.6

On 26 Sep 03 at 11:46, Mons Rullgord wrote:
>
> Is it possible to use vmware with Linux 2.6? The kernel modules
> (obviously) fail to compile.

Do you know Google?... And best for such type of questions are newsgroups
at news.vmware.com, especially one named vmware.for-linux.experimental.

And if you do not know Google, you need to know
ftp://platan.vc.cvut.cz/pub/vmware ... You can also use
http://platan.vc.cvut.cz/ftp/pub/vmware, but ftp is preferred access
method, so people with broken NATs are separated first...
Petr Vandrovec


2003-09-26 10:29:38

by Sean Neakums

[permalink] [raw]
Subject: Re: vmware in Linux 2.6

[email protected] (M?ns Rullg?rd) writes:

> Is it possible to use vmware with Linux 2.6? The kernel modules
> (obviously) fail to compile.

There are three references in the vmnet code that need to be changed
from ->priv to ->sk_priv, or somesuch. After that, it seems to work
fine.

2003-09-26 10:31:01

by Helmut Djurkin

[permalink] [raw]
Subject: Re: vmware in Linux 2.6


from:
http://www.fearthecow.net/index.pl?section=guest&page=kernel

<snip>
VMWare:

You'll need to edit /usr/bin/vmware-config.pl

1. Replace all occurances of /proc/ksyms with /proc/kallsyms
2. Untar vmnet.tar in /usr/lib/vmware/modules/source
* Edit bridge.c
* On line 368, change: atomic_add(skb->truesize,
&sk->wmem_alloc); into atomic_add(skb->truesize, &sk->sk_wmem_alloc);<
* On line 618, change protinfo into sk_protinfo
* Likewise, on line 817, change protinfo into sk_protinfo
3. Tar the vmnet directory, and replace vmnet.tar
4. Run /usr/bin/vmware-config.pl - it should run without a problem.
<snip>


M?ns Rullg?rd wrote:
> Is it possible to use vmware with Linux 2.6? The kernel modules
> (obviously) fail to compile.
>



2003-09-26 10:28:29

by Martin Zwickel

[permalink] [raw]
Subject: Re: vmware in Linux 2.6

On Fri, 26 Sep 2003 11:46:01 +0200
[email protected] (M?ns Rullg?rd) bubbled:

>
> Is it possible to use vmware with Linux 2.6? The kernel modules
> (obviously) fail to compile.
>

Yes, it is.
I use vmware 4.0.2.5592 with 2.6.0-t3.
You just need the vmware-any-any-update40.tar.gz.
Get it here: http://ftp.cvut.cz/vmware/vmware-any-any-update40.tar.gz
unpack and copy it to vmware-src/lib/modules/source/

hope this helps!

Regards,
Martin

ps.: i use gentoo, and i just looked at the package build scripts.

--
MyExcuse:
Terrorists crashed an airplane into the server room, have to remove /bin/laden.
(rm -rf /bin/laden)

Martin Zwickel <[email protected]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>


Attachments:
(No filename) (749.00 B)
(No filename) (189.00 B)
Download all attachments

2003-09-26 10:51:16

by MånsRullgård

[permalink] [raw]
Subject: Re: vmware in Linux 2.6

"Petr Vandrovec" <[email protected]> writes:

>> Is it possible to use vmware with Linux 2.6? The kernel modules
>> (obviously) fail to compile.
>
> Do you know Google?... And best for such type of questions are newsgroups
> at news.vmware.com, especially one named vmware.for-linux.experimental.

I already tried google. It only turned up a solution that involved
editing something in the vmnet module. In my case, the vmmon module
failed rather miserably, and I couldn't find anything about that.

--
M?ns Rullg?rd
[email protected]

2003-09-26 12:46:05

by Petr Vandrovec

[permalink] [raw]
Subject: Re: vmware in Linux 2.6

On 26 Sep 03 at 12:50, Mons Rullgord wrote:
> "Petr Vandrovec" <[email protected]> writes:
>
> >> Is it possible to use vmware with Linux 2.6? The kernel modules
> >> (obviously) fail to compile.
> >
> > Do you know Google?... And best for such type of questions are newsgroups
> > at news.vmware.com, especially one named vmware.for-linux.experimental.
>
> I already tried google. It only turned up a solution that involved
> editing something in the vmnet module. In my case, the vmmon module
> failed rather miserably, and I couldn't find anything about that.

Failed rather miserably == no 'prev' member in linuxState.misc? Then
it is fixed in vmware-any-any-update40...

And except that this patch makes thing compilable, it also makes driver
a bit friendlier to the MM subsystem, it allows you to use VMware on
4G/4G host, and it properly handles bridged networking on adapters using
hardware (or pseudohardware...) Tx checksumming (although only for IPv4
due to features of dev_queue_xmit_nit).
Petr Vandrovec


2003-09-26 20:46:39

by Petr Vandrovec

[permalink] [raw]
Subject: Re: vmware in Linux 2.6

On 26 Sep 03 at 12:56, Jan Rychter wrote:
> >>>>> "Petr" == Petr Vandrovec <[email protected]>:
> Petr> On 26 Sep 03 at 12:50, Mons Rullgord wrote:
> >> "Petr Vandrovec" <[email protected]> writes:
> >>
> > Is it possible to use vmware with Linux 2.6? The kernel modules
> > (obviously) fail to compile.
>
> [...]
>
> Petr> And except that this patch makes thing compilable, it also makes
> Petr> driver a bit friendlier to the MM subsystem, it allows you to use
> Petr> VMware on 4G/4G host, and it properly handles bridged networking
> Petr> on adapters using hardware (or pseudohardware...) Tx checksumming
> Petr> (although only for IPv4 due to features of dev_queue_xmit_nit).
>
> Does VMware roll these changes back in? This isn't cheap software, I
> feel they should care for Linux users a bit more.

Yes. Currently VMware's & mine code is identical except that mine
vmmon supports all released products since VMware 2.0.0 through VMware
express, GSX & so on up to the VMware 4.0.2, while VMware's code supports
only product it is shipped with. And you need C++ (for templates which are
used for generating code for different product versions) with mine code,
while you get one unwind template instance from VMware.

> For those who run VMware on notebooks with ACPI, another patch is
> necessary, otherwise ACPI C-states handling doesn't notice VMware and as
> a result the guest system is unbearably slow.

If this patch is for vmmon, can you share it with VMware (or with me
and I'll then share it with VMware) ? I cannot explain why ACPI does
not notice that kernel is spending about 99% of time in the kernel,
being very busy with hard work...

Thanks,
Petr Vandrovec
[email protected]