Build host vmware kernel modules: Difference between revisions
Jump to navigation
Jump to search
Build host vmware kernel modules (view source)
Revision as of 12:30, 12 October 2015
, 12 October 2015→Troubleshooting
(added SUSE lines) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
service vmware restart | service vmware restart | ||
#If a new install, remove the not_configured tag or the error will keep coming back | #If a new install, remove the not_configured tag or the error will keep coming back | ||
rm /etc/vmware/not_configured | rm -f /etc/vmware/not_configured | ||
====Preconditions for the script to work==== | ====Preconditions for the script to work==== | ||
Line 43: | Line 43: | ||
====Troubleshooting==== | ====Troubleshooting==== | ||
After the manual compile your folder with kernel modules should look like this: | After the manual compile, your folder with kernel modules should look like this: | ||
$ ls -l /lib/modules/`uname -r`/misc | $ ls -l /lib/modules/`uname -r`/misc | ||
total 376 | total 376 | ||
Line 51: | Line 51: | ||
-rw-r--r-- 1 root root 79897 2008-12-07 01:07 vmnet.ko | -rw-r--r-- 1 root root 79897 2008-12-07 01:07 vmnet.ko | ||
-rw-r--r-- 1 root root 34834 2008-12-07 01:07 vsock.ko | -rw-r--r-- 1 root root 34834 2008-12-07 01:07 vsock.ko | ||
If you get error "Icon name must be set." then you can fix that by adding the parameter for that to vmware-modconfig: | |||
vmware-modconfig --icon="vmware-workstation" | |||
If you get error "Application name must be set" then you can fix that by adding the parameter to set that: | |||
vmware-modconfig --appname="VMware Workstation" | |||
If there are still problems then vmware-modconfig tells you where it writes out a log, it helps to read it for example: | |||
vmware-modconfig --icon="vmware-workstation" --appname="VMware Workstation" | |||
Logging to /root/tmp/vmware-root/modconfig-2221.log | |||
Check that file! | |||
In my case for example it says: | |||
failed to find /lib/modules/3.12.xx/build/include/linux/version.h | |||
That's because in later versions the version.h file has been moved (smart move!) to another location. | |||
So in order to get past that you have to add a symbolic link (replace) | |||
# ln -s /usr/src/`uname -r`/include/generated/uapi/linux/version.h /usr/src/`uname -r`/include/linux/version.h | |||
Note that your OS might just have the kernel-devel packages installed and in that case you might have to replace `uname -r` in the above with linux. | |||
Eg: | |||
# ln -s /usr/src/linux/include/generated/uapi/linux/version.h /usr/src/linux/include/linux/version.h | |||
====Alternative solution==== | |||
Of course there is still a vmware application available that you can use for this as well. | |||
[http://communities.vmware.com/people/birdie Birdie] came up with a smart alternative so you can keep things like they used to be by creating an alias for the modconfig with the correct parameters to run it in the console. | |||
alias vmware-config.pl='vmware-modconfig --console --install-all' | |||
[[Category: CLI]] [[Category: Bash]] |