Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] vmware-modules fails with kernel 3.19
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Sun Feb 15, 2015 8:44 pm    Post subject: [SOLVED] vmware-modules fails with kernel 3.19 Reply with quote

I am trying to emerge vmware-modules-279.3-r1::vmware under kernel 3.19.0-gentoo but get the errors mentioned in this bug report. I get the same errors when I use the patches provided with that report.

Any pointers on how to emerge vmware-modules under this kernel would be gratefully received.

This worked partially for me.
  • In the kernel's config, set the flags CONFIG_VMWARE_VMCI_VSOCKETS=y CONFIG_VMWARE_VMCI=y and compile a new kernel.
  • Download the three vmware-modules patches by Harris Landgarten in this other bug report.
  • Compile vmware-modules with USE flags -vmci -vsock
Then I was able to run vmware once but not after a reboot. The init scripts give me this error:

Code:
./vmware restart
 * Stopping VMware USB Arbitrator ...
/opt/vmware/bin/vmware-usbarbitrator: no process found                    [ !! ]
Stopped all configured services on all networks                           [ ok ]
 * Stopping VMware services ...
modprobe: FATAL: Module vsock is builtin.                                 [ !! ]
modprobe: FATAL: Module vmci not found.
modprobe: FATAL: Module vmw_vmci is builtin.                              [ !! ]
 * ERROR: vmware failed to stop


[SOLVED] Hotblack's four patches (below) work without modifying the kernel. [/SOLVED]


Last edited by cfgauss on Tue Feb 17, 2015 3:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Hotblack
n00b
n00b


Joined: 28 Dec 2004
Posts: 47

PostPosted: Mon Feb 16, 2015 10:39 pm    Post subject: Reply with quote

Create the dir for patches:
Code:
# mkdir -p /etc/portage/patches/app-emulation/vmware-modules

Download these four patches:
Code:
# curl http://pastie.org/pastes/9934018/download -o /etc/portage/patches/app-emulation/vmware-modules/vmnet-3.19.patch

Code:
# curl http://keiblo.com/?wpdmdl=1171 -o /etc/portage/patches/app-emulation/vmware-modules/af_vsock-3.19.patch

Code:
# curl http://keiblo.com/?wpdmdl=1172 -o /etc/portage/patches/app-emulation/vmware-modules/vmci-3.19.patch

Code:
# curl http://keiblo.com/?wpdmdl=1173 -o /etc/portage/patches/app-emulation/vmware-modules/vmblock-3.19.patch

Code:
# emerge vmware-modules

This works for me without disabling vmci and vsock, and without the flags in the kernel.
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Tue Feb 17, 2015 3:41 am    Post subject: Reply with quote

Hotblack wrote:
Create the dir for patches:
Code:
# mkdir -p /etc/portage/patches/app-emulation/vmware-modules

Download these four patches:
Code:
# curl http://pastie.org/pastes/9934018/download -o /etc/portage/patches/app-emulation/vmware-modules/vmnet-3.19.patch

Code:
# curl http://keiblo.com/?wpdmdl=1171 -o /etc/portage/patches/app-emulation/vmware-modules/af_vsock-3.19.patch

Code:
# curl http://keiblo.com/?wpdmdl=1172 -o /etc/portage/patches/app-emulation/vmware-modules/vmci-3.19.patch

Code:
# curl http://keiblo.com/?wpdmdl=1173 -o /etc/portage/patches/app-emulation/vmware-modules/vmblock-3.19.patch

Code:
# emerge vmware-modules

This works for me without disabling vmci and vsock, and without the flags in the kernel.


I can confirm that these four patches work for my vmware-modules-279.3-r1::vmware and the 3.19.0-gentoo kernel without the VMWARE flags. Many thanks, Hotblack.
Back to top
View user's profile Send private message
vhristev
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Fri Feb 20, 2015 12:04 pm    Post subject: Reply with quote

Hello ,

I also can confirm Hotblack patches are working:
I'm using vmware overlay.

app-emulation/vmware-modules-279.3-r1::vmware
Kernel - 3.6.19.
_________________
Being lazy means being smart
Back to top
View user's profile Send private message
RWott
n00b
n00b


Joined: 29 May 2015
Posts: 3

PostPosted: Fri May 29, 2015 8:05 pm    Post subject: Reply with quote

I had the same problem when I was in kernel 3.19.1 and found this thread and the solution really helpful. Thank you!

Now I had the same problem again going to kernel 4.0.4, and based on the same patches, I developed a solution that can be found here:

https://github.com/rgwott/gentoo-vmware-modules-patch-kernel4.0.4

It worked as a charm for me, but USE AT YOUR OWN RISK!
Back to top
View user's profile Send private message
tom2
n00b
n00b


Joined: 13 Jun 2015
Posts: 1

PostPosted: Sat Jun 13, 2015 11:20 am    Post subject: Reply with quote

Thank RWott, your patches work with kernel 4.0.5
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Mon Jun 15, 2015 7:50 pm    Post subject: Reply with quote

RWott wrote:
I had the same problem when I was in kernel 3.19.1 and found this thread and the solution really helpful. Thank you!

Now I had the same problem again going to kernel 4.0.4, and based on the same patches, I developed a solution that can be found here:

