用户名:   自动登录 找回密码
密   码:    * 注册




发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
 文章标题 : Virtualbox redhat共享剪切板
帖子发表于 : 2013-03-27 21:34 
离线
头像

注册: 2011-05-01 9:15
帖子: 120
打开虚拟机,在VBox程序界面
Devices-》Install Guest Additions..
之后虚拟机会挂载安装包上去,
[root@localhost mnt]# cd /media/VBOXADDITIONS_4.2.1_80865/
[root@localhost VBOXADDITIONS_4.2.1_80865]# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.1 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.1 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-2.6.18-164.el5


Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.


Installing graphics libraries and desktop services componen[ OK ]


发现Building the main Guest Additions module [FAILED],根据提示The missing package can be probably installed with
yum install kernel-devel-2.6.18-164.el5,发现少包

先将此包安装,(可在安装光盘中找到相应的包) 并重启虚拟机。
之后重复上面的操作,成功。


lsmod |grep vb 可以看到相应的模块已经加载


在VB中创建一个共享文件夹,再在虚拟机中将文件夹挂载上来
[root@localhost ~]# mkdir /mnt/share
[root@localhost ~]# mount -t vboxsf share /mnt/share



最后在高级设置中打开共享剪切板。

附件:
1.jpeg
1.jpeg [ 81.8 KiB | 被浏览 23708 次 ]


可以测试下是否可以双向复制粘贴,不行可以重启一下虚拟机
重新挂载即可
[root@localhost ~]# mount -t vboxsf share /mnt/share


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 


在线用户

注册用户: 没有注册用户


查找:
前往 :  
cron
Powered by OraSql © 2011, 2012, oracle_awen