欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Install VBox Guest Addons And Auto Mount VBox Shared Folders 博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 

程序员文章站 2024-03-02 10:55:10
...

1. Mount the Guest Addons in VirtualBox:
Devices >> Insert Guest Additions
Install VBox Guest Addons And Auto Mount VBox Shared Folders
            
    
    博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 

 

mount /dev/cdrom /mnt
cd /mnt
./VBoxLinuxAdditions.run --nox11

 
2. if you get this error: "Unable to find the sources of current Linux kernel", then:

 

yum install kernel-devel
yum group install "Development Tools"
yum install kernel-headers-$(uname -r)
./VBoxLinuxAdditions.run --nox11

 

 

3. Add and auto mount vbox shared folder:
Install VBox Guest Addons And Auto Mount VBox Shared Folders
            
    
    博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 
 

mount | grep vbox

 

Install VBox Guest Addons And Auto Mount VBox Shared Folders
            
    
    博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 

 

vim /etc/fstab

Append the following and reboot:

/media/sf_vb-share /desired/mount/point bind defaults,bind 0 0

 
4. Reference:
http://www.turnkeylinux.org/docs/virtualbox-guest-addons
http://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/
https://forums.virtualbox.org/viewtopic.php?f=7&t=47862
https://forums.virtualbox.org/viewtopic.php?t=15868

 

  • Install VBox Guest Addons And Auto Mount VBox Shared Folders
            
    
    博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 
  • 大小: 37.9 KB
  • Install VBox Guest Addons And Auto Mount VBox Shared Folders
            
    
    博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 
  • 大小: 77.3 KB
  • Install VBox Guest Addons And Auto Mount VBox Shared Folders
            
    
    博客分类: Linux Virtual BoxGuest AdditionsCentOSRedHatLinux 
  • 大小: 9.1 KB