Install VBox Guest Addons And Auto Mount VBox Shared Folders

阅读更多

1. Mount the Guest Addons in VirtualBox:
Devices >> Insert Guest Additions
Install VBox Guest Addons And Auto Mount VBox Shared Folders_第1张图片

 

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_第2张图片
 

mount | grep vbox

 

 

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_第3张图片
  • 大小: 37.9 KB
  • Install VBox Guest Addons And Auto Mount VBox Shared Folders_第4张图片
  • 大小: 77.3 KB
  • Install VBox Guest Addons And Auto Mount VBox Shared Folders_第5张图片
  • 大小: 9.1 KB
  • 查看图片附件

你可能感兴趣的:(Virtual,Box,Guest,Additions,CentOS,RedHat,Linux)