首页 > 其他 > 详细

virtualbox设置共享文件夹自启动

时间:2020-04-30 10:48:35      阅读:77      评论:0      收藏:0      [点我收藏+]

1:先在virtualbox的设置中设置我们要共享的文件夹

技术分享图片

 

2:在ubuntu中执行sudo gedit /etc/rc.local

 

如下图

RCAR_input为我们要共享的主机文件夹,mnt为虚拟机要挂载共享文件夹的位置

 

 1 #!/bin/sh -e
 2 #
 3 # rc.local
 4 #
 5 # This script is executed at the end of each multiuser runlevel.
 6 # Make sure that the script will "exit 0" on success or any other
 7 # value on error.
 8 #
 9 # In order to enable or disable this script just change the execution
10 # bits.
11 #
12 # By default this script does nothing.
13 
14 mount -t vboxsf RCAR_input /mnt
15 
16 exit 0

 

virtualbox设置共享文件夹自启动

原文:https://www.cnblogs.com/zongfanstudy/p/12806821.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!