use*_*875 20 install kernel vmware-tools virtual-machine linux-kernel
所以我使用Lubuntu并使用vmplayer作为VM运行,我正在尝试安装vmware工具.做完之后
./vmware-install.pl
Run Code Online (Sandbox Code Playgroud)
并且正在进行默认设置
The path "" is not a valid path to the 3.8.0-19-generic kernel headers.
Would you like to cange it? [yes]
Enter the path to the kernel header files for the 3.8.0-19-generic kernel?
Run Code Online (Sandbox Code Playgroud)
当我做的时候
whereis 3.8.0-19-generic kernel
Run Code Online (Sandbox Code Playgroud)
它说
3.8:
kernel: /usr/src/linux-headers-3.8.0-30/kernel /usr/src/linux-headers-3.8.0-19/kernel /usr/src/linux-headers-3.8.0-19-generic/kernel /usr/src/linux-headers-3.8.0-30-generic-kernel
Run Code Online (Sandbox Code Playgroud)
我尝试了所有这四个,没有一条路径有效.它仍然说路径不是3.8.0-19通用/内核的有效路径.
请注意,在我做之前
whereis 3.8.0-generic kernel
Run Code Online (Sandbox Code Playgroud)
它只给了我'-19'内核,但后来我做到了
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-headers-generic
Run Code Online (Sandbox Code Playgroud)
看看它是否会解决任何问题,但事实并非如此.它添加了'-30'内核,但似乎没有解决问题.关于什么是错的任何想法?
use*_*875 15
编辑:请记住阅读此问题的评论,因为其他用户提供了更多最新和准确的解决方案.
好的,所以我做的是,当它说
The path "" is not a valid path to the 3.8.0-19-generic kernel headers.
Would you like to cange it?
Run Code Online (Sandbox Code Playgroud)
我键入'no',然后停止安装.然后我写了
usr/bin/vmware-config-tools.pl
Run Code Online (Sandbox Code Playgroud)
命令再次自动,我认为跳过了步骤,它说
The configuration of vmware tools 9.2.3 build-1031360 for linux for this running kernel completed
successfully. you must restart your X session before any mouse or graphics cahnges can take effect.
you can now run vmware tools by invoking "/usr/bin/vmware-toolbox-cmd" from the command line.
to enable X features (e.g., guest resolution fit, drag and drop, and file and text copy/pase),
you will need to do one (or more) of the following:
1. manually start /usr/bin/vmware-user
2. log out and lokg back into your desktop sessionl and,
3. restart your X session
to use the vmxnet driver, restart networking using the following commands:
/etc/init.d/networking stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/networking start
Run Code Online (Sandbox Code Playgroud)
如果我的VMware工具运行不正常,我会在这篇文章中回复.此外,感谢投票的人甚至没有回复或告诉我原因.
好的,我开始使用VMware,效果很好!我需要在我的主机操作系统和VM之间建立一个共享驱动器,我需要运行
sudo vmware-config-tools.pl
Run Code Online (Sandbox Code Playgroud)
再次,在提示中,它表示路径'/ usr/bin/gcc'显示有效,'lib/modules/3.8.0-30-generic/build/include'的路径似乎有效(如果你看了我的话发布,如果你们没有做
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-headers-generic
Run Code Online (Sandbox Code Playgroud)
它可能会说'lib/modules/3.8.0-19-generic/build/include'而不是'lib/modules/3.8.0-30-generic/build/include').如果您有'-19'而不是'-30'并且如果它不起作用,请尝试运行上面的两个命令并查看它是否有效.