VMWare installation problems of gcc and kernel-sources versions

Trying to install VMWare I get the following message

Your kernel was built with “gcc” version “4.5.0”, while you are trying to use
“/usr/bin/gcc” version “4.5”. This configuration is not recommended and VMware
Workstation may crash if you’ll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
“/usr/bin/gcc” version “4.5” anyway?

Really after it VMWare anyway doesn’t agree to install. Zypper says that no newer version of gcc is available. So I can’t see how I can install VMWare.

On Thu, 30 Dec 2010 19:36:02 +0000, Ilya81 wrote:

> Trying to install VMWare I get the following message
>> Your kernel was built with “gcc” version “4.5.0”, while you are trying
>> to use
>> “/usr/bin/gcc” version “4.5”. This configuration is not recommended and
>> VMware
>> Workstation may crash if you’ll continue. Please try to use exactly
>> same
>> compiler as one used for building your kernel. Do you want to go with
>> compiler
>> “/usr/bin/gcc” version “4.5” anyway?
> Really after it VMWare anyway doesn’t agree to install. Zypper says that
> no newer version of gcc is available. So I can’t see how I can install
> VMWare

Answer “Yes” to the question you’re being asked. I’ve seen this message
for several months and VMware has given me no problems whatsoever because
of this “version mismatch” (note that 4.5.0 = 4.5 - so it’s not really a
version mismatch, but a script error).

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

But it doesn’t help. But as I’ve tryed to search may be the problem is not with gcc.rpm but with some ones that contain kernel sources (i’m not sure if it’s kernel-source, kernel-devel or some other one). I’ve tryed to downgrade these ones, to remove and then install from the OpenSuse disk but nothing has changed. VMWare still recuses to install. No variants of installing options make VMWare agree to install.

Hi
Have you checked that all your kernel versions are the same(as in
running and source)? You need the following installed;


make, gcc, patch, kernel-source, kernel-syms, linux-glibc-devel


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
up 3 days 12:56, 3 users, load average: 0.01, 0.04, 0.00
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.29

On Fri, 31 Dec 2010 11:36:03 +0000, Ilya81 wrote:

> But it doesn’t help. But as I’ve tryed to search may be the problem is
> not with gcc.rpm but with some ones that contain kernel sources (i’m not
> sure if it’s kernel-source, kernel-devel or some other one). I’ve tryed
> to downgrade these ones, to remove and then install from the OpenSuse
> disk but nothing has changed. VMWare still recuses to install. No
> variants of installing options make VMWare agree to install.

What is the output of the command:

rpm -qa | grep -i kernel

?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2010-12-31 12:36, Ilya81 wrote:
>
> But it doesn’t help.

Yes it does. Answer yes and ignore the vmware complaint about the gcc
version. Don’t even try to install another gcc version.

> contain kernel sources (i’m not
> sure if it’s kernel-source, kernel-devel or some other one).

That’s a different problem, you need a symlink, I think. If you are using
workstation, the problem is solved in a newer version, I was told.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

It really was lack of kernel-syms but after its installation nothing changed. Still I get the message

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.34.7-0.5-default). Even if the module were to
compile successfully, it would not load into the running kernel.

The ouput is

kernel-firmware-20100617-2.2.noarch
kernel-xen-2.6.34-12.3.x86_64
kernel-default-devel-2.6.34-12.3.x86_64
kernel-syms-2.6.34-12.3.x86_64
kernel-source-2.6.34-12.3.noarch
kernel-default-2.6.34.7-0.5.1.x86_64
kernel-desktop-2.6.34-12.3.x86_64
kernel-desktop-devel-2.6.34-12.3.x86_64
kernel-devel-2.6.34-12.3.noarch
nfs-kernel-server-1.2.1-7.2.x86_64
kernel-xen-devel-2.6.34-12.3.x86_64

I’ve tryed also a newer version but new versions have .bundle format and I get the following:


sudo -i ./VMware-Workstation.bundle
Uninstalling legacy installation...
This version of "VMware VIX API" is incompatible with this operating system.  
Please install the "x86_64" version of this program instead.

Execution aborted.

Such way I can’t install neither 64-bit version, nor 32-bit one that are provided on their site.

Hi
You don’t have the correct kernel rpms.


->>> kernel-default-2.6.34.7-0.5.1.x86_64

What kernel version are you running?


uname -a

On 2011-01-02 21:06, Ilya81 wrote:

See this:

> <http://en.opensuse.org/SDB:Installing_VMware_server_or_workstation_on_openSUSE_11.3_or_SLED_11_SP1>


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On Sun, 02 Jan 2011 20:06:05 +0000, Ilya81 wrote:

> kernel-source-2.6.34-12.3.noarch
> kernel-default-2.6.34.7-0.5.1.x86_64

These versions do not match, and they need to - and the need to match the
running kernel version as reported by uname -a (as malcolmlewis alluded
to).

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I’ve tryed to use zypper update and now I have

