Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th November 2007, 01:49 PM
DJSpite Offline
Registered User
 
Join Date: Nov 2007
Posts: 9
keep having to recompile vmware modules

I'm runing Fedora 8 x86_64, and VMware 6. Seems like after every reboot I have to recompile the vmware moduels (The kernel isn't being updated THAT often). Any ideas?
Reply With Quote
  #2  
Old 15th November 2007, 03:39 PM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
If you don't mind sticking with the same kernel you can add the following line to your /etc/yum.conf file:

exclude=*kernel*
Reply With Quote
  #3  
Old 15th November 2007, 03:45 PM
DJSpite Offline
Registered User
 
Join Date: Nov 2007
Posts: 9
Quote:
Originally Posted by HaydnH
If you don't mind sticking with the same kernel you can add the following line to your /etc/yum.conf file:

exclude=*kernel*
Sorry, my original post may not have been clear. I'm not upgrading the kernel, but for some reason the vmware modules won't load after a reboot without recompiling.
Reply With Quote
  #4  
Old 16th November 2007, 09:18 PM
DJSpite Offline
Registered User
 
Join Date: Nov 2007
Posts: 9
The problem is apparently selinux. I couldn't find any thing about it triggering the selinux security in the "SELinux Troubleshooter" but disabling SELinux did fix it so I don't have to recompile the vmware modules after every reboot.
Reply With Quote
  #5  
Old 16th November 2007, 09:48 PM
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 224
I'm running F8 as well, but I'm running VMWare Server 1.0.4. If I uninstall VMWare Server and then reinstall it, it works. The second I reboot, it stops working with a ton of SELinux alerts.

I finally bit the bullet and gave myself a crash course in creating a local SELinux policy which grants VMWare server what it needs to run. I can post the policy source (includes a script to recompile and insert module into selinux) as an attachment to this thread upon request. Should be pretty close for VMWare workstation. You use 'audit2allow -R' to add grants for anything that's missing got VMW.

It's strange that it works upon reinstall and then fails after a reboot...it's missing access to write to /tmp, the user's home directory, etc.
Reply With Quote
  #6  
Old 19th November 2007, 03:51 AM
oakwcj Offline
Registered User
 
Join Date: Feb 2004
Posts: 12
Quote:
Originally Posted by rweed
I'm running F8 as well, but I'm running VMWare Server 1.0.4. If I uninstall VMWare Server and then reinstall it, it works. The second I reboot, it stops working with a ton of SELinux alerts.

I finally bit the bullet and gave myself a crash course in creating a local SELinux policy which grants VMWare server what it needs to run. I can post the policy source (includes a script to recompile and insert module into selinux) as an attachment to this thread upon request. Should be pretty close for VMWare workstation. You use 'audit2allow -R' to add grants for anything that's missing got VMW.

It's strange that it works upon reinstall and then fails after a reboot...it's missing access to write to /tmp, the user's home directory, etc.
I'm having this problem, too. Please post your script. I'm running vmware-server-1.0.4. I haven't reinstalled each time, but I have run vmware-config.pl. This solves the problem, but is a pain. Issuing a setenforce 0 command from the terminal just before starting a VM also works. I can then set SeLinux back to enforcing. These are bandaids. Fixing the policy sounds better.

TIA.
Reply With Quote
  #7  
Old 20th November 2007, 12:18 AM
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 224
Quote:
Originally Posted by oakwcj
I'm having this problem, too. Please post your script. I'm running vmware-server-1.0.4. I haven't reinstalled each time, but I have run vmware-config.pl. This solves the problem, but is a pain. Issuing a setenforce 0 command from the terminal just before starting a VM also works. I can then set SeLinux back to enforcing. These are bandaids. Fixing the policy sounds better.

TIA.
I posted it here: http://forums.fedoraforum.org/showthread.php?p=905253
Reply With Quote
  #8  
Old 20th November 2007, 12:37 AM
cristianox Offline
Registered User
 
Join Date: Oct 2006
Location: São Paulo, Brazil
Age: 37
Posts: 20
I was facing the same problem, needing to recompile te kernel modules everytime after reboot.
I set the SE Linux to permissive and re-run the command vmware-config pl.
After reboot the modules were there - ok. I didn't need to recompile anymore.
Thank you.
Reply With Quote
  #9  
Old 20th November 2007, 12:56 AM
rweed Offline
Registered User
 
Join Date: Jun 2007
Posts: 224
You understand that SELinux is now disabled...right?
Reply With Quote
  #10  
Old 20th November 2007, 01:15 AM
cristianox Offline
Registered User
 
Join Date: Oct 2006
Location: São Paulo, Brazil
Age: 37
Posts: 20
The SELinux was set to permissive to compile the modules.
After reboot was ok, I returned to Enforcing mode and again the kernel modules failed on boot.
But now I know where the problem is. I'll keep searching for a better solution than setting SELinux to permissive.

Last edited by cristianox; 20th November 2007 at 02:18 AM.
Reply With Quote
  #11  
Old 21st November 2007, 12:29 AM
cristianox Offline
Registered User
 
Join Date: Oct 2006
Location: São Paulo, Brazil
Age: 37
Posts: 20
I checked the option Relabel on next boot at SELInux and rebooted the system.
After the relabel was done, the vmware modules loaded ok.
But Fedora 8 is not as good as 7, yet.
I'm facing problems with the network, where I cannot add a new device (the dial up modem). When I save the changes (any change, in any device) the application fails. I really don't use dial up connection, but I like having all my hardware working. But that's subject to another topic.
Reply With Quote
Reply

Tags
modules, recompile, vmware

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't remove VMware modules OralDeckard Using Fedora 9 5th December 2008 11:50 AM
vmware recompile tueglee Using Fedora 4 8th May 2007 03:04 AM
trying to compile vmware modules bytesniper Fedora Core 5 - Dev 3 12th March 2006 09:28 PM
How to recompile and add new modules to the 2.6 kernel? GravityHollow Using Fedora 3 15th January 2006 08:48 AM
vmware and modules compiling errors FC4 x86_64 aaraya1516 Using Fedora 1 15th September 2005 03:16 PM


Current GMT-time: 15:14 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat