FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 11-20-2007, 07:11 AM
craigni
 
Default VMware Workstation 6.0.2 on F8: Re-run vmware-config.pl after every reboot

I'm having the same problem. Interestingly, my /usr/lib/vmware/net-services.sh doesn't have

# Determine if SELinux is enabled
isSELinuxEnabled() {
if [ "`cat /selinux/enforce 2> /dev/null`" = "1" ]; then
...

so the patch failed there. It did have

if [ ! -e "$vDevice" ]; then
mknod -m 600 "$vDevice" c 119 "$vHubNr"
fi

So I added

if [ "`isSELinuxEnabled`" = 'yes' ]; then
restorecon "$vDevice"
fi

But it still is failing and demanding to rerun vmware-config.pl after every reboot (which works, but is annoying)

Any ideas?
Many thanks,
Craig


--
This is an email sent via The Fedora Community Portal https://fcp.surfsite.org
https://fcp.surfsite.org/modules/newbb/viewtopic.php?post_id=220854&topic_id=47763&forum= 10#forumpost220854
If you think, this is spam, please report this to webmaster@fcp.surfsite.org and/or blame craignied@gmail.com.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 11-20-2007, 12:21 PM
"Christopher A. Williams"
 
Default VMware Workstation 6.0.2 on F8: Re-run vmware-config.pl after every reboot

On Tue, 2007-11-20 at 09:11 +0100, craigni wrote:
> I'm having the same problem. Interestingly, my /usr/lib/vmware/net-services.sh doesn't have
>
> # Determine if SELinux is enabled
> isSELinuxEnabled() {
> if [ "`cat /selinux/enforce 2> /dev/null`" = "1" ]; then
> ...
>
> so the patch failed there. It did have
>
> if [ ! -e "$vDevice" ]; then
> mknod -m 600 "$vDevice" c 119 "$vHubNr"
> fi
>
> So I added
>
> if [ "`isSELinuxEnabled`" = 'yes' ]; then
> restorecon "$vDevice"
> fi
>
> But it still is failing and demanding to rerun vmware-config.pl after every reboot (which works, but is annoying)

Sounds like you tried to make the changes to net-services.sh manually.
That's not really necessary and tedious to do in my experience. I would
do the following:

1) Remove and reinstall VMware Workstation 6.0.2
The command "rpm -Uvh --force VMware-workstation-6.0.2-..." should do
the trick just fine.
2) Rebuild the patch file _exactly_ as it was originally posted
3) Save the patch file as net-services.sh.patch in your home directory
4) Change to the directory /usr/lib/vmware
4) Patch net-services.sh using the command:

patch -p0 </home/Your home directory/net-services.sh.patch

You will need to modify the path to be your home directory or
wherever you put the patch file, as well as be in the directory where
netservices-sh is located.

5) Run VMware Workstation as usual

In other words, the patch file, if properly built, doesn't need you to
manually try to find and edit the entries in net-services.sh. It does it
on its own just fine. In case you don't have it, here's a copy of the
one I built (don't include the "Start of patch file" and "End of patch
file" lines):

====== Start of Patch file - Use everything below this =====
--- net-services.sh.old 2007-10-01 14:45:51.000000000 -0700
+++ net-services.sh 2007-10-12 10:41:19.000000000 -0700
@@ -258,7 +258,7 @@

# Determine if SELinux is enabled
isSELinuxEnabled() {
- if [ "`cat /selinux/enforce 2> /dev/null`" = "1" ]; then
+ if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled ;
then
echo "yes"
else
echo "no"
@@ -616,6 +616,9 @@
if [ ! -e "$vDevice" ]; then
mknod -m 600 "$vDevice" c 119 "$vHubNr"
fi
+ if [ "`isSELinuxEnabled`" = 'yes' ]; then
+ restorecon "$vDevice"
+ fi
}

# Create a virtual host ethernet interface and connect it to a virtual

======= End of Patch file - Use everything above this ======

Good luck!

Cheers,

Chris

--
================================================== ==
In theory there is no difference between theory and practice.
In practice there is.

--Yogi Berra

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 11-21-2007, 02:36 PM
craigni
 
Default VMware Workstation 6.0.2 on F8: Re-run vmware-config.pl after every reboot

Thanks super for the detailed post, Chris. Turns out I had installed vmware server. Uninstalled, installed Workstation, and your patch works like a charm.

Many thanks,
Craig


--
This is an email sent via The Fedora Community Portal https://fcp.surfsite.org
https://fcp.surfsite.org/modules/newbb/viewtopic.php?post_id=221296&topic_id=47763&forum= 10#forumpost221296
If you think, this is spam, please report this to webmaster@fcp.surfsite.org and/or blame craignied@gmail.com.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 11-21-2007, 02:51 PM
"Christopher A. Williams"
 
Default VMware Workstation 6.0.2 on F8: Re-run vmware-config.pl after every reboot

On Wed, 2007-11-21 at 16:36 +0100, craigni wrote:
> Thanks super for the detailed post, Chris. Turns out I had installed vmware server. Uninstalled, installed Workstation, and your patch works like a charm.
>
> Many thanks,
> Craig

Glad it worked!

...But I can't take credit for the patch. That was submitted by someone
else.

Cheers,

Chris

--
================================================== ==
In theory there is no difference between theory and practice.
In practice there is.

--Yogi Berra

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 12:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org