mymain:~ # rpm -q kernel-default
kernel-default-2.6.34.7-0.7.1.x86_64
mymain:~ # rpm -q kernel-source
kernel-source-2.6.34.7-0.7.1.noarch
mymain:~ # rpm -q kernel-devel
kernel-devel-2.6.34.7-0.7.1.noarch
mymain:~ # rpm -q kernel-syms
kernel-syms-2.6.34.7-0.7.1.x86_64
mymain:~ # uname -a
Linux mymain 2.6.34.7-0.5-default #1 SMP 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux

But what is a safe way to modify kernel version to be sure that Linux won’t crash?

There are some problems to use it 'cause those commands use rpms of VMWare but currently no more rpms are provided (only .bundle) and i’ve not succeded to find some legacy with VMWare rpms. All the commands with .bundle from the article give me the same result.

Hi
You need to reboot your system so the updated kernel is running., the
output from uname -a should be 2.6.34.7-0.7


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
up 1 day 17:30, 2 users, load average: 0.03, 0.03, 0.00
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.29

Still VMWare doesn’t install. The outputs are

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] 

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.34.7-0.7-default).  Even if the module were to
compile successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] ^C
mymain:/etc/yum.repos.d # rpm -q kernel-source
kernel-source-2.6.34.7-0.7.1.noarch
mymain:/etc/yum.repos.d # rpm -q kernel-default
kernel-default-2.6.34.7-0.7.1.x86_64
mymain:/etc/yum.repos.d # uname -a
Linux mymain 2.6.34.7-0.7-default #1 SMP 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux
mymain:/etc/yum.repos.d # 

May be really versions match as with gcc but VMWare has no option to force installation. May be I need to modify vmware-config.pl script but i’m not sure how to do it safely.

Why are you using yum??? yum is a Red Hat thing not an OpenSuse. OpenSuse uses zypper not yum.

Did you remove all the development packages? note you may need to reinstall the source and sym

What version of VMware? Server?? There are known problems with VMWare server installations for the last year and VMware does not seem interested in fixing it. Personally I gave up on it and moved to Virtual Box and am very happy with it.

On Mon, 03 Jan 2011 17:06:03 +0000, Ilya81 wrote:

> May be really versions match as with gcc but VMWare has no option to
> force installation.

Nope, this isn’t a case where they don’t match even though they match.

> May be I need to modify vmware-config.pl script but
> i’m not sure how to do it safely.

You shouldn’t have to modify the script at all.

What version of VMware are you installing? Server/Workstation, and what
release?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

You have way too many kernels installed. If your hardware is fairly new: Uninstall kernel-default kernel-default-devel restart your system Cheers! Romanator

I use VMWare Workstation but i’m not sure of which version, first time i’ve installed it 3 years ago. May be it’s really better just upgrade VMWare and don’t vex more with the old installation. But the problem that currently only the 7th version is available in an .bundle format and i just get the message

mymain:~ # ./VMware-Workstation.bundle
Uninstalling legacy installation...
This version of "VMware VIX API" is incompatible with this operating system.  
Please install the "x86_64" version of this program instead.

Execution aborted.

and I don’t know what to do with it. Neither I can start 32-bit version installation. May be there is a solution for compatibility with this new version that already has no rpms?

If I’ll use some other emulator that isn’t VMWare I need a way to convert existing virtual machines to their format. Is it possible without installing VMWare?

By the way Virtual Box turned out the same problem

Makefile:170: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -C /usr/src/linux modules
make[1]: *** No rule to make target `modules’. Stop.
make: *** [vboxdrv] Error 2

About hardware it isn’t new it’s the same as 4 years ago when installed OpenSuse first time.

On 2011-01-03 19:06, Ilya81 wrote:

> Code:
> --------------------
> mymain:~ # ./VMware-Workstation.bundle
> Uninstalling legacy installation…
> This version of “VMware VIX API” is incompatible with this operating system.
> Please install the “x86_64” version of this program instead.
>
> Execution aborted.
> --------------------

Hold on.

You said:

> mymain:/etc/yum.repos.d # uname -a
> Linux mymain 2.6.34.7-0.7-default #1 SMP 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux

You have a 64 bit kernel and operating system, but the vmware version you
are using is for 32 bit. You can not install that. Impossible!

> and I don’t know what to do with it. Neither I can start 32-bit version
> installation.

What error exactly does it give?

> If I’ll use some other emulator that isn’t VMWare I need a way to
> convert existing virtual machines to their format. Is it possible
> without installing VMWare?

I use vmware server in 11.2. In 11.3 it needs different tricks. I read you
need certain symlinks to make it accept the kernel headers.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

I had similar problems, but as I was in a hurry - I needed the computer to use at work. I bought the upgrade, installed it using 11.2, and then did an upgrade to 11.3. Went very easily, with no problems. You can see the thread here