国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 基礎(chǔ)常識 > 正文

手把手教你在VirtualBox中與主機共享文件夾(圖文介紹)

2020-10-21 21:58:43
字體:
供稿:網(wǎng)友

手把手教你在VirtualBox中與主機共享文件夾,具體如下:

VirtualBox下載地址,版本為5.1.6

設(shè)置共享文件路徑

點擊虛擬機 設(shè)置-->選擇 共享文件夾

(圖1 設(shè)置共享文件夾)

設(shè)置共享文件夾路徑

1 選擇路徑

2 填寫自定義的共享名稱(在后面需要與掛載路徑相對應(yīng))

3 設(shè)置自動掛載/固定分配

(圖2 設(shè)置共享文件路徑屬性)

安裝VirtualBox增強工具

先安裝必備的包

執(zhí)行下面的命令:

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

安裝完后,重啟虛擬機:

shutdown -r now

安裝virtualBox增強工具

點擊 設(shè)置-->點擊 安裝增強功能...

(圖3 點擊設(shè)置)

自動執(zhí)行安裝 或者 進入目錄/media/VBOXADDITIONS_5.1.2_108956,執(zhí)行命令

./VBoxLinuxAddtion.run

得到輸出內(nèi)容

[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 installerRemoving 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 共享文件夾名稱(在設(shè)置頁面設(shè)置的) 掛載的目錄

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

(圖4 windows文件)

[root@localhost shared]# lltotal 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經(jīng)常需要來回的拷貝內(nèi)容,那么可以打開【共享粘貼板】,步驟為:

設(shè)備-->共享粘貼板-->雙向

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持武林網(wǎng)。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 高陵县| 龙陵县| 塘沽区| 呼和浩特市| 建水县| 丰城市| 泗洪县| 西青区| 望江县| 大厂| 洛阳市| 临洮县| 治县。| 祁阳县| 普格县| 宜州市| 博白县| 瑞昌市| 营口市| 莒南县| 庄河市| 阳西县| 柘荣县| 苗栗市| 新宁县| 罗江县| 固原市| 吉水县| 呼和浩特市| 乌拉特后旗| 错那县| 扎赉特旗| 眉山市| 龙陵县| 沙河市| 赞皇县| 贵南县| 石首市| 墨竹工卡县| 旬阳县| 塔河县|