LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: 9city

在VMware Workstation5.5.3中装FC6,可VMware tools怎么都装不了,郁闷了好几天!!!

[复制链接]
发表于 2006-11-20 14:34:49 | 显示全部楼层
好,等有时间试一下!
回复 支持 反对

使用道具 举报

发表于 2006-11-20 21:04:06 | 显示全部楼层
搂住估计要找个vmware-any-any-update的包
回复 支持 反对

使用道具 举报

发表于 2006-11-20 22:57:29 | 显示全部楼层
Installing VMware Tools in Fedora Core 6

# Install software called by by VMware Tools
yum install gcc

# Install kernel header files
yum install kernel-devel

# Check it matches the running kernel
uname -r             # running kernel
rpm -q kernel-devel  # installed kernel headers

# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).

# Find out where the kernel headers are
echo /usr/src/kernels/$(uname -r)-$(uname -p)/include
# You need this later.

/***************************************************************/
# Unpack VMware Tools to a temporary directory
#go to VMware-Workstation menu: VM->Install VMware Tool...
#if no folder: /mnt/cdrom, mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cd /tmp/
#cp /mnt/cdrom/VMwareTools-5.5.2-29772.tar.gz /tmp
#tar zxvf VMwareTools-5.5.2-29772.tar.gz
tar zxvf /mnt/cdrom/VMwareTools-5.5.2-29772.tar.gz
cd vmware-tools-distrib
./vmware-install.pl

# Do you want to run vmware-config-tools.pl? no

/***************************************************************/
# TODO fix vmhgfs compile
#First, go to */usr/lib/vmware-tools/modules/source* and unpack
#*vmhgfs.tar*like this:

cd /usr/lib/vmware-tools/modules/source
tar -xvf vmhgfs.tar

#then edit *vmhgfs-only/driver.c* to conform with the kernel changes.
/*
#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)
*/
#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)
...
/* inode->i_blksize = HGFS_BLOCKSIZE; */
...
#Now you will have to repack it, run the following three commands:

rm -f vmhgfs.tar
tar -cf vmhgfs.tar vmhgfs-only
rm -rf vmhgfs-only

/***************************************************************/
#For FedoraCore6-i386, there is no config.h in /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/#linux. You should manually type:

cd /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux
ln -s configfs.h config.h

touch config.h
#Run the vmware-config-tools.pl script again

vmware-config-tools.pl

# Do you want to run vmware-config-tools.pl? yes
#[/lib/modules/2.6.18-1.2798.fc6-i686/build/include] OK
#after installing fedora core 6 linux, you can find the directory,
#if none,please select development lib and tools,in x,gnome,kde etc.
#[/usr/src/kernels/2.6.18-1.2798.fc6-i686/include] ERROR

/***************************************************************/
# Fix xorg config
# If when you (re)start X, you get the error "Undefined Monitor "vmware"..":
vi /etc/X11/xorg.conf
# Add the lines
Section "Monitor"
        Identifier   "vmware"
EndSection

/***************************************************************/
#If you actually need to access a shared folder, then you should know that
#this workaround will not work while SELinux is enabled. If you want to use the
#files, you will have to disable SELinux by going to
#*System ->Administration -> Security Level and Firewall*.

#if reboot, vmware do not change, then run vmware-config-tools.pl again
#and check /etc/X11/xorg.conf has changed, reboot again.
#after that, everything should work fine.
回复 支持 反对

使用道具 举报

发表于 2006-11-20 23:02:13 | 显示全部楼层
上述文本是在VMware Workstation 5.5.2-29772上安装FC6,
到目前升级后你的内核应该是:2.6.18-1.2849.fc6-i686,此时将上述文本中的2.6.18-1.2798.fc6-i686改成2.6.18-1.2849.fc6-i686,按提示安装即可正常安装vmware-tools。
希望对你的问题有帮助。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-21 21:26:02 | 显示全部楼层
谢谢,我去试试!
回复 支持 反对

使用道具 举报

发表于 2006-11-22 09:50:19 | 显示全部楼层
Post by sbf
Installing VMware Tools in Fedora Core 6

# Install software called by by VMware Tools
yum install gcc

# Install kernel header files
yum install kernel-devel

# Check it matches the running kernel
uname -r             # running kernel
rpm -q kernel-devel  # installed kernel headers

# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).

