天枫庄资源网 Design By www.wosibo.com

手把手教你在VirtualBox中与主机共享文件夹,具体如下:

VirtualBox下载地址,版本为5.1.6

设置共享文件路径

点击虚拟机 设置-->选择 共享文件夹

手把手教你在VirtualBox中与主机共享文件夹(图文介绍)

(图1 设置共享文件夹)

设置共享文件夹路径

1 选择路径

2 填写自定义的共享名称(在后面需要与挂载路径相对应)

3 设置自动挂载/固定分配

手把手教你在VirtualBox中与主机共享文件夹(图文介绍)

(图2 设置共享文件路径属性)

安装VirtualBox增强工具

先安装必备的包

执行下面的命令:

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

安装完后,重启虚拟机:

shutdown -r now

安装virtualBox增强工具

点击 设置-->点击 安装增强功能...

手把手教你在VirtualBox中与主机共享文件夹(图文介绍)

(图3 点击设置)

自动执行安装 或者 进入目录/media/VBOXADDITIONS_5.1.2_108956,执行命令

./VBoxLinuxAddtion.run

得到输出内容

[root@localhost VBOXADDITIONS_5.1.2_108956]# ./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.2 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.2 of VirtualBox Guest Additions...
vboxadd.sh: Stopping VirtualBox Additions.
vboxadd-service.sh: Stopping VirtualBox Guest Addition service.
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: You should restart your guest to make sure the new modules are actually used.
vboxadd.sh: Starting the VirtualBox Guest Additions.

You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.

即安装成功!

挂载共享文件夹

切换到root用户输入挂载命令:

sudo mount -t vboxsf shared_file /home/xingoo/shared

注意格式为

sudo mount -t vboxsf 共享文件夹名称(在设置页面设置的) 挂载的目录

然后进入/home/xingoo/shared,就可以看到windows中的文件了

手把手教你在VirtualBox中与主机共享文件夹(图文介绍)

(图4 windows文件)

[root@localhost shared]# ll
total 337516
-rwxrwxrwx. 1 root root 149599799 Aug 15 21:29 apache-hive-2.1.0-bin.tar.gz
-rwxrwxrwx. 1 root root 196015975 Aug 15 21:31 hadoop-2.6.4.tar.gz

其他使用技巧

如果宿主机是windows经常需要来回的拷贝内容,那么可以打开【共享粘贴板】,步骤为:

设备-->共享粘贴板-->双向

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

标签:
virtualbox挂载文件夹,virtualbox文件共享,virtualbox共享文件夹

天枫庄资源网 Design By www.wosibo.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
天枫庄资源网 Design By www.wosibo.com

评论“手把手教你在VirtualBox中与主机共享文件夹(图文介绍)”

暂无手把手教你在VirtualBox中与主机共享文件夹(图文介绍)的评论...

更新日志

2023年12月06日
  1. 反安慰剂[简繁英字幕].Nocebo.2022.1080p.BluRay.x265.10bit.DTS-SONYHD 4.59GB
  2. 战略高手[简繁英双语字幕].Out.of.Sight.1998.1080p.BluRay.DTS-HD.MA.5.1.x264-DreamHD 17.83GB
  3. 战略高手[简繁英双语字幕].Out.of.Sight.1998.1080p.BluRay.DTS-HD.MA.5.1.x265.10bit-DreamHD 10.25GB
  4. 战略高手[中文字幕].Out.of.Sight.1998.1080p.BluRay.AAC.x264-DreamHD 3.60GB
  5. 传奇与蝴蝶[简繁字幕].The.Legend.&.Butterfly.2023.1080p.BluRay.x265.10bit-CTRLHD 7.00GB
  6. 铁血战士:猎物[中文字幕].Prey.2022.1080p.BluRay.x265.10bit.DTS-HD.MA7.1-NukeHD 8.24GB
  7. 铁血战士:猎物[中文字幕].Prey.2022.2160p.UHD.BluRay.x265.10bit.HDR.Atmos.TrueHD7.1-NukeHD 11.44GB
  8. 欢乐好声音[国粤英多音轨/中文字幕/特效字幕].Sing.2016.BluRay.2160p.TrueHD7.1.HDR.x265.10bit-DreamHD 22.02GB
  9. 失衡凶间之恶念之最[国粤多音轨/简繁字幕].Tales.From.The.Occult.Ultimate.Malevolence.2023.1080p.BluRay.x264-CTRLHD 9.00GB
  10. 失衡凶间之恶念之最[国粤多音轨/简繁字幕].Tales.From.The.Occult.Ultimate.Malevolence.2023.1080p.BluRay.x265.10bit-CTRLHD 5.46GB
  11. 伸冤人3[简繁英字幕].The.Equalizer.3.2023.BluRay.1080p.DTS-HDMA5.1.x264-DreamHD 12.27GB
  12. 伸冤人3[简繁英字幕].The.Equalizer.3.2023.BluRay.1080p.DTS-HDMA5.1.x265.10bit-DreamHD 5.69GB
  13. 伸冤人3[HDR/杜比视界双版本][简繁英字幕].The.Equalizer.3.2023.BluRay.2160p.TrueHD7.1.DoVi.HDR.x265.10bit-DreamHD 19.52GB
  14. 传奇与蝴蝶[简繁字幕].The.Legend.&.Butterfly.2023.1080p.BluRay.x264-CTRLHD 14.00GB
  15. 传奇与蝴蝶[简繁字幕].The.Legend.&.Butterfly.2023.1080p.BluRay.x265.10bit-CTRLHD 7.00GB