|
好吧。。pd11安装ubuntu14.04,屏幕尺寸只能设置为800X600.。
这是由于 parallels tools 没有安装的缘故。。
但是按照官方教程来安装,会报错。。那么,How to solve it?
首先还是正常的为虚拟机 安装 ubuntu14.04
跟着官方教程走:以下转载的官方教程  http://www.parallelsdesktop.cn/anzhuang-parallels-tools.html
---------------------------------------
1.启动Parallels Desktop,并启动虚拟机。
2.确保虚拟机的 CD/DVD 驱动指向默认的空驱动。
图一:虚拟机的CD/DVD驱动指向默认的空驱动
3.操作系统启动后请点击PD顶部菜单里的“虚拟机”并选定“安装Parallels Tools”。
prl-tools-lin.iso 镜像文件将会加载至虚拟机的 CD/DVD 驱动器中
如果上述方法没有加载成功,您也可手动连接并安装 Parallels Tools ISO 镜像文件。
右击虚拟机窗口的状态栏中的 CD/DVD 驱动图标并选择“连接镜像”。在弹出的“Finder”窗口中,进入硬盘文件夹(通常名为 "Macintosh HD"),选择 /Library/Parallels/Tools/ 文件夹(针对 Parallels Desktop 7)。
或 /Applications/Parallels Desktop.app/Contents/Resources/Tools/ (针对 Parallels Desktop 8),选择 prl-tools-lin.iso 文件,然后点击“打开”连接至虚拟机。
4.在您的 Ubuntu 虚拟机中启动“终端”。
更改目录为 CD/DVD 驱动目录:
针对 Ubuntu 12.04:
cd /media/Parallels\ Tools/
针对 Ubuntu 13.04:
cd /media/<username>/Parallels\ Tools/
在 CD/DVD 驱动目录中,输入以下命令启动 Parallels Tools 安装:
sudo ./install
5.根据 Parallels Tools 安装程序的提示完成安装。
6.在Parallels Tools 安装完成后,重新启动虚拟机。
---------------------------------------
这里出问题的就是
sudo ./install
之后会报错,编译通不过。
OK,Let`s go!
1 。把 挂载的光驱中 的 文件拷贝出来,并且授予权限 777
- cd /media/<username>/Parallels\ Tools/
- mkdir ~/Desktop/tools
- cp -pr * ~/Desktop/tools
- cd ~/Desktop/tools
- chmod -R 777 kmods
复制代码
2 。用解压缩工具打开~/Desktop/tools/kmods目录下的prl_mod.tar.gz压缩文件
       在图形界面中双击该文件即可。
3 。在压缩工具里用gedit打开./prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c,
       在压缩工具中 双击 该文件 即可。
       在其他include的代码后面添加如下代码
      - #include <linux/vmalloc.h>
复制代码
4 。在压缩工具里用gedit打开./prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c,找到prlfs_follow_link (大约在650行)并修改为如下代码(包括 compat_follow_link_t):- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
- #define compat_follow_link_t const char*
- #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
- #define compat_follow_link_t void*
- #else
- #define compat_follow_link_t int
- #endif
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
- static compat_follow_link_t prlfs_follow_link(struct dentry *dentry, void  **cookie)
- #else
- static compat_follow_link_t prlfs_follow_link(struct dentry *dentry, struct nameidata *nd)
- #endif
- {
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
-     return do_read_symlink(dentry);
- #else
-     #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-         nd_set_link(nd, do_read_symlink(dentry));
-     #endif
-     #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
-         return NULL;
-     #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-         return 0;
-     #else
-         return vfs_follow_link(nd, do_read_symlink(dentry));
-     #endif
- #endif
- }
复制代码
5 。打开一个terminal (在~/Desktop/tools目录)并执行如下命令:
      
然后,parallels tools 就成功安装了。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|