# Find out where the kernel headers are
echo /usr/src/kernels/$(uname -r)-$(uname -p)/include
# You need this later.

/***************************************************************/
# Unpack VMware Tools to a temporary directory
#go to VMware-Workstation menu: VM->Install VMware Tool...
#if no folder: /mnt/cdrom, mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cd /tmp/
#cp /mnt/cdrom/VMwareTools-5.5.2-29772.tar.gz /tmp
#tar zxvf VMwareTools-5.5.2-29772.tar.gz
tar zxvf /mnt/cdrom/VMwareTools-5.5.2-29772.tar.gz
cd vmware-tools-distrib
./vmware-install.pl

# Do you want to run vmware-config-tools.pl? no

/***************************************************************/
# TODO fix vmhgfs compile
#First, go to */usr/lib/vmware-tools/modules/source* and unpack
#*vmhgfs.tar*like this:

cd /usr/lib/vmware-tools/modules/source
tar -xvf vmhgfs.tar

#then edit *vmhgfs-only/driver.c* to conform with the kernel changes.
/*
#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)
*/
#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)
...
/* inode->i_blksize = HGFS_BLOCKSIZE; */
...
#Now you will have to repack it, run the following three commands:

rm -f vmhgfs.tar
tar -cf vmhgfs.tar vmhgfs-only
rm -rf vmhgfs-only

/***************************************************************/
#For FedoraCore6-i386, there is no config.h in /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/#linux. You should manually type:

cd /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux
ln -s configfs.h config.h

touch config.h
#Run the vmware-config-tools.pl script again

vmware-config-tools.pl

# Do you want to run vmware-config-tools.pl? yes
#[/lib/modules/2.6.18-1.2798.fc6-i686/build/include] OK
#after installing fedora core 6 linux, you can find the directory,
#if none,please select development lib and tools,in x,gnome,kde etc.
#[/usr/src/kernels/2.6.18-1.2798.fc6-i686/include] ERROR

/***************************************************************/
# Fix xorg config
# If when you (re)start X, you get the error "Undefined Monitor "vmware"..":
vi /etc/X11/xorg.conf
# Add the lines
Section "Monitor"
        Identifier   "vmware"
EndSection

/***************************************************************/
#If you actually need to access a shared folder, then you should know that
#this workaround will not work while SELinux is enabled. If you want to use the
#files, you will have to disable SELinux by going to
#*System ->Administration -> Security Level and Firewall*.

#if reboot, vmware do not change, then run vmware-config-tools.pl again
#and check /etc/X11/xorg.conf has changed, reboot again.
#after that, everything should work fine.



你这个方法适用于不能上网的人吗?还有为什么非要我双击“vmware-toolbox”鼠标才能移出虚拟机呢?
回复 支持 反对

使用道具 举报

发表于 2006-11-23 08:46:17 | 显示全部楼层
你好!
一、如果不能上网的话,需要安装了在编译时用到的GCC和内核的头文件。
二、鼠标移出虚拟机,按Ctrl+Alt即可,按Ctrl+Alt+Enter进入或退出全屏模式,鼠标也会发生相应的改变。详细请查阅VMware Workstation帮助。
以上的说明是基于虚拟机VMware Workstation 5.5.2-29772或(5.5.3 build-34685)
回复 支持 反对

使用道具 举报

发表于 2006-11-23 13:00:25 | 显示全部楼层
今天安装了一下VMware Workstation 5.5.3 build-34685,在安装VMwareTools-5.5.3-34685.tar.gz后,发现/usr/lib/vmware-tools/modules/source/vmhgfs.tar包中的driver.c文件已经修复了上一版本(5.5.2-29772)vmhgfs编译的问题(2.6.18内核)。
……
#if defined(VMW_INODE_2618)
#define INODE_SET_II_P(inode, info) do { (inode)->i_private = (info); } while (0)
#else
#define INODE_SET_II_P(inode, info) do { (inode)->u.generic_ip = (info); } while (0)
#endif

#if defined(VMW_INODE_2618)
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->i_private)
#else
#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)->u.generic_ip)
#endif
……
这样安装新版的VMwareTools就不用# TODO fix vmhgfs compile这一段内容了。
回复 支持 反对

使用道具 举报

发表于 2006-11-23 13:12:40 | 显示全部楼层
我安裝沒有問題但mouse 不能移出vm
仍要按ctrl-alt
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表