Chinaunix首页 | 论坛 | 博客
  • 博客访问: 775004
  • 博文数量: 265
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1985
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-13 12:33
文章分类

全部博文(265)

文章存档

2011年(1)

2010年(66)

2009年(198)

我的朋友

分类: LINUX

2009-08-07 17:58:38

cd /usr/portage/app-emulation/virtualbox-bin
ACCEPT_KEYWORDS="~x86" USE="X" emerge virtualbox-bin-3.0.2.ebuild

>>> Recording app-emulation/virtualbox-bin in "world" favorites file...

 * Messages for package app-emulation/virtualbox-modules-3.0.2:

 * Starting with the 3.x release new kernel modules were added,
 * be sure to load all the needed modules.
 * 
 * Please add "vboxdrv", "vboxnetflt" and "vboxnetadp" to:
 * /etc/modules.autoload.d/kernel-2.6
 * 

 * Messages for package app-emulation/virtualbox-bin-3.0.2:

 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxManage
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxSVC
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxXPCOMIPCD
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxTunctl
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxNetAdpCtl
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxNetDHCP
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxTestOGL
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxSDL
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VBoxHeadless
 * Fallback PaX marking -m
 *      /var/tmp/portage/app-emulation/virtualbox-bin-3.0.2/image//opt/VirtualBox/VirtualBox
 * 
 * To launch VirtualBox just type: "VirtualBox"
 * 
 * You must be in the vboxusers group to use VirtualBox.
 * 
 * For advanced networking setups you should emerge:
 * net-misc/bridge-utils and sys-apps/usermode-utilities
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

vi /etc/modules.autoload.d/kernel-2.6
添加
vboxdrv
vboxnetflt
vboxnetadp

gpasswd -a jesse vboxusers

安装系统后可以安装VirtualBox Guest Additions,位置在Devices==>Install Guest Addtions,快捷键是ctrl+alt+D。安装完成重启后就能看到Machines下面的Seamless Mode(ctrl+alt+L,无缝模式,好像虚拟机只是一个窗口界面一样)、Disable Mouse Integration(ctrl+alt+I,这个功能是让鼠标能够在host machine和guest machine之间移动而不需要按ctrl+alt键)能用了

共享文件夹的设置:
Devices==>Shared Folders添加要共享的host machine文件夹
在虚拟机系统(XP)里面运行: net use E: \\vboxsvr\home
                       net use F: \\vboxsvr\sda6
                       net use G: \\vboxsvr\sda9
如果客户机为linux,则    mount -t vboxsf sda6 /mnt/sda6/



阅读(742) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~