1、去到vbox的安装目录下找到C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso镜像文件,挂载后执行安装

2、回到linux虚拟机,安装GNU编译器套件和kernel-devel工具

  2.1 先执行yum update 更新系统现有的可更新文件

  2.2 安装GNU编译器和kernel-devel工具

yum install -y gcc gcc-devel gcc-c++ gcc-c++-devel make kernel kernel-devel

yum install -y gcc make perl kernel kernel-devel bzip2

 2.3 shutdown -r now 重启

3、挂载VBoxLinuxAdditions

// 创建挂载目录
mkdir -p /home/share

// 挂载
mount -t auto /dev/cdrom /home/share

// 手动安装VBoxGuestAdditions
cd /home/share
sh VBoxLinuxAdditions.run
// 该步骤若出现提示执行 `/sbin/rcvboxadd quicksetup all` 命令则执行
/sbin/rcvboxadd quicksetup all

// 重启
shutdown -r now

4、设置共享目录

Linux ->> VirtualBox Linux虚拟机与Windows主机共享目录

 

 

尝试mount -t vboxsf downloads /home 成功

相关文章:

  • 2021-12-07
  • 2021-05-16
  • 2021-05-09
  • 2021-09-13
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-11-29
  • 2021-09-27
  • 2021-08-13
  • 2022-01-08
  • 2021-10-01
  • 2021-12-05
相关资源
相似解决方案