Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of sharing Local Directory in Virtual Machine with VirtualBox

2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

VirtualBox

VirtualBox is an open source virtual machine software. VirtualBox is software developed by Innotek, Germany, produced by Sun Microsystems, written in Qt, and officially renamed Oracle VM VirtualBox after Sun was acquired by Oracle. Innotek releases VirtualBox under the GNU General Public License (GPL) and provides binary and OSE versions of the code. Users can install and run Solaris, Windows, DOS, Linux, OS/2 Warp, BSD, etc. as client operating systems on VirtualBox. It is now being developed by Oracle as part of Oracle's xVM virtualization platform technology.

VirtualBox claims to be the strongest free virtual machine software, it not only has a wealth of features, but also excellent performance! It's easy to use and virtualizable on Windows (Windows 3.1 to Windows 10, Windows Server 2012, all Windows systems support), Mac OS X, Linux, OpenBSD, Solaris, IBM OS2 and even Android! Users can install and run these operating systems on VirtualBox! Compared to VMware and Virtual PC of the same nature, VirtualBox's unique features include remote desktop protocol (RDP), iSCSI and USB support. VirtualBox can already support USB 2.0 hardware devices on client operating systems, but it needs to install VirtualBox Extension Pack.

VirtualBox Version 5.0.10 Ubuntu

1. Set up shared folders in the virtual machine first

The screenshot after setting is as follows

Set access permissions and whether to mount automatically.

2. Enter the virtual machine and select the device in VirtualBox console.

Select Install Enhancements (VM needs to be on)

After selecting ubuntu will prompt you to install VBOXADDITIONS

Click Run and wait for the installation to complete (a new command line terminal will be launched during installation).

After installation, you can see the mapped shared directory under/media. The mapped directory name starts with sf_.

3. About insufficient access to shared directories

Since the owner of the folder automatically mounted is root and the group it belongs to is vboxsf, only these two users have access rights, so you need to add the current user to the vboxsf group.

execute sudo usermod -aG vboxsf $(whoami)

Log out of the current user after completion and log in again to access the shared directory normally. You can also use the groups command to view groups to which logged in users belong.

Open the shared directory and see!

summary

The above is a VirtualBox method for sharing local directories in virtual machines introduced by Xiaobian. I hope it will help you. If you have any questions, please leave a message to me. Xiaobian will reply to you in time. Thank you very much for your support!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 202

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report