ubuntu安装虚拟机
2008-03-27 20:47
281 查看
解压之后在控制台执行vmware-install.pl,会出现一些选项让你配置,基本上默认就可以了,但有可能会停在这一步
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory.
这一步是让你指定c头文件所在的位置,我们进入/usr/src目录,应该这里有两个目录linux-headers-2.6.22-14和linux- headers-2.6.22-14-generic,现在我们要做的就是新建一个软链接linux,让它指向linux-headers-2.6.20 -15-generic,命令如下
ln -s linux-headers-2.6.20-15-generic linux
现在我们就有了linux这个目录,包含了c头文件,但我们继续配置,还可能会出现以下错误:
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.20-15-generic). Even if the module were to compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
我们明明以及指向了正确的linux内核头文件夹了,但还是报错了,我们可以这样修改:
进入/usr/src/linux/include/linux目录,修改下面的version.h文件
增加下面一行:
#define UTS_RELEASE "2.6.22-14-generic"
保存退出,继续配置vmware,这一步应该就成功了
继续配置还可能出现下面的错误:
该问题的解决办法
cd /usr/lib/vmware/modules/source
tar xvf vmmon.tar
cd vmmon-only
cd include
vi compat_kernel.h
找到 static inline _syscall1(int, compat_exit, int, exit_code); 这一行
修改为:
#if LINUX_VERSION_CODE < kernel_version(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
这样就行了,在控制台运行vmware-config.pl(不是vmware-install.pl!),应该就可以编译通过了,vmware也就安装成功了。
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory.
这一步是让你指定c头文件所在的位置,我们进入/usr/src目录,应该这里有两个目录linux-headers-2.6.22-14和linux- headers-2.6.22-14-generic,现在我们要做的就是新建一个软链接linux,让它指向linux-headers-2.6.20 -15-generic,命令如下
ln -s linux-headers-2.6.20-15-generic linux
现在我们就有了linux这个目录,包含了c头文件,但我们继续配置,还可能会出现以下错误:
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.20-15-generic). Even if the module were to compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
我们明明以及指向了正确的linux内核头文件夹了,但还是报错了,我们可以这样修改:
进入/usr/src/linux/include/linux目录,修改下面的version.h文件
增加下面一行:
#define UTS_RELEASE "2.6.22-14-generic"
保存退出,继续配置vmware,这一步应该就成功了
继续配置还可能出现下面的错误:
该问题的解决办法
cd /usr/lib/vmware/modules/source
tar xvf vmmon.tar
cd vmmon-only
cd include
vi compat_kernel.h
找到 static inline _syscall1(int, compat_exit, int, exit_code); 这一行
修改为:
#if LINUX_VERSION_CODE < kernel_version(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
这样就行了,在控制台运行vmware-config.pl(不是vmware-install.pl!),应该就可以编译通过了,vmware也就安装成功了。
相关文章推荐
- 【安装虚拟机和linux系统ubuntu14.04遇到的问题】
- 虚拟机Virtual Box 与 系统 ubuntu的下载安装及常见软件问题
- 虚拟机安装Ubuntu的上网设置(有线网络和无线网络)
- Windows 7下用VMware Workstation 10虚拟机安装 Ubuntu 14.04
- 在命令行中安装KVM ubuntu 10.04虚拟机
- VirtualBox下安装3台Ubuntu虚拟机,并搭建Hadoop
- Windows Xp 虚拟机安装linux系统(Ubuntu9.10)
- ubuntu虚拟机安装vmware_tools
- VMware Workstation虚拟机平台安装Linux-Ubuntu16.04图文教程
- Ubuntu Server 16.04虚拟机安装
- 虚拟机安装ubuntu
- Ubuntu 11.10中用xen-tools安装虚拟机
- 虚拟机安装ubuntuserver出现无法挂载安装光盘
- Ubuntu16.04 虚拟机安装VMware Tools
- 在 Ubuntu 虚拟机中安装 VMware Tools (2041399)
- WINDOWS下使用虚拟机安装ubuntu及其上网设置的安装说明
- 虚拟机下Ubuntu的安装
- ubuntu 虚拟机安装备忘 rvm ruby rails
- ubuntu 虚拟机安装相关配置
- 虚拟机下安装Ubuntu及java环境安装