https://github.com/rgwott/gentoo-vmware-modules-patch-kernel4.0.4

It worked as a charm for me, but USE AT YOUR OWN RISK!


Thank you very much.
Using your patches I successfully compiled
Code:
app-emulation/vmware-modules-279.3-r1::vmware
with
Code:
sys-kernel/gentoo-sources-4.0.5:4.0.5::gentoo
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 723
Location: USA

PostPosted: Mon Jun 15, 2015 9:47 pm    Post subject: Reply with quote

Comment 26 from this bug report provides a different way to compile vmware-modules under the 4.0 kernel.
Back to top
View user's profile Send private message
MaDDeePee
Guru
Guru


Joined: 18 Aug 2004
Posts: 393
Location: Germany

PostPosted: Wed Jun 17, 2015 8:31 pm    Post subject: Reply with quote

Letharion wrote:
RWott wrote:
I had the same problem when I was in kernel 3.19.1 and found this thread and the solution really helpful. Thank you!

Now I had the same problem again going to kernel 4.0.4, and based on the same patches, I developed a solution that can be found here:

https://github.com/rgwott/gentoo-vmware-modules-patch-kernel4.0.4

It worked as a charm for me, but USE AT YOUR OWN RISK!


Thank you very much.
Using your patches I successfully compiled
Code:
app-emulation/vmware-modules-279.3-r1::vmware
with
Code:
sys-kernel/gentoo-sources-4.0.5:4.0.5::gentoo


Hi, can you tell me how to apply this...or just provide a working ebuild...please? :)
Back to top
View user's profile Send private message
radio_flyer
Guru
Guru


Joined: 04 Nov 2004
Posts: 318
Location: Northern California

PostPosted: Thu Jun 18, 2015 7:39 pm    Post subject: Reply with quote

Agreed. Thanks RWott. Now that 4.0.5 has hit stable I suspect this thread is going to become popular.

MaDDeePee, follow Hotblack's instructions: create the /etc/portage/patches/app-emulation/vmware-modules-279.5/ subdirectory. Copy RWott's patches there. (Click the RAW button on github to see the raw patch if you don't do git.) The vmware-module ebuild supports epatch_user(), so you're good to go. Just run emerge @module-rebuild and all should be fine.
Back to top
View user's profile Send private message
MaDDeePee
Guru
Guru


Joined: 18 Aug 2004
Posts: 393
Location: Germany

PostPosted: Fri Jun 19, 2015 4:45 pm    Post subject: Reply with quote

radio_flyer wrote:
Agreed. Thanks RWott. Now that 4.0.5 has hit stable I suspect this thread is going to become popular.

MaDDeePee, follow Hotblack's instructions: create the /etc/portage/patches/app-emulation/vmware-modules-279.5/ subdirectory. Copy RWott's patches there. (Click the RAW button on github to see the raw patch if you don't do git.) The vmware-module ebuild supports epatch_user(), so you're good to go. Just run emerge @module-rebuild and all should be fine.


ahhhhhh, i see!

Thank you very much!

(didnt work with 279.5 but very well with 279.3-r1)

#thumbsup !
:D :D :D :D :D
Back to top
View user's profile Send private message
urcindalo
l33t
l33t


Joined: 08 Feb 2005
Posts: 623
Location: Almeria, Spain

PostPosted: Tue Jun 30, 2015 10:45 am    Post subject: Reply with quote

Does anybody know how to make it possible to compile vmware-modules-279.5 from the vmware overlay with gentoo-sources-4.0.5?
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Tue Jun 30, 2015 6:06 pm    Post subject: Reply with quote

urcindalo wrote:
Does anybody know how to make it possible to compile vmware-modules-279.5 from the vmware overlay with gentoo-sources-4.0.5?


I tried sometime ago, before I had a better understanding of the issues involved. It's most likely doable, but I don't recall the details. Is there a specific reason you need that particular version?

Download the four patches used for 279.3, and start by seeing if any of them match the ones already applied by the 279.5 ebuild. If so, skip those. Then try to compile, and post back with results.
Back to top
View user's profile Send private message
RWott
n00b
n00b


Joined: 29 May 2015
Posts: 3

PostPosted: Wed Jul 08, 2015 12:10 am    Post subject: Reply with quote

I did not try to fix 279.5, but again I had problems when I upgraded my kernel. Then I developed a new set of patches that makes
Code:
app-emulation/vmware-modules-279.3

compile with
Code:
sys-kernel/gentoo-sources-4.1.1-r1


Link: https://github.com/rgwott/gentoo-vmware-modules-279.3-patch-kernel4.1.1

I have not tested actually executing a VM, just ran vmware-player without errors. So again, use at your own risk.
Instructions: just the same as before, clone the repository (or download the files from GitHub manually) and place the files in folder
Code:
/etc/portage/patches/app-emulation/vmware-modules

Cheers guys!
Back to top
View user's profile Send private message
RWott
n00b
n00b


Joined: 29 May 2015
Posts: 3

PostPosted: Sat Jul 18, 2015 9:16 pm    Post subject: Reply with quote

Just to confirm, the patch from the previous post is working accordingly. My VMs work as expected.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum