首页 > 其他分享 >How to mount a shared folder in VirtualBox

How to mount a shared folder in VirtualBox

时间:2023-05-07 21:34:45浏览次数:38  
标签:guest mount How shared folder OS your VirtualBox

How to mount a shared folder in VirtualBox

https://www.pragmaticlinux.com/2021/02/how-to-mount-a-shared-folder-in-virtualbox/

 

Background

VirtualBox comes with a feature called shared folders. As the name implies, a shared folder enables file sharing between the host and the guest operating systems. With the host operating system I mean the operating system, where you installed the VirtualBox program itself. The guest operating system is the one you run inside a VirtualBox virtual machine.

When you work with virtual machines, sooner or later you run into a situation where a file resides on the host OS and you want to access it on the guest OS, or the other way around. Some example scenarios:

  • While trying out a new Linux distribution in a virtual machine, you want to configure the desktop environment the exact same way as on your host OS. This includes the background image. Through the use of a shared folder, you can quickly copy the background image to the guest OS.
  • You took a few screenshots inside a guest OS. You want to insert these screenshot images in a document you are writing on your host OS. With the help of the shared folder, you can easily copy the screenshot image files to your host OS.
  • You cloned one of your GitHub repositories inside your guest OS. After fixing or improving some code, you want to push the changes back to the remote repository. You need the correct SSH keys on the guest OS, for write access to your GitHub repository. Thanks to the shared folder feature, you can simply copy the SSH keys from your host OS to your guest OS.

This article shows you step-by-step how to configure and mount a shared folder for your Linux based guest OS, running as a VirtualBox virtual machine.

 

 

https://askubuntu.com/questions/659427/cant-access-virtualbox-shared-folder

https://askubuntu.com/questions/456400/why-cant-i-access-a-shared-folder-from-within-my-virtualbox-machine

 

sudo usermod -aG vboxsf $(whoami)
sudo reboot

 

标签:guest,mount,How,shared,folder,OS,your,VirtualBox
From: https://www.cnblogs.com/lightsong/p/17380203.html

相关文章

  • How Many Tables
    HowManyTablesTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16865AcceptedSubmission(s):8270ProblemDescriptionTodayisIgnatius'birthday.Heinvitesalotoffriends.Nowit'sd......
  • 面试 v-if 和 v-show的区别
    v-if vs. v-show​v-if 是“真实的”按条件渲染,因为它确保了在切换时,条件区块内的事件监听器和子组件都会被销毁与重建。v-if 也是惰性的:如果在初次渲染时条件值为false,则不会做任何事。条件区块只有当条件首次变为true时才被渲染。相比之下,v-show 简单许多,元素无论初......
  • 《CTFshow-Web入门》08. Web 71~80
    目录web71知识点题解web72知识点题解web73题解web74题解web75知识点题解web76题解web77知识点题解web78知识点题解web79题解web80知识点题解ctf-web入门web71知识点ob_get_contents():得到输出缓冲区的内容。ob_end_clean():清除缓冲区的内容,并将缓冲区关闭,但不会输出内......
  • Mountain Climber!
    WelcometoA2-MountainClimber!Nowthatyou'veacquaintedyourselfwithStacks,Queues,Listsandthelike,it'stimetoexploremorecomplexdatastructures,andusethemtosolvemorecomplicatedtasks!Ratherthanspending4weeksintranqui......
  • 一款windows清理空间神器 foldersize
    windows不能显示所有文件夹占用的大小是个痛点,当磁盘空间不够时,想找出大文件很麻烦 foldersize就是很好的解决方案,还是免费的,不过 foldersize官网不好找,网上有很多收费的仿冒品,这里贴出他的官网:https://foldersize.sourceforge.net/ 他的界面如下,炒鸡好用,墙裂推荐: ......
  • ubuntu mount 命令详解
    mount命令详解2009-06-2914:38功能:加载指定的文件系统。 语法:mount[-afFhnrvVw][-L][-o][-t][设备名][加载点] 用法说明:mount可将指定设备中指定的文件系统加载到Linux目录下(也就是装载点)。可将经常使用的设备写入文件/etc/fstab,以使系统在每次启动......
  • 批量更改showdoc的图片的URL
    下载SQLiteSpy:http://xz.w10a.com/Small/SQLiteSpyzwb.rar用它打开:\showdoc\Sqlite\showdoc.db.php参考下图定位至“1”处;键入以下命令(红字为原始内容,绿字为替换后的内容)按F9。updatepagesetpage_content=replace(page_content,"192.168.0.111","192.168.X.201")......
  • 230501 TI - Engineer It - How to test power supplies - Overview
    Hi,I'mBobHanrahan,ApplicationEngineeringatTexasInstruments.Thisisthefirstonaseriesontestingpowersupplies.We'llbetalkingaboutsomeofthebasictests,notall,butthebasictestsneededtoensureareliablepowersupply.......
  • 《CTFshow-Web入门》07. Web 61~70
    目录web61~65题解web66知识点题解web67知识点题解web68知识点题解web69知识点题解web70知识点题解ctf-web入门web61~65题解这几个题都和web58一样。可能内部禁用的函数不一样吧。但payload都差不多。不多解释了。以下解法随便挑一个即可。可能不同题会有部分函数被......
  • 索引-性能分析-show profiles
    Sql性能分析:profiles详情:showprofiles能够在做SQL优化时帮助我们了解时间都耗费到哪里去了。通过hava——profiles参数,能够看到当前Mysql是否支持profiles操作执行一系列的业务SQL业务,然后通过如下指令查看指令的执行耗时:#查看每一条SQL的基本耗时情况:showprofiles;#......