Matthewl 发表于 2015-4-15 08:09:09

fedora20 virtualbox 共享文件夹

  win7上装的vitualBox,里面装的fedora20
  http://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/
  http://www.binarytides.com/vbox-guest-additions-fedora-20/

1. Update Fedora
  The first thing to do is to upgrade all packages and make the system uptodate.

$ sudo yum distro-sync
2. Install kernel headers and build tools
  VirtualBox guest additions are always compiled so they need necessary build tools and kernel libraries. Install them with the following command.

$ yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
  Reboot
  After upgrading and installing kernel headers, reboot the system.

3. Compile virtualbox guest additions
  Click on Devices > Insert guest additions CD image on the VirtualBox window menu.
The cd image is now available in fedora at /dev/cdrom or /dev/sr0.
Create a directory at home and mount the cd in it.

$ mkdir vboxcd
$ sudo mount /dev/cdrom ~/vboxcd
password for silver:
mount: /dev/sr0 is write-protected, mounting read-only
$ ls
32Bit      cert                  VBoxSolarisAdditions.pkg
64Bit      OS2                     VBoxWindowsAdditions-amd64.exe
AUTORUN.INFrunasroot.sh            VBoxWindowsAdditions.exe
autorun.sh   VBoxLinuxAdditions.runVBoxWindowsAdditions-x86.exe
  Next run the VBoxLinuxAdditions.run script. The output should look similar to this

$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules         
Removing existing VirtualBox non-DKMS kernel modules      
Building the VirtualBox Guest Additions kernel modules   
Doing non-kernel setup of the Guest Additions            
Starting the VirtualBox Guest Additions                  
Installing the Window System drivers
Installing X.Org Server 1.14 modules                     
Setting up the Window System to use the Guest Additions   
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

  
页: [1]
查看完整版本: fedora20 virtualbox 共享文件夹