Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configure VMWare when vmware-config.pl fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
JayBee
n00b
n00b


Joined: 10 Nov 2002
Posts: 26
Location: Christchurch, New Zealand

PostPosted: Thu Jan 16, 2003 9:15 am    Post subject: Configure VMWare when vmware-config.pl fails Reply with quote

Configure VMWare when vmware-config.pl fails

These steps are for configuring VMWare workstation when the supplied script fails to compile one of the modules (in my case it was vmnet). I cannot take full credit, as I have taken these steps from a solution on the SuSe website, which can be found here. This worked for me on my Gentoo 1.4 system with GCC 3.2.1, Gentoo-Sources 2.4.19-r7 and VMWare 3.2.0 build-2230, thought it should apply to any release of all components.

Step 1: Correct the vmppuser.o module to make it aware of changes to the 2.4 series of kernels.
Code:
# cd /opt/vmware/lib/modules/sources
# tar xpf vmppuser.tar
# cd  vmppuser-only

Now open the ppdev.c file for editing, and jump to line 652 (Use Alt-M to goto a line in nano). You should be at the following struct
Code:
static struct file_operations pp_fops = {
        pp_lseek,
        pp_read,
        pp_write,
        NULL,   /* pp_readdir */
        pp_poll,
        pp_ioctl,
        NULL,   /* pp_mmap */
        pp_open,
        NULL,   /* pp_flush */
        pp_release
};

Modify it so that it reads
Code:
static struct file_operations pp_fops = {
        THIS_MODULE,
        pp_lseek,
        pp_read,
        pp_write,
        NULL,   /* pp_readdir */
        pp_poll,
        pp_ioctl,
        NULL,   /* pp_mmap */
        pp_open,
        NULL,   /* pp_flush */
        pp_release
};


Step 2: Compile the module
Code:
# make
# cp -p vmppuser-{your-kernel-version} /lib/modules/{your-kernel-version}/misc/vmppuser.o


Step 3: Clean up the VMWare directory and re-run the configuration
Code:
# cd ..
# rm -rf vmppuser-only
# cd /
# /opt/vmware/bin/vmware-config.pl

When prompted, say yes to compiling the modules. For help on any other part of the config script, check the VMWare website.
_________________
"There is no patch for stupidity"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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